connection of sql server via vba

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • sydney

    connection of sql server via vba

    Help !!

    I have a sql server database that is as follows

    SERVER: AFG
    Database Name : APF
    Authentication: Windows authentication

    how do I create the connectionstrin g via vba to access this database?

  • Erland Sommarskog

    #2
    Re: connection of sql server via vba

    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 connectionstrin g via vba to access this database?
    "Provider=SQLOL EDB;Server=AFG; Inital Catalog=APF;Tru sted_connection =yes"


    --
    Erland Sommarskog, SQL Server MVP, esquel@sommarsk og.se

    Books Online for SQL Server 2005 at

    Books Online for SQL Server 2000 at

    Comment

    • lucm

      #3
      Re: connection of sql server via vba


      sydney wrote:
      Help !!
      >
      I have a sql server database that is as follows
      >
      SERVER: AFG
      Database Name : APF
      Authentication: Windows authentication
      >
      how do I create the connectionstrin g via vba to access this database?
      All connection strings in one place. Find the syntax for your database connection using ADO.NET, ADO, ODBC, OLEDB, C#, VB, VB.NET, ASP.NET and more.


      Comment

      Working...