注意:此页面搜索的是所有试题
题目内容
(郑州工程技术学院-web技术网页制作)
参考下列C#语句:
SqlConnection Conn1 = new SqlConnection( );
Conn1.ConnectionString = "Integrated Security=SSPI;
Initial Catalog=northwind"; Conn1.Open( );
SqlConnection Conn2 = new SqlConnection( );
Conn2.ConnectionString = "Initial Catalog=northwind;
Integrated Security=SSPI";
Conn2.Open( );
请问:上述语句将创建 () 个连接池来管理这些SqlConnection 对象?
(A)0
(B)1
(C)2
(D)3
SqlConnection Conn1 = new SqlConnection( );
Conn1.ConnectionString = "Integrated Security=SSPI;
Initial Catalog=northwind"; Conn1.Open( );
SqlConnection Conn2 = new SqlConnection( );
Conn2.ConnectionString = "Initial Catalog=northwind;
Integrated Security=SSPI";
Conn2.Open( );
请问:上述语句将创建 () 个连接池来管理这些SqlConnection 对象?
(A)0
(B)1
(C)2
(D)3
参考答案