You are here: Re: connection of sql server via vba « MsSQL Server « IT news, forums, messages
Re: connection of sql server via vba

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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация