Category Archives: Database

Database Level Fixed Roles

DB Levek Fixed Roles Rights and Description
db_accessadmin Members can manage Windows groups and SQL Server logins.
db_backupoperator Issue DBCC, CHECKPOINT, and BACKUP statements.
db_datareader Select all data from any user table in the database
db_datawriter Modify any data in any user table in the database
db_ddladmin Issue all Data Definition Language (DDL) statements
db_denydatareader Cannot select any data from any user table in the database
db_denydatawriter Cannot modify any data in any user table in the database
db_owner Has full permissions to the database
db_securityadmin Members can modify role membership and manage permissions.

How to check SQL Server Version Or Build No?

Option 1
EXEC master..sp_MSgetversion
Output
Character_Value
——————– ———– ———–
10.0.2789.0 1 3

Option 2
select @@version
Output
Microsoft SQL Server 2008 (SP1) – 10.0.2789.0 (X64)
Jul 12 2010 19:21:29
Copyright (c) 1988-2008 Microsoft Corporation
Enterprise Edition (64-bit) on Windows NT 5.2 (Build 3790: Service Pack 2)

Option 3
SELECT SERVERPROPERTY('productversion')
Output Build Version
10.0.2789.0

Option 5
SELECT SERVERPROPERTY ('productlevel')
Output-Service Pack
SP1

Option 6
SELECT SERVERPROPERTY ('edition')
Output-Edition
Enterprise Edition (64-bit)