The Database Connection Named ' ' is unidentified ERROR (Full Version)

All Forums >> [Web Development] >> ASP and Database



Message


ASP who? -> The Database Connection Named ' ' is unidentified ERROR (12/16/2004 14:11:21)

Hi all. ASP Newb here. Hence the reason I'm at the mercy of the FP 2003 DRW. I've searched the various forums and checked the 2003 DRW FAQ, but no one seems to have resolved this particular issue in a manner that I understand. [>:]

The error is the same one, I'm sure, that people have seen a million times:
[image]http://www.geocities.com/jeep_resources/images/drw_error.jpg[/image]

As you can see in the code, the fp_sDataConn="Database3" is set and correct. It has been verified in the site settings, and, as such, it has not been removed from my web. The root folder does have write and scripting permissions enabled. I am unsure of the meaning of the last possibility "the web is not marked as an Application Root".

I do have other DB connections and other ASP pages functioning on other databases in this website. I've seen people recommending that you clean up otherwise verify the global.asa, and, though it looks fairly straightforward, I am unsure of how to do that without causing further damage. I will continue to peck away here, but I was hoping someone might have a suggestion or two.

Thanks in adv.
Garrett




Spooky -> RE: The Database Connection Named ' ' is unidentified ERROR (12/16/2004 14:15:37)

On a blank asp page, add this in code view :

<%="Connection="&Application("Database3_Connectionstring")%>

Now open the asp page in your browser - what gets written to the screen?




ASP who? -> RE: The Database Connection Named ' ' is unidentified ERROR (12/16/2004 14:32:18)

I get:

Connection=

I tried running the page from several different directories, including those that have functioning ASP pages already, and I get the same thing.

Is this supposed to tell me that FP is not seeing my DB connection, though it states that it has been verified? see pics:

[image]http://www.geocities.com/jeep_resources/images/settings1.jpg[/image]

[image]http://www.geocities.com/jeep_resources/images/settings2.jpg[/image]

Thanks Spooky




Spooky -> RE: The Database Connection Named ' ' is unidentified ERROR (12/16/2004 14:38:05)

Just to confirm the connection name, open your global.asa file, and locate the code I used.

You should see :
Application("Database3_Connectionstring") = "DRIVER={Microsoft Access Driver (*.mdb)};DBQ=URL=....."

If it is the same - Application("Database3_Connectionstring") then it suggests your web is not marked as an application.
Youll need to ask your host to do this.




ASP who? -> RE: The Database Connection Named ' ' is unidentified ERROR (12/16/2004 14:52:56)

Global ASA for database3 conn:

'--Project Data Connection
Application("Database3_ConnectionString") = "DRIVER={Microsoft Access Driver (*.mdb)};DBQ=URL=fpdb/interface.mdb"
FrontPage_UrlVars(5) = "Database3_ConnectionString"
Application("Database3_ConnectionTimeout") = 15
Application("Database3_CommandTimeout") = 30
Application("Database3_CursorLocation") = 3
Application("Database3_RuntimeUserName") = ""
Application("Database3_RuntimePassword") = ""
'--

It would seem that all is well here, especially considering that the functioning DB conns are setup in a similar fashion. I would think if my web wasn't marked as an application space, then none of my DB conns in my web would work, correct?

For instance, I tried your single line of code for one of my other DB Conns (that was setup the same way, mind you) and I get this:

Connection=DRIVER={Microsoft Access Driver (*.mdb)};DBQ=F:\Inetpub\websites\eass\fpdb\Interface Statistics.mdb

Perhaps if I try to import the db again and tailor it to a previously existing db conn and see if I can even reach the db through the ASP page? Thanks for the feedback spooky. I'm off to see how badly I can rig this thing to work... [sm=tantrum.gif]




ASP who? -> RE: The Database Connection Named ' ' is unidentified ERROR (12/16/2004 15:17:13)

That did it. wtf?!? I took DB Conn 'database2' and tested it with your single line of code (which is right handy, thanks) and got the resulting Driver ID listed above. So I deleted the source DB (it was a test DB anyway) and imported my other DB with the same file name and destination directory as the one I deleted. I regenerated the existing DB results and it works fine. Go figure.

Is there some default setting in the global.asa that limits the amount of active DB conns you can have in one web, or something goofy like that? I've got 6, well, 5 now, but the thing is, they were all put together the same way. It seems odd that the DRW would balk on the very last one like this. I mean, what would I have done if I didn't have "extra" db conns laying around?

Either way, thanks for your help, Spooky. All my googling on this error for like the past two days has brought me to this board, so I figured this was a good place to ask. :)




dpf -> RE: The Database Connection Named ' ' is unidentified ERROR (12/16/2004 17:42:54)

quote:

has brought me to this board
and there is no better place to learn!




Spooky -> RE: The Database Connection Named ' ' is unidentified ERROR (12/16/2004 20:46:53)

Quite often the act of importing a database will reset the required permissions and settings - glad you got it sorted!




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
2.578125