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

Create a SQL DSN That Prompts for User Name and Password

Status
Not open for further replies.

C0PP3R

Programmer
Jun 27, 2002
64
CA
I am looking at creating a SQL DSN that when called will prompt the user for a user name and password. Any one know how i can accomplish this?

Thanks So Much

Copper
 
I would code a module to request the login and password and use them in the connect string. I would also avoid using DSN connections. Use SQL OLEDB and create DSN-less connections. If you must use a DSN, open the connection without a password. The connection will fail and the ODBC driver will then display a login screen. If you want to get the best answer for your question read faq183-874.

Terry L. Broadbent - DBA
SQL Server Page:
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top