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

System DSN

Status
Not open for further replies.

jmatte

Programmer
Joined
Jan 31, 2001
Messages
6
Location
US
I've created a system DSN to access a SQLServer 2000 database. I need to access this DSN in an ActiveX DLL that uses ADO. I've tried using a connection string dsn=__;uid=__;pw=__ but that couldn't find the system DSN I created.

What is the correct syntax for doing this?

Thanks in advance for your help.
 
Hi there,
Try

objCN.Open "DSN=" & sDSN & ";UID=" & sUserID & ";PWD=" & sPassword

hope that helps

:¿)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top