10 pts.
 Table creation in SQL Server 2005
Hi, I need to prevent users to use CREATE TABLE but I need them to be able to execute a stored procedure that creates a table. Is it possible to allow users to create tables in SQL Server 2005 only through a stored procedure? Thanks in advance.

Software/Hardware used:
ASKED: June 12, 2008  4:38 PM
UPDATED: June 12, 2008  6:06 PM

Answer Wiki:
Basically no. The CREATE TABLE privilege must be granted to the user in order a stored procedure they run to create a table dynamically. The exception is a temp table.
Last Wiki Answer Submitted:  June 12, 2008  6:05 pm  by  Denny Cherry   64,520 pts.
All Answer Wiki Contributors:  Denny Cherry   64,520 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

Check out my SQL Server blog “SQL Server with Mr Denny” for more SQL Server information.

 64,520 pts.