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 using multiple databases

Status
Not open for further replies.

stevearas

Programmer
Nov 14, 2001
5
US
Using VB/ADO connecting to Sybase, I set up a new System DSN called "rightnow". Don't put in a default server or database. Add two or more comma delimited servers and databases in the connection tab of the ODBC mangager.
.ConnectionString = "DATA SOURCE=rightnow"
.Properties("prompt")= adPromptCompleteRequired
.Open UserID:=sUsername, Password:=sPassword

the first run thru it works fine. It opens a login box and I have to choose the server or db. After you choose a server database and entery in the reg is written saying which svr/db. The next time you run it, it grabs the stuff from the registry. I don't want that. I want it to prompt again. How do I get ODBC to NOT look at the reg. I don't want to add code to delte this reg entery.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top