luckyboy
2005-05-16 19:40:47 UTC
Hi , i'm trying to run a remote command (or run a program) on an as400
machine (which is successfully added as a linked server) from within an
ms sql server2000 stored procedure..... I tried using rmtcmd with
xp_cmdshell like this
exec master..xp_cmdshell 'rmtcmd CLRPFM FILE(Z8IDFCPYC/TRIAL1)'
but i get the folloowing error:
"CWB4004 - Security error occurred for system "
which means as i guess that the username and password are not sent to
the remote system, although when i run the same command from the
command line it executes successfully wihtout promting for login(client
access is using a default user to connect) ,so what's the problem ? is
there another way to run a remote command from a stored procedure
?........
machine (which is successfully added as a linked server) from within an
ms sql server2000 stored procedure..... I tried using rmtcmd with
xp_cmdshell like this
exec master..xp_cmdshell 'rmtcmd CLRPFM FILE(Z8IDFCPYC/TRIAL1)'
but i get the folloowing error:
"CWB4004 - Security error occurred for system "
which means as i guess that the username and password are not sent to
the remote system, although when i run the same command from the
command line it executes successfully wihtout promting for login(client
access is using a default user to connect) ,so what's the problem ? is
there another way to run a remote command from a stored procedure
?........