#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