OSQL vs SqlConnection

  • I have a large .sql script that contains various commands to create a schema for a database.  Currently I am using the .NET Process object that launches the osql utility and passes the script as a parameter.  It all works fine, but I was wondering if I should be using SqlConnection instead.  Is one method better than another from a programming perspective?  Does anyone have any thoughts on this?

     

    Thanks in advance!

  • I'm not sure one if better than the other. I like osql or isql since scripting it pretty simple to use and I can always launch outside of another tool if I need to.

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply