sql cmd no truncate 1

sql cmd no truncate

sqlcmd -Sxxxxxxx -E -dmaster -h-1 -y0 -Q" my query that produces long results in here;" > "D\:out.txt"

Here is what the above code is Doing:
1. It’s calling sqlcmd.exe
2. It’s passing in the server name, user name, and password
3. It’s passing in the database name
4. It’s passing in the query
5. It’s passing in the output file

Similar Posts