Hi,
Can we have a script for the following command to be executed in Commandline to generate a text file?
SQLCMD -S UKSOKDWDBDV01\ATP -d KALDIW_DV -o C:\temp\sql.out -Q "SELECT run_command FROM dbo.VW_PROCESS_CONTROL WHERE run_task_name = 'Load Product'" -h -1 -W
Regards,
Saroj
Script to generate a text file
Hi
First example :
1- Create a text file "sql.txt" containing :
SELECT run_command FROM dbo.VW_PROCESS_CONTROL WHERE run_task_name = 'Load Product'
If you use SYBASE add go the line after.
2- Create a bat file "sql.bat" containing :
SQLCMD -S UKSOKDWDBDV01\ATP -d KALDIW_DV -o C:\temp\sql.out -i sql.txt -h -1 -W
and launch sql.bat.
or
Create simply sql.bat with your complete request.
First example :
1- Create a text file "sql.txt" containing :
SELECT run_command FROM dbo.VW_PROCESS_CONTROL WHERE run_task_name = 'Load Product'
If you use SYBASE add go the line after.
2- Create a bat file "sql.bat" containing :
SQLCMD -S UKSOKDWDBDV01\ATP -d KALDIW_DV -o C:\temp\sql.out -i sql.txt -h -1 -W
and launch sql.bat.
or
Create simply sql.bat with your complete request.