Hi,
I think it is something to do with xp_cmdshell being able to accept
just one parameter, in your case the first string "c:\prog...".
Try this:
declare @String nvarchar(4000)
set @String = '"C:\Program Files\Microsoft Analysis
Services\Bin\msmdarch" /a MSCLDEVT \\MSCLDEVT\D$\AS\Data\System\
AutomotiveDemo \\MSCLDEVT\D$\Backups\AS\AutomotiveDemo.CAB'
exec master..xp_cmdshell @String
ermedin
[quoted text, click to view] "Zachary M.C. Harris" <zacharymc.harris@verizon.net> wrote in message news:<408A8C50.4309E337@verizon.net>...
> I am trying to handle some code using msmdarch and keep getting an error
>
>
> exec xp_cmdshell "cd C:\Program Files\Microsoft Analysis
> Services\Bin\msmdarch.exe" /a zacwin2k "C:\Program Files\Microsoft Analysis
> Services\Data\" "FoodMart 2000" "C:\FoodMart.cab"
>
> Incorrect syntax near '/'
>
> need help STAT
>