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 61 to 80 of 3119    Older >>
 

Calculate age - Most easiest way

This function is used to calculate the age from the given date.  Read more...
Rating: |  Discuss |   Briefcase | 1,981 reads

Create Table At Runtime

With the help of this script we can generate Create Table Script At Run Time.  Read more...
Rating: |  Discuss |   Briefcase | 1,012 reads

Function for Proper Case - Most easiest way

This function is used to manage the alphabet case, which means the first letter of all the words will be in caps.  Read more...
By Vignesh Arulmani 2014/11/26 | Source: SQLServerCentral.com | Category: propercase
Rating: |  Discuss |   Briefcase | 1,111 reads

Last Accessed Datetime for table - Most easiest way

This function is used to get the complete table lists are particular table and its last access datetime.  Read more...
By Vignesh Arulmani 2014/11/25 | Source: SQLServerCentral.com | Category: auditing
Rating: |  Discuss |   Briefcase | 1,950 reads

Calculate distance between 2 coordinates/latlong

This function is used to get the distance between 2 coordinates/latlong in the different formats  Read more...
By Vignesh Arulmani 2014/11/24 | Source: SQLServerCentral.com | Category: calculate distance
Rating: |  Discuss |   Briefcase | 1,059 reads

Split string using multiple delimiters - version 2

http://www.sqlservercentral.com/scripts/split+string/117123/ The above script will split upto 256 char length only. This new version will split upto N length.  Read more...
By Vignesh Arulmani 2014/11/21 | Source: SQLServerCentral.com | Category: string manipulation
Rating: |  Discuss |   Briefcase | 1,111 reads

Identify Missing Sequence/Identity Numbers

This script is used to identify the missing sequence numbers or identity numbers.  Read more...
By Vignesh Arulmani 2014/11/20 | Source: SQLServerCentral.com | Category: missing numbers
Rating: |  Discuss |   Briefcase | 956 reads

Compare the tables in two database

Compare the tables in two database  Read more...
By Andrés Michaca 2014/10/29 | Source: SQLServerCentral.com
Rating: (not yet rated) |  Discuss |   Briefcase | 742 reads

Start Job and Wait

Job Control  Read more...
By Jefferson Gasparello 2014/11/19 | Source: SQLServerCentral.com | Category: sp_start_job
Rating: |  Discuss |   Briefcase | 960 reads

PatExclude8K

Removes characters in the a string (@string) that matches a specific pattern (updated 12-3-14)  Read more...
By Alan Burstein 2014/12/26 | Source: SQLServerCentral.com | Category: t-sql
Rating: |  Discuss |   Briefcase | 1,333 reads

Complete Index Detail

Complete index analisys  Read more...
By Leonardo Campos 2014/11/18 | Source: SQLServerCentral.com | Category: indexing
Rating: |  Discuss |   Briefcase | 1,524 reads

Checking All Date Columns in a Table(s)

Find minimum and maximum values for all date columns in a table or range of tables, using a mask.  Read more...
By Larry Schmidt 2014/11/17 | Source: SQLServerCentral.com | Category: date
Rating: |  Discuss |   Briefcase | 1,192 reads

Report on existing user connections

List user connections and possibly any linked server connections older than 1 hour  Read more...
Rating: |  Discuss |   Briefcase | 1,454 reads

Querying deadlock graph from SQL Extended Events

Sample script to read deadlock graph XML from default system health XEvent.  Read more...
By Marcelo Fonseca 2014/10/21 | Source: SQLServerCentral.com | Category: xevents
Rating: |  Discuss |   Briefcase | 1,698 reads

Retrieve instance-wide index level fill factor information

This script retrieves all fill factor information for all indexes (clustered and non) when it is not set to 0 or 100  Read more...
Rating: |  Discuss |   Briefcase | 562 reads

Extract SQL Server Key details

Extract SQL Server Name, Instance Name, Service Account details, startMode and ServiceState details with Powershell.  Read more...
By S M 2014/10/27 | Source: SQLServerCentral.com | Category: powershell
Rating: |  Discuss |   Briefcase | 1,239 reads

Datetime Formats

This stored procedure will show all possible datetime formats when used with the style argument in the CONVERT() function. It also shows sample output from the date part arguments.  Read more...
By Doug Deneau 2014/10/28 | Source: SQLServerCentral.com | Category: datetime
Rating: |  Discuss |   Briefcase | 1,644 reads

Split string using multiple delimiters

This script is used to split the string using multiple delimiters  Read more...
Rating: |  Discuss |   Briefcase | 1,535 reads

Track database growth 2012/2014

Enhancement to Track database growth By Irwan Tjanterik, 2014/09/23  Read more...
By Paulo Nascimento 2014/10/31 | Source: SQLServerCentral.com | Category: administration
Rating: |  Discuss |   Briefcase | 1,685 reads

AlwaysOn Availability Group Read Only Routing Script

Generate read only routing commands  Read more...
By Jeff Reinhard 2014/11/04 | Source: SQLServerCentral.com | Category: alwayson
Rating: |  Discuss |   Briefcase | 725 reads
<< Newer    Items 61 to 80 of 3119    Older >>