Learning Never Ends
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
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment