Execute permission denied on SP_OACREATE
From: David Brunning (david.brunning_at_dsl.pipex.com)
Date: 08/27/04
- Next message: Adam Machanic: "Re: Aggregate XOR ? Or UDF help..."
- Previous message: Cheryl: "RE: SQL Newbie question w SBS 2003 - confused - what to use"
- Next in thread: Adi Cohn: "Re: Execute permission denied on SP_OACREATE"
- Reply: Adi Cohn: "Re: Execute permission denied on SP_OACREATE"
- Messages sorted by: [ date ] [ thread ]
Date: 27 Aug 2004 06:40:26 -0700
I have managed (Not sure how) to do something to corrupt my database,
but I can't seem to identify the corruption using DBCC. The problem I
have is in trying to run an insert query against a table using an
application role.
The error is being trapped through a VB ActiveX but is reproducible in
Query Analyzer. In QA I run this:
------------------------------------------------------------------------------
EXEC sp_setapprole 'KGI', {Encrypt N 'NOTMYPASSWORD'}, 'odbc'
GO
INSERT INTO tblSurveyAttribute (%FIELD LIST%) VALUES (%VALUE LIST%)
GO
------------------------------------------------------------------------------
When I run the insert not using the app role everything is fine, but
when I use sp_setapprole first I get the following error message:
------------------------------------------------------------------------------
Server: Msg 229, Level 14, State 5, Procedure sp_OACreate, Line 61
EXECUTE permission denied on object 'sp_OACreate', database 'master',
owner 'dbo'.
------------------------------------------------------------------------------
Also, if I use a different database the query runs fine with or
without the application role.
I think that the problem started when a nested transaction failed and
my activeX tried to roll back the inner and outer exceptions without
success - I haven't got as far as trying to reproduce how it happened.
Does anyone have any experience of this? Anyone know what the "real"
error message is?
Thanks
- Next message: Adam Machanic: "Re: Aggregate XOR ? Or UDF help..."
- Previous message: Cheryl: "RE: SQL Newbie question w SBS 2003 - confused - what to use"
- Next in thread: Adi Cohn: "Re: Execute permission denied on SP_OACREATE"
- Reply: Adi Cohn: "Re: Execute permission denied on SP_OACREATE"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|