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

Connect TO SQL Server using ADO

Status
Not open for further replies.

FRANDAZZO

Programmer
Nov 29, 2000
60
0
0
US
Hello all,

Question - How do you connect to SQL server using ADO and using the Windows authentication not OledDB with a sql login and Pwd supplied.

Thankx in advance,

Frank
 
Try this:

objConn_SQL.ConnectionString = &quot;Driver={SQL Server};Server=<<Name or IP of SQL Server>>;Database=<<DB_NAME>>;UID=<<ID>>;PWD=<<PWD>>&quot;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top