Do we need 'commit' statement to run sql queries using C#?

Hi,
I am writing a program to read a sql file containing multiple queries and executing it in my C# program.
I wanted to know what would be the best way of doing this. I am currently separating queries using semi colon and then executing them using Execute.NonQuery();

I also wanted to confirm if i need to commit these queries separately since it seems to be doing it itself.

Thanks
ravi424Asked:
Who is Participating?
 
Guy Hengel [angelIII / a3]Connect With a Mentor Billing EngineerCommented:
no commit needed, unless you started a explicit transaction.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.