sqloledbConnecting to an SQL Server instance

The syntax of specifying the server instance in the value of the server key is the same for all connection strings for SQL Server.

Provider=sqloledb;Data Source=myServerName\theInstanceName;
Initial Catalog
=myDataBase;Integrated Security=SSPI;

Connecting

This connection string (Connecting to an SQL Server instance using sqloledb) can be used for connections to SQL Server 2000 and SQL Server 7.0.

Articlesread all »

Not the right connection string for you?

Start over in the connection string reference index.

You can also get help in the Q&A forums where you can ask your own question.

The kb articles contains how-tos and instructions and you can search for anything if you're not sure were to look.