views:

1304

answers:

2

Hi,

I have a program that runs osql.exe from microsoft sql server tools directory and runs a script.

The problem is that on computers that don't have an installation of sql server, this tool is missing. So my question is whether or not is possible to run it as a standalone( along with any dll that may be required ) meaning that run them from Process.Start from a local directory of the application.

A: 

Why are you spawning osql?

I've written simple programs to execute scripts using SMO - mostly insired by this post.

David Kemp
its an already written application(not by me), and i don't want to switch its way of running the script.
Konstantinos
+2  A: 

Yes, you can. Just copy the binary and off you go.

MatthieuF