M
Maersa
Hi All,
I'm using the SqlCommandBuilder which automatically generates all the sql
commands, but how do I set the Transaction for it in case it fails...
SqlDataAdapter adapter = new SqlDataAdapter();
adapter.SelectCommand = new SqlCommand( "SELECT * FROM QueryInfo",
connection );
SqlCommandBuilder builder = new SqlCommandBuilder( adapter );
....
adapter.Update( dataSet );
Where would the Transaction come in play ?
thanks,
I'm using the SqlCommandBuilder which automatically generates all the sql
commands, but how do I set the Transaction for it in case it fails...
SqlDataAdapter adapter = new SqlDataAdapter();
adapter.SelectCommand = new SqlCommand( "SELECT * FROM QueryInfo",
connection );
SqlCommandBuilder builder = new SqlCommandBuilder( adapter );
....
adapter.Update( dataSet );
Where would the Transaction come in play ?
thanks,