Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ODBC Connection error in NT4

Status
Not open for further replies.

369852

Programmer
May 7, 2002
38
IE
Hi,

I developed the asp pages on Windows 2000. The web server that will hold the files in Windows NT. When i placed the files up on the web server, i get an odbc error saying "there is no data source or default driver". The ODBC connection has been set up and is working. It appears to me that global.asa is not running.

Did anyone ever have this problem??
Thanks for your Help
 
What makes you think that the global.asa isn't working. Are you doing your connection strings in a application varialbe built in the global.asa?
The money's gone, the brain is shot.....but the liquor we still got.
 
On the default.asp page i put
on error resume next
response.write(Application("Test_ConnectionString"))
response.end

where Application("Test_ConnectionString")holds the details of the connection and nothing was written to the screen. Which i thought would suggest that global.asa was not run to set the variable???

Yep i Have the application variable in global.asa

Application("Test_ConnectionString") = "dsn=Test;uid=Test;pwd=Test"

The error is:
"Data source name not found and no default driver specified"

and occurs at this line

dbtest.Open Application("Test_ConnectionString")


Thanks for the help this has me stumped!!
:( :(
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top