Quantcast
Channel: Forum Getting started with SQL Server
Viewing all articles
Browse latest Browse all 7129

spool command in sql

$
0
0

Hi Experts,

Quick question about using Spool command. Basically i wanted to run a script which has multiple queries and i wanted to see the execution output along with actual script.

 Below is my try,
 sqlcmd -i D:\Sample\SpoolCheck.sql -o D:\Sample\SpoolCheck.txt
 

I have create sample table in the above mentioned sql file. When i execute the dos command i don't see the execution result. please advice me if we have any other way doing this?

Thanks in advance.



Viewing all articles
Browse latest Browse all 7129

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>