Can osql.exe work autonomously?

I have a program that runs osql.exe from the Microsoft SQL Server tool directory and runs a script.

The problem is that on computers that do not have sql server installation, this tool is missing. So my question is whether it is possible to run it as a standalone (along with any dll that may be required), which means that they start them from Process.Start from the local application directory.

+3
source share
2 answers

Yes, you can. Just copy the binary and release.

+1
source

Why are you creating osql?

SMO, .

- SQL Server (SMO). Server.ConnectionContext.ExecuteNonQuery SQL GO.

0

Source: https://habr.com/ru/post/1699218/


All Articles