Batch file to run sql script

@echo off @cls
@del CheckReport.txt
@del RepOutput.txt
@cls
@@sqlcmd -s \\SQLSERVER -d Mehul -i FileName.sql -o RepOutput.txt
@@exit


-s --> Server Name
-d --> Database Name
-i --> Input File
-o --> Output File (If Required)






No comments:

Post a Comment