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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

This works in IIS on desktop Win2k and PWS Win98 but not on Win2k lt

Status
Not open for further replies.

other3

Programmer
Jul 30, 2002
92
US
This portion of Javascript ASP works fine on my desktop installation of IIS in Win2k and PWS in desktop Win98 but not on my laptop Win2k or desktop IIS in WinXP. Any thoughts?

objConn = Server.CreateObject("ADODB.Connection");
objConn.ConnectionString = "DSN=pb";

objConn.Open(); // this is the line that causes the error.

pb is defined as a system dsn and every other, non-web type, program where I use it via ODBC works fine.

Charlie


Everything I know I learned from The Grateful Dead and Buffy The Vampire Slayer
Charlie
 

If the code works on one configuration but not another, it's probably not the code that is at fault. You might want to try diagnosing a setup / software difference between the installations.

Incidentally, have you tried this method:

Code:
objConn = Server.CreateObject('ADODB.Connection');
objConn.Open('DSN=pb');

Hope this helps,
Dan



[tt]D'ya think I got where I am today because I dress like Peter Pan here?[/tt]
[banghead]

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top