110,535
社区成员
发帖
与我相关
我的任务
分享
public bool ExecuteDataSet(string strCmd,ref DataSet ds)
{
strConnection = string.Format(strConn, strUserID, strDataSource, strPwd);
ds.Clear();
try
{
if (mOrclCnn.State == ConnectionState.Open) { this.mOrclCnn.Close(); }
mOrclCnn.ConnectionString = strConnection;
this.mOrclCnn.Open();
OracleDataAdapter Adapter = new OracleDataAdapter(strCmd, this.mOrclCnn);
Adapter.Fill(ds);
return true;
}
catch (Exception ex)
{
MessageBox.Show("执行操作信息时 -" + ex.Message.ToString(), "系统提示");
return false;
}
}