One thing I’m having problems with, is deploying app to machine not having SMO installed on it. I want to execute scripts having GO
statements, but also would like to avoid the need for installing SMO package on a target machine or parsing SQL script file (since I don't know if sql script will contain functions or SPs).
I tried manually copying SMO relevenat dlls to bin folder of executable but there are always some other dlls needed to run the app.
Any help with this?