Posted by Erland Sommarskog on 12/05/06 11:32
sydney (mr.vinay.gupta@gmail.com) writes:
> I have a sql server database that is as follows
>
> SERVER: AFG
> Database Name : APF
> Authentication: Windows authentication
>
> how do I create the connectionstring via vba to access this database?
"Provider=SQLOLEDB;Server=AFG;Inital Catalog=APF;Trusted_connection=yes"
--
Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se
Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx
[Back to original message]
|