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

Add a script

   Items 1 to 20 of 2799    Next 20 >>
 

Job and Step Run Checker

A script that shows you jobs and steps that have succeded or failed recently. (basically, a T-SQL version of your SSMS Job Activity Monitor)  Read more...
By Orestes Zoupanos 2013/06/20 | Source: SQLServerCentral.com | Category: sql agent
Rating: |  Discuss |   Briefcase | 86 reads

Finding Object On Your SQL Instance

Find objects in any database on your SQL instance.  Read more...
By Paul Andrew 2013/06/20 | Source: SQLServerCentral.com | Category: dynamic sql
Rating: (not yet rated) |  Discuss |   Briefcase | 112 reads

FileNameSplitter

Function to split a full file name into drive, path, file name, and extension.  Read more...
By William Talada 2013/06/20 | Source: SQLServerCentral.com | Category: filename
Rating: |  Discuss |   Briefcase | 62 reads

Free space for all database files

I wrote this script to help determine which data files are taking up space on an instance.   Read more...
By James Stuckert 2013/06/20 | Source: SQLServerCentral.com | Category: database space
Rating: |  Discuss |   Briefcase | 150 reads

To remove the specified Characters in the Given String

You can select alphabets alone, Numbers alone, Alphanumeric, or Non Alphanumeric alone.  Read more...
Rating: (not yet rated) |  Discuss |   Briefcase | 43 reads

Capture current queries when cpu is above certain threshold

If you get alerts for high CPU, but by the time you login/check the server cpu is back to normal, then use this sp to create a sql agent job and run it every min.  Read more...
By Uday Reddy 2013/06/20 | Source: SQLServerCentral.com | Category: cpu issues
Rating: (not yet rated) |  Discuss |   Briefcase | 59 reads

Check SQL Error Logs using Powershell

Dynamically check your SQL Error Logs and filter using Powershell.  Read more...
By Jim Breffni 2013/06/20 | Source: SQLServerCentral.com | Category: sql
Rating: (not yet rated) |  Discuss |   Briefcase | 57 reads

Trace Analysis script

Script to help you analyze a trace to find worst performing procs.  Read more...
By Andie Letourneau 2013/06/20 | Source: SQLServerCentral.com | Category: performance
Rating: (not yet rated) |  Discuss |   Briefcase | 49 reads

sp_spaceused rewritten as one query (no cursors)

Query that simulates running sp_spaceused on every applicable object in a database and gathering it all into a single result set.  Read more...
By Greg Drake 2013/06/20 | Source: SQLServerCentral.com
Rating: (not yet rated) |  Discuss |   Briefcase | 43 reads

Locate a column across databases

This utility will locate a column across a subset or all databases across a server. Can be configured to run across versions, and can search tables, views or both.  Read more...
Rating: |  Discuss |   Briefcase | 224 reads

Reindexing for fragmented indexes

Script will give you the list of fragemented indexes. (For SQL 2005-2008)  Read more...
By Rahul 2013/06/20 | Source: SQLServerCentral.com | Category: indexing
Rating: (not yet rated) |  Discuss |   Briefcase | 227 reads

SQL Server Dynamic XML Tag

Extract data from XML file from dynamic tag. in this below e.g we can add / remove Escalations tag from xml file. and depends on that result will display.  Read more...
Rating: (not yet rated) |  Discuss |   Briefcase | 90 reads

iSpy (on your development)

Using EventNotification (Service Broker - DDL_EVENTS) to audit Schema change on a Server, or any of it's databases  Read more...
By Rob Lobbe 2013/06/19 | Source: SQLServerCentral.com | Category: schemas
Rating: |  Discuss |   Briefcase | 496 reads

Restore Script Generator

Create restore script from a SQL Backup file. A must have for your DBA Tool Belt.  Read more...
By Jim Youmans 2013/06/18 | Source: SQLServerCentral.com | Category: restore
Rating: (not yet rated) |  Discuss |   Briefcase | 668 reads

How Long Backups Will Take

When you are running a backup or a restore, this script gives you an estimate of completion time.  Read more...
By Miguel Quintana 2013/06/14 | Source: SQLServerCentral.com | Category: backup
Rating: |  Discuss |   Briefcase | 724 reads

Re-Trust Untrusted Foreign Keys and Constraints

This script will attempt to re-trust untrusted foreign keys and will report counts of successes and failures.  Read more...
By Shaun J. Stuart 2013/06/17 | Source: SQLServerCentral.com | Category: foreign keys
Rating: |  Discuss |   Briefcase | 364 reads

Generate N sequential numbers (fast)

Use ROW_NUMBER() to efficiently generate a tally table.  Read more...
By Brian Bates 2013/06/13 | Source: SQLServerCentral.com | Category: tally table
Rating: |  Discuss |   Briefcase | 878 reads

Space used by db files

Often I've been requested to move a db from one server to another. This script is based on another script I found on the Internet, I cannot remember the name of the Author or track down which site it was.  Read more...
By Ronan Govender 2013/06/12 | Source: SQLServerCentral.com | Category: space
Rating: |  Discuss |   Briefcase | 656 reads

Finding queries to tune

A query to help identify queries that need some tuning.  Read more...
By Simon Osborne 2013/06/11 | Source: SQLServerCentral.com | Category: t-sql
Rating: |  Discuss |   Briefcase | 1,508 reads

What's changed recently?

Often when tracking down problems, you need to know if anything has changed recently, this script will tell you...  Read more...
By Ian Stirk 2013/06/10 | Source: SQLServerCentral.com | Category: performance
Rating: |  Discuss |   Briefcase | 1,195 reads
   Items 1 to 20 of 2799    Next 20 >>