Neil Toulouse
Programmer
Hi!
Is it possible to programatically grant a user server roles temporarily so they can run a process, and then revert them back afterwards?
Specifically I need to assign 'bulkadmin' and 'sysadmin' to a user, run a stored proc, then revert them back to their original roles.
It would also have to work with both SQL2005 and SQL2008 (and maybe SQL200).
Many thanks
Neil
I like work. It fascinates me. I can sit and look at it for hours...
Is it possible to programatically grant a user server roles temporarily so they can run a process, and then revert them back afterwards?
Specifically I need to assign 'bulkadmin' and 'sysadmin' to a user, run a stored proc, then revert them back to their original roles.
It would also have to work with both SQL2005 and SQL2008 (and maybe SQL200).
Many thanks
Neil
I like work. It fascinates me. I can sit and look at it for hours...