System.Data.SqlClient.SqlConnection mySQLConn1;
mySQLConn1 = new System.Data.SqlClient.SqlConnection("workstation id=SOS;packet size=4096;user id=sa;initial catalog=pubs;persist security info=False");
DataSet cDataSet;
cDataSet = new DataSet();
System.Data.SqlClient.SqlDataAdapter mySQLDA;
mySQLConn1.Open();
mySQLDA = new System.Data.SqlClient.SqlDataAdapter("SELECT * FROM dbo.employee",mySQLConn1);
mySQLDA.TableMappings.Add("Table","employee");
mySQLDA.Fill(cDataSet);
第一次可以的 到第二次就不行了是不是我用完了mySQLConn1 没有把它close掉
,现在每次调试到 mySQLConn1 = new System.Data.SqlClient.SqlConnection("workstation id=SOS;packet size=4096;user id=sa;initial catalog=pubs;persist security info=False");
这会出错 说system.data.dll组件不能实行,我重起了机器也没用,怎么办 郁闷!!!
mySQLConn1 = new System.Data.SqlClient.SqlConnection("workstation id=SOS;packet size=4096;user id=sa;initial catalog=pubs;persist security info=False");
DataSet cDataSet;
cDataSet = new DataSet();
System.Data.SqlClient.SqlDataAdapter mySQLDA;
mySQLConn1.Open();
mySQLDA = new System.Data.SqlClient.SqlDataAdapter("SELECT * FROM dbo.employee",mySQLConn1);
mySQLDA.TableMappings.Add("Table","employee");
mySQLDA.Fill(cDataSet);
第一次可以的 到第二次就不行了是不是我用完了mySQLConn1 没有把它close掉
,现在每次调试到 mySQLConn1 = new System.Data.SqlClient.SqlConnection("workstation id=SOS;packet size=4096;user id=sa;initial catalog=pubs;persist security info=False");
这会出错 说system.data.dll组件不能实行,我重起了机器也没用,怎么办 郁闷!!!
system.data.dll组件不能实行 应该是和 Connection无关的哦.是不是DATASET 有问题?