Hi I am getting incorrect command line error when I type this code,[code="sql"]DECLARE @Result intDECLARE @cmd varchar(200)set @cmd = '"\\localhost\7-Zip\7z.exe" C:\test\servername_dbzip_testdb-20160712.zip c:\test\dumps'print @cmd EXEC @Result = xp_cmdshell @cmd [/code]
↧