SqlConnection conn = new SqlConnection("Server=(local)\\SQLExpress; User ID=sa; Password=1234;database=master;"); SqlCommand myCom = conn.CreateCommand(); myCom.CommandType = CommandType.Text; if (txtUser.Text.Length == 0) 相关文章: