Forums - C# Corner

Forum guidelines
Mega Anaska

Mega Anaska

  • 1.5k
  • 21
  • 1.4k

SqlTransaction and error ExecuteNonQuery

Mar 25 2016 2:47 AM
hello guys, I make script with select, insert, and update, and I used sqltransaction but when thescript after running select and start to run i = this.cmdInsert.ExecuteNonQuery, it's error with a word ExecuteNonQuery requires an open and available Connection. The connection's current state is closed.
 
 
can you help me? thanks.

Answers (7)