I posted this to the SQL Server Forum, but have not recieved any feedback. So I thought I'd try here.
I'm using MS SQL Server.
I have a DTS package that includes several ActiveX Script Tasks that write to a log file. The package runs fine on my machine and at the server using Enterprise Manager. I created a stored procedure that executes the DTS package using xp_cmdshell. I want to be able to call the stored procedure from an asp page to allow users to execute the DTS package.
The problem I am having is that the DTS package fails when I execute it using the stored procedure. I am recieving a VBScript Runtime Error: Permission Denied.
This error is occurring when I call CreateObject in my ActiveX script:
Set fso = CreateObject("Scripting.FileSystemObject"
I found a MS Knowledge base article that said that this error is due to the fact that SQL Server Agent does not have default access permissions set in the resistry.
I changed the permissions to include Administrators and changed SQL Server Agent from a local login to an Administrator login, but it did not seem to change anything.
Has anybody else had a similar problem?
Any Suggestions?
I'm using MS SQL Server.
I have a DTS package that includes several ActiveX Script Tasks that write to a log file. The package runs fine on my machine and at the server using Enterprise Manager. I created a stored procedure that executes the DTS package using xp_cmdshell. I want to be able to call the stored procedure from an asp page to allow users to execute the DTS package.
The problem I am having is that the DTS package fails when I execute it using the stored procedure. I am recieving a VBScript Runtime Error: Permission Denied.
This error is occurring when I call CreateObject in my ActiveX script:
Set fso = CreateObject("Scripting.FileSystemObject"
I found a MS Knowledge base article that said that this error is due to the fact that SQL Server Agent does not have default access permissions set in the resistry.
I changed the permissions to include Administrators and changed SQL Server Agent from a local login to an Administrator login, but it did not seem to change anything.
Has anybody else had a similar problem?
Any Suggestions?