Quantcast
Channel: SQLServerCentral » SQL Server 2014 » Development - SQL Server 2014 » Latest topics
Viewing all articles
Browse latest Browse all 3145

unzip file from t sql cmd line

$
0
0
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]

Viewing all articles
Browse latest Browse all 3145

Trending Articles