Home > Ask the SQL Server Experts > Michael Hotek Questions & Answers > Script to show permissions
Ask The SQL Server Expert: Questions & Answers
EMAIL THIS

Script to show permissions

Michael Hotek EXPERT RESPONSE FROM: Michael Hotek

Pose a Question
Other SQL Server Categories
Meet all SQL Server Experts
Become an Expert for this site


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


>
QUESTION POSED ON: 07 October 2004
I am trying to write a script for SQL Server 2000 that will show me permissions down to the column level. I think I understand that this information can be found in the syspermissions table (linked to sysobjects, syscolumns, and sysusers). However, a number of these columns are bitmaps, and I have not been able to find out how to write the decode bitmap so I can link to syscolumns to see which particular columns are referenced. Would you be able to provide some information on this? My purpose is twofold: 1) Be able to run this query so I can see the details (which Enterprise Manager provides visually) and 2) Use this information to be able to copy security from one DB instance to another on same or different server.

>
Sure. Open Profiler. Point it at the server. Open Enterprise Manager. View the security information. Stop the Profiler trace. Look in the output for the command that Enterprise Manager sends to retrieve the security information.


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   



RELATED CONTENT
Michael Hotek
Applying LDF file to MDF without turning it to .BAK first?
Procedure for finding last modified info?
Migrating poorly designed database to new, normalized one
Displaying decimal places in SQL Server 2000
Creating a DTS package
Extracting data without strings converted to strange characters
Money data type conversion issue using DTS
Any way to alias a call to functions?
Repairing corrupt MDF files
In-place versus side-by-side upgrade

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary



Search and Browse the Expert Answer Center
Search and browse more than 25,000 question and answer pairs from more than 250 TechTarget industry experts.
Browse our Expert Advice



SQL Solutions - SQL Database Design
HomeNewsTopicsITKnowledge ExchangeTipsAsk the ExpertsMultimediaWhite PapersIT Downloads
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 2005 - 2009, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts