Login | Register   
LinkedIn
Google+
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


Tip of the Day
Language: Visual Basic
Expertise: Beginner
Dec 8, 1999

ADO & SQLServer Provider

Question:
When opening an ADO connection, how do I specify that it use the SQL Server OLEDB provider with a DSN?

Answer:
Here's the connection string you should use. Be sure to substitute in the appropriate values following the equal signs.

"Provider=SQLOLEDB;" _
& "Data Source=serverName;" _
& "Initial Catalog=databaseName;" _
& "User ID=userName;" _
& "Password=userPassword;"
DevX Pro
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap