79222118

Date: 2024-11-25 08:05:22
Score: 2
Natty:
Report link

you need to assign transaction to command just like we assign connection to command before we execute command

command.Transaction = transaction;

if you begin a transaciton on a sqlConnection, all commands belonging to that connection need to assign a transaction first

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Nagesh Ajab