日期:2014-05-17 浏览次数:20906 次
try
{
sqlconnection conn = new sqlconnection(strconnection));
sqldataadapter myadapter = new sqldataadapter();
sqlcommand mycommand = new sqlcommand("select * from "+strtblname),(sqlconnection)this.conn);
myadapter.selectcommand = mycommand;
sqlcommandbuilder mycommandbuilder = new sqlcommandbuilder(myadapter);
myadapter.update(ds,strtblname);
return 0;
}
catch(businessexception errbu)
{
throw errbu;
}
catch(exception err)
{
throw new businessexception(err);
}