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!

ODBC DSN Creation

Status
Not open for further replies.

smbure

Programmer
Mar 30, 2001
47
0
0
US
Why when I use all of the sample code to create a DSN does it always return a 0? (nRet = SQLConfigDataSource(vbAPINull, ODBC_ADD_DSN, sDriver, sAttributes)) What does 0 mean.
Also, My real goal is to set an Access Database that is currently "linked" to a SQL Server database via a dsn easy to distrabute and manage. The connection string can not be exposed so that is why I chose a DSN. I would most likely compile a dll and have the DSN creation and connection string in there upon the first open of the Access database or distrabuted updates of the dll.

Thanks...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top