문제

I have a set of SQLCMD codes which are to be saved as exe files so that people can just execute the file rather than copy paste the code and run the command in command line.

도움이 되었습니까?

해결책

Write your sql code to file for example script.sql and than create a batch file (for example run.bat) with below command

sqlcmd -U user -P passwrod -S SerwerName -i C:\script.sql
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top