Skip to content

Instantly share code, notes, and snippets.

@jeffjohnson9046
Created May 14, 2015 18:24
Show Gist options
  • Save jeffjohnson9046/5955614b6560dc39bf44 to your computer and use it in GitHub Desktop.
Save jeffjohnson9046/5955614b6560dc39bf44 to your computer and use it in GitHub Desktop.
A collection of some commonly-used options for sp_configure in MSSQL Server
sp_configure 'show advanced options', 1
reconfigure;
-- show advanced options
-- backup compression default -- always compress backups.
-- blocked process threshold (s) -- only capture blocking scenarios that block this threshold.
-- clr enabled -- allows CLR user-defined stored procedures and functions.
-- Database Mail XPs
-- fill factor (%) -- useful for reducing fragmentation (for frequently updated tables). Reduces page-splitting when a record has be inserted in the middle of the page
-- max degree of parallelism -- set the max number of CPUs that are available for a single query. Can be overridden by MAX DOP setting on a query
-- remote access -- grant/revoke ability to allow remote users to access the SQL Server from external connections
-- remote admin connections -- leave one CPU free for remote administration connections. Useful for busy machines; admin can still get into machine.
-- xp_cmdshell -- allows execution of command shell commands from within SQL server. VERY RISKY - VERY INSECURE.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment