G
Guest
Using Microsoft.Practices.EnterpriseLibrary.Data, how do I capture the return
value from executing a stored procedure on SQL Server 2000 (i.e., how could
I tell the Stored Procedure did not return 0 [indicating failure] or that a
transaction the stored procedure begun had been rolled back):
No exceptions were thrown from the following when -1 was returned and
transaction rolled back:
Database db = DatabaseFactory.CreateDatabase();
string sqlCommand = "uspCreator";
DBCommandWrapper creatorCommandWrapper =
db.GetStoredProcCommandWrapper(sqlCommand);
db.ExecuteNonQuery(creatorCommandWrapper);
value from executing a stored procedure on SQL Server 2000 (i.e., how could
I tell the Stored Procedure did not return 0 [indicating failure] or that a
transaction the stored procedure begun had been rolled back):
No exceptions were thrown from the following when -1 was returned and
transaction rolled back:
Database db = DatabaseFactory.CreateDatabase();
string sqlCommand = "uspCreator";
DBCommandWrapper creatorCommandWrapper =
db.GetStoredProcCommandWrapper(sqlCommand);
db.ExecuteNonQuery(creatorCommandWrapper);