Getting Started with Adobe After Effects - Part 6: Motion Blur


Upload Image Close it
Select File

My Experiments with SQLServer
Browse by Tags · View All
SQLServer 126
SQLServer 2008 R2 91
SQLServer 2008 86
SQLServer 2005 82
SQL 60
Database 59
Sql And Me 57
Tips & Tricks 28
SQL Server 27
SQL FAQ 26

Archive · View All
May 2011 25
June 2011 21
July 2011 21
August 2011 19
April 2011 16
January 2013 4
May 2012 3
April 2012 3
October 2011 3
February 2013 2

Vishal Gajjar's Blog

Using Catalog Views – sys.database_principals

Jun 23 2011 6:55AM by Vishal Gajjar   

While sys.server_principals contains all logins/roles created on the server. sys.database_principals contains all users/roles in the current database. Some of the columns returned by sys.database_principals are as below:

1. Name – name of the principal – user/role name,

2. Principal_id – id of the principal,

3. Type – type of the principal – S = SQL user (mapped to a SQL Login), U = Windows user (mapped to a Windows Login), G = Windows group (mapped to a Windows Group Login), A = Application role, R = Database role, C = Certificate mapped user, K = Asymmetric key mapped user,

4. Type_desc – Textual description of 'Type',

5. Default_schema_name – Default schema name to be used when schema name is not specified,

6. Create/Modify_date – Creation/Modification date,

7. Sid – Security identifier, applicable only to SQL User, Windows User and Windows Group,

8. Is_fixed_role – 1 if it’s a fixed database role.

-- © 2011 – Vishal (http://SqlAndMe.com)
 
SELECT name, principal_id, type, default_schema_name,
       create_date, modify_date, sid, is_fixed_role
FROM   sys.database_principals

Partial Result Set:

Hope This Helps! Cheers!


Republished from Sql&Me [31 clicks].  Read the original version here [32134 clicks].

Vishal Gajjar
46 · 4% · 1276
0
Liked
 
0
Lifesaver
 
0
Refreshed
 
0
Learned
 
0
Incorrect



Submit

Your Comment


Sign Up or Login to post a comment.

    Copyright © Rivera Informatic Private Ltd Contact us      Privacy Policy      Terms of use      Report Abuse      Advertising      [ZULU1097]