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

ASP Server.CreateObject Error

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I am having a real problem instantiating a Database Connection Object.
Even if I comment out all my code and just leave the following I am getting an error:

Code:

Dim cnnDB
Set cnnDB = Server.CreateObject(
 
The above code as it appears is syntactically incomplete.

try

[red]dim cnnDB
set cnnDB = server.createObject("ADODB.Connection")
cnnDB.open "theDatasourceName"[/red]

or

[red]dim cnnDB
set cnnDB = server.createObject("ADODB.Connection")
cnnDB.open "DSN=theDatasourceName;uid=userid;pwd=password"[/red]

Hope this helps. [sig]<p>--Will Duty<br><a href=mailto:wduty@radicalfringe.com>wduty@radicalfringe.com</a><br><a href= > </a><br> [/sig]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top