Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

How to scripts object permission for user has in sql2005

Posted on 2011-03-15
1
291 Views
Last Modified: 2012-05-11
Hi,
Is there anyway I can check what specific permissions user have for all objects in database ? I can use sp_helprotect to view the permission for a user but how could I generate a scripts to create the permissions ? I have around 100 tables with multi layer of permissions which I need to deploy in new server and db, db restore and generate sql task script did not generate this script :(
0
Comment
Question by:motioneye
1 Comment
 
LVL 7

Accepted Solution

by:
lozzamoore earned 500 total points
ID: 35139058
I've used this before and it got me most of the way there:

http://vyaskn.tripod.com/scripting_permissions_in_sql_server_2005.htm

Regards,
0

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Slowly Changing Dimension Transformation component in data task flow is very useful for us to manage and control how data changes in SSIS.
The Delta outage: 650 cancelled flights, more than 1200 delayed flights, thousands of frustrated customers, tens of millions of dollars in damages – plus untold reputational damage to one of the world’s most trusted airlines. All due to a catastroph…
Via a live example, show how to extract information from SQL Server on Database, Connection and Server properties
Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.

789 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question