Hi guys
something strange is happening, I can't understand why.
If i launch my dts package from command promp, just like this:
dtsrun /SmyServer /UmyAccount /PmyPwd /NmyDTSPack
everything works fine. But if i try to launch this dts from a sp with:
master..xp_cmdshell '/SmyServer /UmyAccount /PmyPwd /NmyDTSPack'
then I get this error:
DTSRun OnError: DTSStep_DTSDataPumpTask_1, Error = -2147467259 (80004005)
Error String: Cannot open database requested in login 'MyDB'. Login fails.
My account is correctly set to execute xp_cmdshell, in fact i can, ie, execute: master..xp_cmdshell 'dir' (the account infact belongs to sa role)
What can it be? I am going to be crazy!!!
Thanks in advance for you help
something strange is happening, I can't understand why.
If i launch my dts package from command promp, just like this:
dtsrun /SmyServer /UmyAccount /PmyPwd /NmyDTSPack
everything works fine. But if i try to launch this dts from a sp with:
master..xp_cmdshell '/SmyServer /UmyAccount /PmyPwd /NmyDTSPack'
then I get this error:
DTSRun OnError: DTSStep_DTSDataPumpTask_1, Error = -2147467259 (80004005)
Error String: Cannot open database requested in login 'MyDB'. Login fails.
My account is correctly set to execute xp_cmdshell, in fact i can, ie, execute: master..xp_cmdshell 'dir' (the account infact belongs to sa role)
What can it be? I am going to be crazy!!!
Thanks in advance for you help