SET username=USER_NAME
SET password=PASSWORD
SET dbname=DBNAME
SET servername=SERVER_NAME
sqlcmd -U %username% -P %password% -S %servername% -d %dbname% -i RequiredScript.sql -o SQLFILENAMEWITHPATH.txt
pause
SET password=PASSWORD
SET dbname=DBNAME
SET servername=SERVER_NAME
sqlcmd -U %username% -P %password% -S %servername% -d %dbname% -i RequiredScript.sql -o SQLFILENAMEWITHPATH.txt
pause
No comments:
Post a Comment