Forum Discussion

Uzumaki's avatar
Uzumaki
Occasional Contributor
15 years ago

Executing .sql files in C# script.

Hi



My scenario:



I have a .sql file contaning several SQL commands. I want to execute all these commands using C# script or some other method.



What is the "correct" way to do this? Maybe using sql from the command line?



Any input is appreciated.



/Joakim