主题:ADO问题
string connstr =
@"server =LOCAL;uid = C#;database = northwind ";
string commstr =
"select CompanyName from customers";
SqlConnection SQC = new SqlConnection(connstr);
SqlDataAdapter SDA = new SqlDataAdapter(commstr,SQC);
DataSet DS = new DataSet();
SDA.Fill(DS,"customers");//这里出现"系统错误"?为什么?能该正吗?
@"server =LOCAL;uid = C#;database = northwind ";
string commstr =
"select CompanyName from customers";
SqlConnection SQC = new SqlConnection(connstr);
SqlDataAdapter SDA = new SqlDataAdapter(commstr,SQC);
DataSet DS = new DataSet();
SDA.Fill(DS,"customers");//这里出现"系统错误"?为什么?能该正吗?