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!

Opening an ODBC DB connection w/o pw prompt

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I have a C++ program using the ODBC connection
to a SQL 7 database. It runs multiple threads
each adding records to the database. The program is
using multiple instances of the CRecordset class
to access the database. Each "open" of the database
forces the user to click the OK for the password
dialog box.

How can I set it up to allow the program to gain assess
to the database without requiring the password dialog
box action?

Can the program pass the password somehow?

Thanks,

John Taylor jtc@ee.net
 
Hi

If you are using DSN, then this is one possibility:

connectme = "DSN=DBName;UID=U1;PWD=u1"

Hope you can use it too.

regards
Nick
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top