Connection strings for SQL Azure
SQL Azure does not support Windows Authentication. The Trusted Connection will always be set to False.
SQL Azure doesn’t support unencrypted connections. You need to specify in your connection string that you want to encrypt the connection.
Connecting to SQL Azure by using OLE DB is not officially supported.
.NET libraries for SQL Azure
- .NET Framework Data Provider for SQL Server - SqlConnection
- .NET Framework Data Provider for ODBC - OdbcConnection
- .NET Framework Data Provider for OLE DB - OleDbConnection
ODBC drivers for SQL Azure
OLE DB providers for SQL Azure
.NET Framework Data Provider for SQL Server
Usage System.Data.SqlClient.SqlConnection
Manufacturer Microsoft
Standard
Use 'username@servername' for the User ID parameter.
With MARS enabled
MARS was enabled in SQL Azure Service Update 2
SQL Server Native Client 10.0 ODBC Driver
Usage Driver={SQL Server Native Client 10.0}
Manufacturer Microsoft
Standard security
Use 'username@servername' for the User ID parameter. Servername is the servername portion of the server parameter, i e 'myNamedServer' of tcp:myNamedServer.database.windows.net
SQL Server Native Client 10.0 OLE DB Provider
Usage Provider=SQLNCLI10
Manufacturer Microsoft
Standard
Microsoft does not announce support for OLE DB connections to Azure and there are limitations. Some required OLE DB schema rowsets are not available from an Azure connection, and some properties that identify features in SQL Server are not adjusted to represent SQL Azure limitations. For most common connect/query/update tasks it seems to work fine.
SQL Server Native Client 11.0 OLE DB Provider
Usage Provider=SQLNCLI11
Manufacturer Microsoft
Standard
Microsoft does not announce support for OLE DB connections to Azure and there are limitations. Some required OLE DB schema rowsets are not available from an Azure connection, and some properties that identify features in SQL Server are not adjusted to represent SQL Azure limitations. For most common connect/query/update tasks it seems to work fine.
.NET Framework Data Provider for ODBC
Usage System.Data.Odbc.OdbcConnection
Manufacturer Microsoft
Use an ODBC driver from .NET
See the respective ODBC driver's connection strings options. The .net OdbcConnection will just pass on the connection string to the specified ODBC driver. Read more here.
.NET Framework Data Provider for OLE DB
Usage System.Data.OleDb.OleDbConnection
Manufacturer Microsoft
Use an OLE DB provider from .NET
See the respective OLEDB provider's connection strings options. The .net OleDbConnection will just pass on the connection string to the specified OLEDB provider. Read more here.