Quantcast
Channel: SQL Server High Availability and Disaster Recovery forum
Viewing all articles
Browse latest Browse all 4532

Use xp_cmdshell to execute nqcmd through SSMS

$
0
0

Hi all,

I am trying to execute nqcmd utility through SSMS but it is not working. If I run it at command line, it is successful but unable to run it through SSMS.

 

The script that I am using is similar to the below code.

	SET @sCmd = 'nqcmd -d "Server_Name" -u UserName -p Password -s "Test.sql" -o "Test1.dat"'
	PRINT 'STEP: ' + @sCmd
	EXEC @nResult = master..xp_cmdshell @sCmd

 

Viewing all articles
Browse latest Browse all 4532

Trending Articles



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