
Problem attaching stored procedure and SQL Server trigger
Learn why using the sp_OACreate stored procedure with a SQL Server 2005 trigger, is likely to result in a permissions problem.
All goes well when I execute it in SQL Analyzer. So, I tried to attach this stored procedure to the trigger. When
Free membership is required to view this page
Become a member now to view all TechTarget content freely.
Sign in for existing membersBy submitting you agree to receive email communications from
TechTarget and its partners. Privacy Policy Terms of Use.
a certain column in one table changes, I want the trigger to call this stored procedure. It seems easy, but when I tried it, the SQL Server instance blocked. I got a message saying there was a permissions problem of using the method sp_OACreate. I've modified the authorization, but it still won't work.
When I execute the stored procedure and trigger separately, there's no problem. Is there any difference between these two ways, or did I lose something in my test?
Dig deeper on Microsoft SQL Server 2005
Pro+
Features
Enjoy the benefits of Pro+ membership, learn more and join.
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.
Meet all of our SQL Server experts
View all SQL Server questions and answers
0 comments
Oldest Newest