• 2022-06-07
    下列ASP.NET语句()正确地创建了一个与SQL Server 2008数据库的连接。
    A: str="server=.,uid="zhangsan",pwd="123",database=mydb";SqlConnection con=new SqlConnection;
    B: str="server=.;uid="zhangsan";pwd="123";database=mydb";SqlConnection con=new SqlConnection;
    C: str="server=.;uid=zhangsan;pwd=123;database=mydb";SqlConnection con=new SqlConnection;
    D: str="server=.,uid=zhangsan,pwd=123,database=mydb";SqlConnection con=new SqlConnection;
  • 举一反三