|
| |
|
|
Aelaron
Posts: 223 Joined: 6/8/2004 Status: offline
|
Old Problem Revisited - 6/8/2004 17:39:52
Hello everyone....... I have recently taken on the joy of trying to self teach myself how to create web pages that provide an interface to a database. I have some familiarity with front page and have used it in the creation of static webpages. I have never worked with a database and am trying to learn to interface with a SQL 2000 database. My issue is one that seems to be a common one, and that is the dreaded "Database Results Error - database connection undefined". I found this forum in a search for a solution to this error. I have reviewed the original post regarding this topic and tried all of the suggestion provided there to include rebuilding my web, reverifying the database connection through the tools menu on frontpage, and trying to use the fpselect.asp file to try and identify the problem. However, when I use the fpselect.asp file I downloaded from the other thread as well as the version off the microsoft website, I get the following message: Global.asa successfully fired The global.asa that was fired is inside of this Web. This means that this Web is an application root. Microsoft VBScript runtime error '800a0005' Invalid procedure call or argument: 'Mid' /fpselect.asp, line 41 So I counted the lines in this asp file and that line states: "strConnect = Mid(strConnect, 16, intConLen - 2)" I have tried to work with my server's IT support and the administrator for my webserver seems to be as new at this as I am. Any help in either getting the fpselect.asp file to run or a solution to my database connection issue would be appreciated. Thanks! JB
|
|
|
|
Aelaron
Posts: 223 Joined: 6/8/2004 Status: offline
|
RE: Old Problem Revisited - 6/8/2004 18:22:27
How do I find out what the values of those variables are?
|
|
|
|
Aelaron
Posts: 223 Joined: 6/8/2004 Status: offline
|
RE: Old Problem Revisited - 6/8/2004 18:44:23
When I use that code in a blank ASP page I get: "APPLICATION VARIABLES: There are 0" JB
|
|
|
|
Aelaron
Posts: 223 Joined: 6/8/2004 Status: offline
|
RE: Old Problem Revisited - 6/8/2004 18:57:27
Yes I have a global.asa in the root directory. I am not quite sure what you mean by the term "import" a database. As well as the term "live". The method described in the link "live" takes me to, is how I have currently been working with my database. I open my web via the http:// path that I would use in a browser. Could that be my problem? I am beginning to think I might be chewing off more than I can swallow. JB
|
|
|
|
DesiMcK
Posts: 445 Joined: 4/26/2004 From: Essex, UK Status: offline
|
RE: Old Problem Revisited - 6/8/2004 19:19:38
I know how you feel about chewing more than you can swallow. I regularly fell like that. But stick with it. The guys here will lead you through it. They are ace!! Just ensure that you post all the details you can and don't be afraid to admit to ignorance - I do it all the time. This site has taught me so much that I could not ever quantify. Stay with it, Desi
|
|
|
|
cliffdeen
Posts: 155 Joined: 4/12/2004 From: Mckinney, TX Status: offline
|
RE: Old Problem Revisited - 6/8/2004 19:31:41
It would be a lot easier on you if you were using Frontpage and Access to create your web site and establish a connection. You can use Access as the "Frontend" to the SQL Database - this will help you create the queries you need to grab the data from the tables. After those queries are created, then you can use frontpage to establish the database connection for each page you create and then gather and post the data to the web page by using those queries via a database region "link" on the web page. With these two tools you can accomplish quite a bit for a web site that accesses and updates a db. In addition, with frontpage you can look at the code it generates to get the information and display it, which will help you learn how html can work for you. Good Luck cliff
|
|
|
|
Aelaron
Posts: 223 Joined: 6/8/2004 Status: offline
|
RE: Old Problem Revisited - 6/8/2004 21:03:17
First off..... Cliffdeen offered up: quote:
It would be a lot easier on you if you were using Frontpage and Access to create your web site and establish a connection. You can use Access as the "Frontend" to the SQL Database - this will help you create the queries you need to grab the data from the tables. After those queries are created, then you can use frontpage to establish the database connection for each page you create and then gather and post the data to the web page by using those queries via a database region "link" on the web page. With these two tools you can accomplish quite a bit for a web site that accesses and updates a db. In addition, with frontpage you can look at the code it generates to get the information and display it, which will help you learn how html can work for you. I have no clue what you just suggested here. I understand the terms of front end and so forth, but my history with any sort of database is nil. I had been directed to the SQL Database because my IT doesn't support Access databases. I had initially tried to do everything in Access, but when I got this same error, I was told that my IT group would not help because they don't support Access. Secondly..... Spooky recommended: quote:
Open a new asp page for editing (With your site live in frontpage) and try this. Insert > database > results > and use the sample database. Just create a default "DRW" to see if the results are displayed. I did this and get the same Database not defined error as when I try to query my own database. Thanks again for your directional assistance, JB
|
|
|
|
Aelaron
Posts: 223 Joined: 6/8/2004 Status: offline
|
RE: Old Problem Revisited - 6/8/2004 23:54:36
I don't know if it's a windows server. I'll have to ask that question. I assume so, but don't know for sure. JB
|
|
|
|
Aelaron
Posts: 223 Joined: 6/8/2004 Status: offline
|
RE: Old Problem Revisited - 6/9/2004 10:13:44
Web settings says: FrontPage Srever Extensions version 4.0.2.7802 Server version Microsoft-IIS/5.0 JB
|
|
|
|
Aelaron
Posts: 223 Joined: 6/8/2004 Status: offline
|
RE: Old Problem Revisited - 6/10/2004 13:21:26
As for Access, they just don't support the technical aspects of using it. I did have everything in an access database, but was having trouble getting form submissions to get in the database. I was getting an "unable to open object" error when I would submit the form. I escalated to my IT and they said it had something do to with the permissions on the web. So they would fix them. Once they "fixed" them I got the "Database undefined error". I escalated to my IT again and they said that since I was using Access they couldn't help me. That my problem should be resolved if I switch to SQL Server since that is what is supported by my IT. OK, so I switch everything over to this SQL Server and still have the same issue. Database undefined. I escalate to my IT again and this is what I get: quote:
I reviewed the issue that you are having. To have a form that connects to a SQL server you would need to add the supporting ASP code. Do you know how to write ASP code? Host does not support coding issues because we are not staffed to support code. I really don't think that this is a coding issue given that I can't even connect to the sample database that you had me test before. This is becoming a very frustrating experience. Thanks for all your helpful suggestions. JB
|
|
|
|
dpf
Posts: 7121 Joined: 11/12/2003 From: India-napolis Status: offline
|
RE: Old Problem Revisited - 6/10/2004 13:41:09
I sure don't miss working for large orgainzations and IT dept's..<smile>
_____________________________
Dan
|
|
|
|
Aelaron
Posts: 223 Joined: 6/8/2004 Status: offline
|
RE: Old Problem Revisited - 6/11/2004 11:20:53
I haven't gotten a response to that. As I am away from the office and have only been communicating by e-mail. I will let you know what happens once that part has been done. JB
|
|
|
|
Aelaron
Posts: 223 Joined: 6/8/2004 Status: offline
|
RE: Old Problem Revisited - 6/12/2004 16:07:12
OK....here's the current status of things: I got a personal web set-up on another server and used Frontpage2003, I was using FrontpageXP, to setup a database results page and data entry form that uses an Access database and one that uses a SQL 2000 database and all work perfectly. I informed my IT to take a look at the settings on my personal web and see where the differences are compared to my business web. They said that they have made both of them match exactly. This should answer the application question right? I'm not so sure. Anyway, I got to my business web and remove all my current database connections and global.asa in an attempt to start from scratch as I did on my personal web. No luck. When frontpage attempts to save the global.asa file to the root of my business web it gets an error stating: "The folder "/" is marked as executable. This will not allow saving files in to this folder". Does this error shine any light on the problem? Is marking a root executable the same as marking it as an application? Thanks in advance for the assistance. JB
|
|
|
|
Aelaron
Posts: 223 Joined: 6/8/2004 Status: offline
|
RE: Old Problem Revisited - 6/12/2004 21:20:34
Spooky - No it doesn't look like the image you submitted. Since I don't have 50 posts, I can't upload an image of what it looks like. The difference is that the "Allow programs to be run" box is checked. JB
|
|
|
|
BeTheBall
Posts: 6359 Joined: 6/21/2002 From: West Point Utah USA Status: offline
|
RE: Old Problem Revisited - 6/12/2004 21:29:36
You cannot tell if the web is marked as an application via FrontPage. Have IT check it via IIS as I mentioned above.
_____________________________
Duane Some people are like Slinkies . . . Not really good for anything . . . . . But they still bring a smile to your face when you push them down a flight of stairs.
|
|
|
|
Aelaron
Posts: 223 Joined: 6/8/2004 Status: offline
|
RE: Old Problem Revisited - 6/13/2004 7:32:25
Bethebal- I will check when I am back at work. I was just answering Spooky's question since it's something I can do from home. JB
|
|
|
|
Aelaron
Posts: 223 Joined: 6/8/2004 Status: offline
|
RE: Old Problem Revisited - 6/14/2004 15:25:04
Betheball - I just completed a net meeting with the IT tech and insured that the root is flagged as an application via your attachment. One thing that I noticed was that your IIS properties box has only 6 TABs where as the IIS properties box for my web folder has 9 TABs. As mentioned earlier, I have been able to get all my database functions to work on my personal server hosted by the same IT. The IIS properties box is identical to the picture you provided. I have left my IT to figure out what their problem is regarding my business web. I can begin my work on my personal web and import the work in to my business web once they get their act together. Thanks again for your assistance, JB
|
|
|
|
BeTheBall
Posts: 6359 Joined: 6/21/2002 From: West Point Utah USA Status: offline
|
RE: Old Problem Revisited - 6/14/2004 15:32:55
Personally, I have never seen this work, but have you tried the fix here: http://support.microsoft.com/default.aspx?scid=kb;EN-US;292628
_____________________________
Duane Some people are like Slinkies . . . Not really good for anything . . . . . But they still bring a smile to your face when you push them down a flight of stairs.
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts
|
|
|