MS SQL SERVER Cheat Sheet
by Hbak via cheatography.com/67474/cs/16964/
Hardware Requirements Software Requirements
Hardware Minimum Recommend Software Version
Processor x86: 1.0 GHz 2.0 GHz or faster. .Net Framework 3.5.1 + 4.0
x64: 1.4 GHz 4.0 is installed during feature installation
Memory Express Editions: 512 MB Express Editions: 1 GB Powershell 2.0
All other edition: 1 GB All other edition: At least 4GB
Internet Explorer 7.0 or later
Disk Space 6 GB
Graphic Super-VGA (800x600) Fixed Server-Level Roles
Role Description
Ports used by SQL Server
Note An instance lies between the SQL Software and the
Description Port databases.
Analysis Services TCP 2383 Sysadmin Can perform all activities possible on the Database Engine
instance.
Database Mirroring Chosen by administrator
Dedicated Admin Connection TCP 1434 Serveradmi Can perform instance-wide configuration tasks.
n Can shut down the instance
Default Instance TCP 1433
Securityadm Able to manage instance-level permissions
Integration Services: Microsoft remote TCP 135
in
procedure calls
Processadm Can terminate processes running on a Database Engine
Integration services run time TCP 135
in instance
Microsoft Distributed Transaction TCP 135
Setupadmin Can add linked servers to and remove linked servers from
Coordinator (MS DTC)
the Database Engine instance.
Named instances in default Configure named instances to
Bulkadmin Allowed to use the BULK INSERT statement on databases
configuration use fixed TCP ports
hosted on a instance.
Replication TCP 1433
Diskadmin Can manage instance-related files
Reporting Services Web Services TCP 80
Dbcreator Able to create, alter, drop, and restore databases hosted
Reporting Services configured for use TCP 443 on the Database Engine instance.
through HTTPS
Public All logins are forced members of this role. By default has
Service Broker TCP 4022 no rights and shouldn't be given rights
SQL Server Browser service TCP 1434 Custom Custom roles with Custom rights, can be created on
SQL Server Browser Service TCP 2382 (Only used for an Roles server/Database level. Database level, allows per table
analysis service named custom rights. Can be defined by: Security -> Database
instance) role -> new -> Securables (search) -> all objects -> tables,
and ticking what you want of rights, defined per-table.
SQL Server instance running over an TCP port 80 for CLEAR_PORT
HTTP endpoint traffic
TCP port 443 for SSL_PORT
traffic
SQL Server Management Studio UDP 1434
browse connection to browser service
Transact-SQL Debugger TCP 135
By Hbak Not published yet. Sponsored by CrosswordCheats.com
cheatography.com/hbak/ Last updated 7th September, 2018. Learn to solve cryptic crosswords!
Page 1 of 2. http://crosswordcheats.com
MS SQL SERVER Cheat Sheet
by Hbak via cheatography.com/67474/cs/16964/
SQL Server Agent Setup Backup Types (cont)
SQL Server Agent is a protocol to automate the execution of jobs. Transaction Makes a backup of all transactions which has occured in
It is by default disabled. Log Backup a database.
When the backup is finished the transaction log can be
When SQL Server Agent is started, it automatically creates an account for
truncated/cleaned up.
it self.
File & Back up individual database files and filegroups rather
This account must be a member of the sysadmin group, and is so by
Filegroup than performing a full database backup.
default during creation.
Backup Transaction Log backup must also be performed, without
The SQL Server Agent should never be a member of the Administrators truncate.
Group on the local host.
Dynamic Management Objects
Category Description
sys.dm_ex Provide information about connections, sessions, requests
ec_* and query execution.
sys.dm_os Provide access to SQL Server operating system–related
_* information.
sys.dm_tra Provide access to transaction management.
n_*
sys.dm_io_ Provide information on I/O processes.
*
sys.dm_db Provide database-scoped information.
_*
Backup Types
Name Description
Full Includes all database objects, system tables, and data.
Database Transaction occuring during backup is also included.
Backup File attributes are altered.
Incremental Back up data that has been changed since last full backup
and incremental backup.
File attributes are altered.
Copy-only Includes all database objects, system tables, and data.
Backup Transaction occuring during backup is also included.
File attributes are not altered.
Copy backups cannot be used as the basis for a
differential backup or transaction log backup.
Differential Back up data that has been changed since the last full
Backup backup.
Use differential backups in conjunction with the last full
backup.
File attributes are not altered.
By Hbak Not published yet. Sponsored by CrosswordCheats.com
cheatography.com/hbak/ Last updated 7th September, 2018. Learn to solve cryptic crosswords!
Page 2 of 2. http://crosswordcheats.com