String ConnString = @"Data Source=DEV-TP-02\SQLEXPRESS;Initial Catalog=TEST;User ID=login;Password=111;";//连接字符串
SqlConnection myConnection = new SqlConnection(ConnString);//初始化
myConnection.Open();//建立连接
SqlCommand myCommand = new SqlCommand("select *from test where name = xxx",myConnectio...