SQL Native Client ODBC Driver |
|
|
| |
Driver=
{SQL Native Client};
Server=
myServerAddress;
Database=
myDataBase;
Uid=
myUsername;
Pwd=
myPassword;
|
|
您是否在使用SQL Server 2005 Express? 请在“Server”选项使用连接表达式“主机名称/SQLEXPRESS”。 |
| |
|
| |
Driver=
{SQL Native Client};
Server=
myServerAddress;
Database=
myDataBase;
Trusted_Connection=
yes;
|
|
"Integrated Security=SSPI" 与 "Trusted_Connection=yes" 是相同的。 |
| |
|
指定服务器实例的表达式和其他SQL Server的连接字符串相同。 | |
Driver=
{SQL Native Client};
Server=
myServerName/theInstanceName;
Database=
myDataBase;
Trusted_Connection=
yes;
|
|
| |
|
oConn.Properties("Prompt") = adPromptAlways
Driver=
{SQL Native Client};
Server=
myServerAddress;
Database=
myDataBase;
|
|
| |
|
| |
Driver=
{SQL Native Client};
Server=
myServerAddress;
Database=
myDataBase;
Trusted_Connection=
yes;
MARS_Connection=
yes;
|
|
"MultipleActiveResultSets=true"与MARS_Connection=yes"是相同的。 | 使用ADO.NET 2.0作为MARS的模块。 MARS不支持ADO.NET 1.0和ADO.NET 1.1。 |
| |
|
| |
Driver=
{SQL Native Client};
Server=
myServerAddress;
Database=
myDataBase;
Trusted_Connection=
yes;
Encrypt=
yes;
|
|
| |
|
| |
Driver=
{SQL Native Client};
Server=
./SQLExpress;
AttachDbFilename=
c:/asd/qwe/mydbfile.mdf;
Database=
dbname;
Trusted_Connection=
Yes;
|
|
为何要使用Database参数?如果同名的数据库已经被附加,那么SQL Server将不会重新附加。 |
| |
|
| |
Driver=
{SQL Native Client};
Server=
./SQLExpress;
AttachDbFilename=
|DataDirectory|mydbfile.mdf;
Database=
dbname;
Trusted_Connection=
Yes;
|
|
为何要使用Database参数?如果同名的数据库已经被附加,那么SQL Server将不会重新附加。 |
| |
|
Data Source=
myServerAddress;
Failover Partner=
myMirrorServer;
Initial Catalog=
myDataBase;
Integrated Security=
True;
|
|
| |
SQL Native Client OLE DB Provider |
|
|
| |
Provider=
SQLNCLI;
Server=
myServerAddress;
Database=
myDataBase;
Uid=
myUsername;
Pwd=
myPassword;
|
|
您是否在使用SQL Server 2005 Express? 请在“Server”选项使用连接表达式“主机名称/SQLEXPRESS”。 |
| |
|
| |
Provider=
SQLNCLI;
Server=
myServerAddress;
Database=
myDataBase;
Trusted_Connection=
yes;
|
|
"Integrated Security=SSPI"与"Trusted_Connection=yes"相同 |
| |
|
指定服务器实例的表达式和其他SQL Server的连接字符串相同。 | |
Provider=
SQLNCLI;
Server=
myServerName/theInstanceName;
Database=
myDataBase;
Trusted_Connection=
yes;
|
|
| |
|
oConn.Properties("Prompt") = adPromptAlways
oConn.Open "Provider=
SQLNCLI;
Server=
myServerAddress;
DataBase=
myDataBase;
|
|
| |
|
| |
Provider=
SQLNCLI;
Server=
myServerAddress;
Database=
myDataBase;
Trusted_Connection=
yes;
MarsConn=
yes;
|
|
"MultipleActiveResultSets=true"和"MARS_Connection=yes"是相同的。 | 使用ADO.NET 2.0作为MARS的模块。 MARS不支持ADO.NET 1.0和ADO.NET 1.1。 |
| |
|
| |
Provider=
SQLNCLI;
Server=
myServerAddress;
Database=
myDataBase;
Trusted_Connection=
yes;
Encrypt=
yes;
|
|
| |
|
| |
Provider=
SQLNCLI;
Server=
./SQLExpress;
AttachDbFilename=
c:/asd/qwe/mydbfile.mdf;
Database=
dbname;
Trusted_Connection=
Yes;
|
|
为何要使用Database参数?如果同名的数据库已经被附加,那么SQL Server将不会重新附加。 |
| |
|
| |
Provider=
SQLNCLI;
Server=
./SQLExpress;
AttachDbFilename=
|DataDirectory|mydbfile.mdf;
Database=
dbname;
Trusted_Connection=
Yes;
|
|
为何要使用Database参数?如果同名的数据库已经被附加,那么SQL Server将不会重新附加。 |
| |
|
Data Source=
myServerAddress;
Failover Partner=
myMirrorServer;
Initial Catalog=
myDataBase;
Integrated Security=
True;
|
|
| |
SqlConnection (.NET) |
|
|
| |
Data Source=
myServerAddress;
Initial Catalog=
myDataBase;
User Id=
myUsername;
Password=
myPassword;
|
|
使用serverName/instanceName作为数据源可以指定SQL Server实例。 | 您是否在使用SQL Server 2005 Express? 请在“Server”选项使用连接表达式“主机名称/SQLEXPRESS”。 |
| |
|
Server=
myServerAddress;
Database=
myDataBase;
User ID=
myUsername;
Password=
myPassword;
Trusted_Connection=
False;
|
|
| |
|
| |
Data Source=
myServerAddress;
Initial Catalog=
myDataBase;
Integrated Security=
SSPI;
|
|
| |
|
Server=
myServerAddress;
Database=
myDataBase;
Trusted_Connection=
True;
|
|
| |
|
指定服务器实例的表达式和其他SQL Server的连接字符串相同。 | |
Server=
myServerName/theInstanceName;
Database=
myDataBase;
Trusted_Connection=
True;
|
|
| |
|
Data Source=
myServerAddress;
Initial Catalog=
myDataBase;
Integrated Security=
SSPI;
User ID=
myDomain/myUsername;
Password=
myPassword;
|
|
| |
|
| |
Data Source=
190.190.200.100,1433;
Network Library=
DBMSSOCN;
Initial Catalog=
myDataBase;
User ID=
myUsername;
Password=
myPassword;
|
|
| |
|
| |
Server=
myServerAddress;
Database=
myDataBase;
Trusted_Connection=
True;
MultipleActiveResultSets=
true;
|
|
使用ADO.NET 2.0作为MARS的模块。 MARS不支持ADO.NET 1.0和ADO.NET 1.1。 |
| |
|
| |
Server=
./SQLExpress;
AttachDbFilename=
c:/asd/qwe/mydbfile.mdf;
Database=
dbname;
Trusted_Connection=
Yes;
|
|
为何要使用Database参数?如果同名的数据库已经被附加,那么SQL Server将不会重新附加。 |
| |
|
| |
Server=
./SQLExpress;
AttachDbFilename=
|DataDirectory|mydbfile.mdf;
Database=
dbname;
Trusted_Connection=
Yes;
|
|
为何要使用Database参数?如果同名的数据库已经被附加,那么SQL Server将不会重新附加。 |
| |
|
Data Source=
./SQLExpress;
Integrated Security=
true;
AttachDbFilename=
|DataDirectory|/mydb.mdf;
User Instance=
true;
|
|
|
Data Source=
myServerAddress;
Failover Partner=
myMirrorServer;
Initial Catalog=
myDataBase;
Integrated Security=
True;
|
|
|
Server=
myServerAddress;
Database=
myDataBase;
Integrated Security=
True;
Asynchronous Processing=
True;
|
|