Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

tsql cmd exec script from file

#Integrated Security
sqlcmd -S Serverinstance -E -i import_file.sql
#UserName and Password
sqlcmd -S <server Name> -U sa -P sapassword -i inputquery_file_name -o outputfile_name
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #tsql #cmd #exec #script #file
ADD COMMENT
Topic
Name
9+4 =