Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
Log in  ::  Register  ::  Not logged in

Get your favorite SSC scripts directly in SSMS with the free SQL Scripts addin. Search for scripts directly from SSMS, and instantly access any saved scripts in your SSC briefcase from the favorites tab.
Download now (direct download link)

Add a script

   Items 1 to 20 of 3183    Older >>

Cash Payments By Denomination

Will calculate min number of each denomination needed to pay a group of cash employees.   Read more...
By John Fielding 2015/06/25 | Source:
Rating: (not yet rated) |  Discuss |   Briefcase | 5 reads

DB Integrity & Backup Report

This script returns the date for the most recent log/full backups and checks if a DBCC CHECKDB has ran within a week.  Read more...
By Nicholas Williams 2015/06/23 | Source: | Category: backup
Rating: |  Discuss |   Briefcase | 16 reads

When server was rebooted

Find out when your server was rebooted. 
By Mashrur Shuvo 2015/06/22 | Source: | Category: last reboot time
Rating: (not yet rated) |  Discuss |   Briefcase | 20 reads

SQL Backups Compression Archive

This script takes the last full backup includes diff and logs backups until the next full backup in one file.  Read more...
Rating: (not yet rated) |  Discuss |   Briefcase | 11 reads

Conver Number to string ( exp. 9 - 0009 or 9 - 09)

This Function convert integer to string with N number of ceros to the left  Read more...
By Andrés Novelo 2015/06/17 | Source: | Category: t-sql
Rating: (not yet rated) |  Discuss |   Briefcase | 7 reads

Setup Alerts for SQL Replication

If you want to monitor few specific alerts for SQL Replication (Merge and Transnational), you can may consider adding these 14 alerts.  Read more...
By S M 2015/06/16 | Source: | Category: replication
Rating: (not yet rated) |  Discuss |   Briefcase | 9 reads

Monitor SQL Server and Service

To monitor SQL service and the host server is up and running, if down send e-mail to DBA  Read more...
Rating: (not yet rated) |  Discuss |   Briefcase | 316 reads

Check Overdue Databases Backup List For Multiple SQL Servers

Check Overdue Backup List for Multiple SQL Servers from last 24 hrs.  Read more...
By Rahul Biswas 2015/06/15 | Source: | Category: overdue backup list
Rating: |  Discuss |   Briefcase | 140 reads

Productivity Keyboard Shortcuts 2

This is something i can not work without anymore  Read more...
By Emil Bialobrzeski 2015/06/12 | Source: | Category: tools
Rating: |  Discuss |   Briefcase | 239 reads

Dynamic Sudoku for 3X3

it is a 3X3 dynamic sudoku 
Rating: (not yet rated) |  Discuss |   Briefcase | 83 reads

List schemas in a database

This is an expansion of the sys.schemas table. User schemas are sorted to the top, schema type is decoded, schema authorization is included.  Read more...
By Chris Compton 2015/06/10 | Source: | Category: schema
Rating: (not yet rated) |  Discuss |   Briefcase | 114 reads

Recent Restore History

This script simply returns the most recent restore information about databases for a server. Returns the destination database name, the device used to perform the restore and the restore date.  Read more...
By Nicholas Williams 2015/06/10 | Source: | Category: backup
Rating: |  Discuss |   Briefcase | 99 reads

A new set-based T-SQL solution for Sudoku puzzle

New set-based T-SQL solution for Sudoku puzzle using binary data and bitwise operations.   Read more...
By Kevin Duan 2015/06/08 | Source: | Category: set based
Rating: |  Discuss |   Briefcase | 227 reads

Adapatative Files Autogrow

Set minimal autogrow values for datafiles and logfiles depending on the file size, thresholds for all databases  Read more...
By Samuel HERVOUET 2015/06/08 | Source: | Category: files
Rating: |  Discuss |   Briefcase | 93 reads

Check Free Disk Space for Multiple SQL Servers

Check Free Disk Space for Multiple SQL Servers. 
Rating: (not yet rated) |  Discuss |   Briefcase | 207 reads

Data Sample Scripter

Generates code for INSERTs as well as generating data form tables for INSERT. Will also find and script all dependencies recursively, present all scripts in dependency order, and generate a reverse-dependency order set of conditional DELETE statements.  Read more...
By SQLEmil 2015/06/04 | Source: | Category: unit testing
Rating: (not yet rated) |  Discuss |   Briefcase | 82 reads

Delete Backup Files From Default Backup Location

IF you have need to schedule job to cleanup backup files older than N days, you can use my written script.  Read more...
By S M 2015/06/04 | Source: | Category: sql backup - cleanup
Rating: (not yet rated) |  Discuss |   Briefcase | 55 reads

Move database files to another Drive

This script either generates or execute statements to SQL data and log files from C:\ to D:\  Read more...
By Jefferson Elias 2015/06/03 | Source: | Category: admninistration
Rating: (not yet rated) |  Discuss |   Briefcase | 147 reads

Script to estimate the Size of log backups

We have an environment where we constantly need to estimate the size of log backups(.Trn file size). I use this script to achieve it.   Read more...
Rating: (not yet rated) |  Discuss |   Briefcase | 333 reads

Disk Free Space Check

IF you have a requirement to check disk free space and want to report to the team using email, can use my script  Read more...
By S M 2015/06/17 | Source: | Category: dbmail
Rating: |  Discuss |   Briefcase | 1,046 reads
   Items 1 to 20 of 3183    Older >>