automatically in a transaction?

  • Thread starter Thread starter szabelin
  • Start date Start date
S

szabelin

no, you have to say
SqlTransaction trans = conn.BeginTransaction();
sqlComd.Transaction = trans;
sqlCmd.executeNonQuery();

and then commit or rollback on your transaction depending
on your needs. Read up on SqlTransaction class and samples.
 
Back
Top