soozh
asked on
Uses OLE in a sp run by SQL Server Agent.
Hello,
I want to run a stored procedure using SQL Server Agent.
This stored procedure uses OLE and calls sp_AOCreate.
When testing I used the following:
to enable OLE.
How should i run this job under SQL Server Agent?
Does running the above script only work for the current session, or does it apply to all uses in the database?
I want to run a stored procedure using SQL Server Agent.
This stored procedure uses OLE and calls sp_AOCreate.
When testing I used the following:
sp_configure ‘show advanced options’, 1;
GO
RECONFIGURE;
GO
sp_configure ‘Ole Automation Procedures’, 1;
GO
RECONFIGURE;
GO
to enable OLE.
How should i run this job under SQL Server Agent?
Does running the above script only work for the current session, or does it apply to all uses in the database?
ASKER
Hello,
I may not have been clear. I already have a working SP, that i have tested a few times. So i know that the code is ok.
What i need to know is how enable the OLE option for SQL Server Agent and this job in particular.
/r
I may not have been clear. I already have a working SP, that i have tested a few times. So i know that the code is ok.
What i need to know is how enable the OLE option for SQL Server Agent and this job in particular.
/r
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
ok... thanks for that.. but will the job have to be run as an administrator?
Yes, you need to provide a user with sysadmin role so it can enable the OLE automation procedure.
Open in new window