I have an asp.net web site which will send several ExecuteNonQuery() statements (stored proc) to the same database (Sql server 2005). MSDTC service is turned off on both web and database servers.
These statements need to run all successfully, all or none. So I need to wrap them in transaction. Is the best way to use SQLTranscation? Attach the Command object to a transaction and then execute these statements through the command object? What kind of error checking needs to be done in the stored procs so that successful commits or rollbacks occur in the code behind?