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

<< Newer    Items 21 to 40 of 2951    Older >>

Script out passwords

This script will let you get the passwords for all SQL Server principals.  Read more...
By Steve Jones 2014/04/01 | Source:
Rating: |  Discuss |   Briefcase | 1,946 reads

Generate script to rebuild indexes in a database

Generate script for reconstgruir ena database indexes 
By Andrés Michaca 2014/04/08 | Source: | Category: indexing
Rating: (not yet rated) |  Discuss |   Briefcase | 1,153 reads

Script move of DB files from one location to another

Generates Scripts to move DB files from one location to another SQL and powershell scripts  Read more...
By Greg Ryan 2014/04/15 | Source: | Category: sql server 2008
Rating: |  Discuss |   Briefcase | 1,350 reads

Find dependencies between field and sp/function

This script shows the stored procedures and functions affected by field name change in a table.  Read more...
By Raymond Xie 2014/04/09 | Source: | Category: dependencies
Rating: (not yet rated) |  Discuss |   Briefcase | 694 reads

Insert Generator - Stored Procedure

Stored procedure to generate an insert script for a table.  Read more...
By Nick Greene 2014/04/14 | Source:
Rating: |  Discuss |   Briefcase | 1,344 reads

Quick snapshot

Script enables a quick creation of snapshots for databases  Read more...
By Igor Micev 2014/04/04 | Source: | Category: snapshot
Rating: |  Discuss |   Briefcase | 790 reads

Identify Column Data Types

Use the following queries to list a result set of all column data types to any specified database. In the 2nd query, you will see a result set based on all text based data type columns in your database (XML data type not included). Modify accordingly.  Read more...
By Rich Yarger 2014/04/07 | Source: | Category: data types
Rating: |  Discuss |   Briefcase | 971 reads

Alternative for Policy Management in SQL Server

In versions prior to SQL 2008, there is no policy Management. However, we can enforce policies. The script gives an example to enforce naming standards on a stored procedure.  Read more...
By Karthik Jadav 2014/03/28 | Source: | Category: policy management
Rating: |  Discuss |   Briefcase | 438 reads


Retrieve Index Information for all tables. 
By m mcdonald 2014/04/03 | Source: | Category: indexing
Rating: |  Discuss |   Briefcase | 852 reads

Get the all user and their server role

The script give you the list of all users and their respective Server roles  Read more...
By Mitesh Oswal 2014/04/02 | Source: | Category: security
Rating: (not yet rated) |  Discuss |   Briefcase | 883 reads

Get the Column level difference for 2 database

The query will help to get the column level difference for 2 database(Like Prod and Dev database). This help us to verify what are the column changes has been done in dev environment after Prod deployment.   Read more...
By Mitesh Oswal 2014/04/10 | Source:
Rating: |  Discuss |   Briefcase | 824 reads

Defragmentation and update statistics for all online databases

Defragment and Update Statistics.  
By Vimal Lohani 2014/03/27 | Source: | Category: defragmentation.
Rating: |  Discuss |   Briefcase | 1,129 reads

DBCC,Backup, Verify and create Agent Job to restore

Script to Automatically Backup, Drop and create Agent Job to restore from that backup.  Read more...
By Rob Sewell 2014/03/25 | Source: | Category: rationalisation
Rating: (not yet rated) |  Discuss |   Briefcase | 736 reads

Transfer users from one base to another

This script lists all users of all databases on the server.  Read more...
By Fabiano Carvalho 2014/03/31 | Source:
Rating: (not yet rated) |  Discuss |   Briefcase | 868 reads

Partitioned Table View

This is my View for collecting information about partitioned tables.  Read more...
By Eric Eyster 2014/03/26 | Source: | Category: partitioning
Rating: |  Discuss |   Briefcase | 663 reads

Script to Restore Entire database from a directory

Script to restore the entire databases from the backup directory just by passing the backup directory.  Read more...
By sathish siva 2014/03/20 | Source: | Category: restore
Rating: |  Discuss |   Briefcase | 1,438 reads

Script to Check the Database Backup duration

Script to Check the Database Backup duration of entire instances  Read more...
By sathish siva 2014/03/19 | Source:
Rating: |  Discuss |   Briefcase | 947 reads

Script to Get the Database size in GB's

Script to Get the database file size in GB  Read more...
By sathish siva 2014/03/18 | Source: | Category: t-sql
Rating: |  Discuss |   Briefcase | 1,271 reads

Script to Get the Database Restore history

Script to get the Database restore history details including with the files by which the database is restored.  Read more...
By sathish siva 2014/03/17 | Source: | Category: restore
Rating: |  Discuss |   Briefcase | 800 reads

Script to Get the Backup History

Script to get the database backup history on SQL Server 2000/2005/2008  Read more...
By sathish siva 2014/03/14 | Source: | Category: backup / recovery
Rating: |  Discuss |   Briefcase | 877 reads
<< Newer    Items 21 to 40 of 2951    Older >>