Hello guys, I'm trying to build a procedure very simple.
For "information security policies" beyond me i need to run a procedure that creates a new table with an user wich doesn't have creation permissions. Inside the procedure i need to log as owner(wich has permissions) and execute the create statement. I know this is kind of ridiculous and there are more effective ways, but it's the way the corporate do this things.
So basically, inside procedure: log as userOwner and Create Table (the table name is passed as parameter of the procedure)
I'm having problems to find some code or references to do the user change inside a procedure. Can anyone help me with this?
Thankss!!