Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CREATE VOLATILE TABLE error

Status
Not open for further replies.

GerardMcL

Technical User
Aug 5, 2004
212
IE
Hi,

I am running a REPLACE PROCEDURE.
In the procedure I create a number of VOLATILE TABLES. The syntax looks correct to me but I get an error saying

"User is not authorized to use the DDL/DCL/Dynamic SQL statement"

Logged in as Admin too.
Cant for the life of me figure this out, anyone got any clues?
 
The Creator of the SP must be the immediate Owner if you want to use any of these features.

In other words if you are logged on as SomeUser then you can create SomeUser.MySP with this code, but not SomeOtherDB.MySP.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top