RSS

Tag Archive | "SQL ODBC connection strings"

SQL Server connection strings

Tuesday, August 12, 2008

0 Comments

This is a compiled connection strings reference list on how to connect to SQL Server. ODBC Standard Security Driver={SQL Server};Server=myServerAddress;Database=myDataBase;Uid=myUsername;Pwd=myPassword; Trusted connection Driver={SQL Server};Server=myServerAddress;Database=myDataBase;Trusted_Connection=Yes; Prompt for username and password This one is a bit tricky. First you need to set the connection object’s Prompt property to adPromptAlways. Then use the connection string to connect to the database. oConn.Properties(”Prompt”) = adPromptAlways Driver={SQL Server};Server=myServerAddress;Database=myDataBase;

Continue reading...