Executing content of *.sql script in C# language
hi, I have a windows form application, which in some case needs to run a sql
script so the database on users server would be built.
I tried taking the content of sql script using streamreader class and then
putting the text into a sqlCommand and executing.
I know that I have to read it line by line, but I need to know how to put
a new line in C# because it does not work when you just execute the text.
do you have any suggestions?
thank you,
vitek
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

spgilmoreRank #1,616 · 964 reputationPosted Sep 3, 2004, 9:25 AM EDT
vitek20 reputationPosted Sep 3, 2004, 11:55 AM EDT