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

<p>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.</p>

Why are you spawning osql?
I've written simple programs to execute scripts using SMO - mostly insired by
this post
.
EDIT
The jist of the post is to use
SQL Server Management Objects (SMO)
.
```
Server.ConnectionContext.ExecuteNonQuery
```
parses SQL with
```
GO
```
statements in it.