S
simonZ
SqlCommand oCmd;
SqlTransaction tran;
oCmd = new SqlCommand("myStoredProcedure",myFunctions.createConnection());
oCmd.CommandType = CommandType.StoredProcedure;
tran=oCmd.Transaction.Connection.BeginTransaction();//I get an error: null exception
Any idea?
Without tran everything works.
regards,Simon
SqlTransaction tran;
oCmd = new SqlCommand("myStoredProcedure",myFunctions.createConnection());
oCmd.CommandType = CommandType.StoredProcedure;
tran=oCmd.Transaction.Connection.BeginTransaction();//I get an error: null exception
Any idea?
Without tran everything works.
regards,Simon