By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,986 Members | 2,030 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,986 IT Pros & Developers. It's quick & easy.

Connection String in VBA

P: n/a
Can someone tell me the vba code for simply making a connection to SQL
SERVER 2000 using NT Authentication.. my datalink is giving me a weird
error, and the only work around i've read about is making the
connection in VBA

Nov 13 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
The connection string should look something like the following:

"Provider=SQLOLEDB;Initial Catalog=MyDatabase;Data
Source=MyServer\MySQLInstance;TRUSTED_CONNECTION=Y es;"

--
David Lloyd
MCSD .NET
http://LemingtonConsulting.com

This response is supplied "as is" without any representations or warranties.
"Beacher" <be*****@gmail.com> wrote in message
news:11**********************@g43g2000cwa.googlegr oups.com...
Can someone tell me the vba code for simply making a connection to SQL
SERVER 2000 using NT Authentication.. my datalink is giving me a weird
error, and the only work around i've read about is making the
connection in VBA
Nov 13 '05 #2

P: n/a
Thanks :)

Nov 13 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.