![](https://static.youtibao.com/asksite/comm/h5/images/m_q_title.png)
.下列ASP.NET 语句()正确地创建了一个与SQL Server 2000数据库的连接。 A) SqlConnection co
.下列ASP.NET 语句()正确地创建了一个与SQL Server 2000数据库的连接。
A) SqlConnection con1 = new Connection(“Data Source = localhost; Integrated Security =
SSPI; Initial Catalog = myDB”);
B) SqlConnection con1 = new SqlConnection(“Data Source = localhost; Integrated Security =
SSPI; Initial Catalog = myDB”);
C) SqlConnection con1 = new SqlConnection(Data Source = localhost; Integrated Security =
SSPI; Initial Catalog = myDB);
D) SqlConnection con1 = new OleDbConnection(“Data Source = localhost; Integrated
Security = SSPI; Initial Catalog = myDB”);
![](https://static.youtibao.com/asksite/comm/h5/images/solist_ts.png)