vitek

vitek

  • NA
  • 20
  • 0

executing content of *.sql script in C# language

Sep 3 2004 4:15 AM
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

Answers (2)