Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
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 3412    Older >>
 

Create EndPoint

Server principal 'xx\yy' has granted one or more permission(s). Revoke the permission(s) before dropping the server principal. (Microsoft SQL Server, Error: 15173). If you are gett  Read more...
By S M 2016/10/03 | Source: SQLServerCentral.com | Category: database mirroing
Rating: |  Discuss |   Briefcase | 285 reads

Expand Template with Values from Result Set

This stored procedure extracts template variable names and values from a SQL result set in order to process the template.  Read more...
By Bill Cowan 2016/10/13 | Source: SQLServerCentral.com | Category: sql generation
Rating: (not yet rated) |  Discuss |   Briefcase | 291 reads

Find databases without backup

Find databases without backup and alert you by email with databases affected  Read more...
By Angel Gómez 2016/09/30 | Source: SQLServerCentral.com | Category: script
Rating: |  Discuss |   Briefcase | 496 reads

Work time calculation

One way to calculate how many minutes a person has worked considering holidays and shifts, being given starting and ending date / time  Read more...
By Alessandro Mortola 2016/09/29 | Source: SQLServerCentral.com | Category: datefirst
Rating: (not yet rated) |  Discuss |   Briefcase | 398 reads

Rebuild All Indexes in a Database (Tables/Views)

This script rebuilds all indexes in a selected database (tables and indexed views). Ifm you have a very large Database with many indexes and indexed views please consider before you run this script it might take a while to run. I myself run it around once a month after new data comes my way  Read more...
By Angel Rapallo 2016/09/28 | Source: SQLServerCentral.com | Category: index
Rating: |  Discuss |   Briefcase | 594 reads

Backup History for all databases

Return the 600 last days of backup history for all databases  Read more...
Rating: |  Discuss |   Briefcase | 411 reads

Table sizes (data and indexes) for all databases

Performs a loop on all database to retrieve tables sizes and compression type  Read more...
Rating: |  Discuss |   Briefcase | 628 reads

CPU Utilization by database and SQL Query.

CPU Utilization by database and SQL Query  Read more...
Rating: |  Discuss |   Briefcase | 267 reads

Romanian Number Humanizer in SQL Server

Romanian Number Humanizer  Read more...
By Sergiu Ungureanu 2016/09/23 | Source: SQLServerCentral.com | Category: ro-ro
Rating: |  Discuss |   Briefcase | 401 reads

Simple Object and String Search within Objects

This Simple script will help to do a Server wide search for an object name or usage of a String in Object Code like Function, Procedure, Views  Read more...
By Kartik M Kumar 2016/09/26 | Source: SQLServerCentral.com | Category: object search
Rating: |  Discuss |   Briefcase | 396 reads

Quick check server space and DB size

Script to quickly check the drive space utilization.   Read more...
By Roshan Joe Joseph 2016/09/20 | Source: SQLServerCentral.com | Category: server space
Rating: |  Discuss |   Briefcase | 756 reads

Restore of database

This script takes path and dbname and then prints the command.   Read more...
By Christian Møller 2016/09/19 | Source: SQLServerCentral.com | Category: restore
Rating: |  Discuss |   Briefcase | 487 reads

DynamicDateRangeGenerator

Generates # of dates in before/after current year. No more hardcoded date ranges.  Read more...
By Mitch Spruill 2016/08/08 | Source: SQLServerCentral.com | Category: dynamic
Rating: |  Discuss |   Briefcase | 514 reads

Alert for low identities available

This script alert when a table on a DB has a low number of identities available  Read more...
By Gianmarco Angiolini 2016/07/25 | Source: SQLServerCentral.com | Category: identity property
Rating: (not yet rated) |  Discuss |   Briefcase | 430 reads

Random Lottery Number Generator

This script will generate 5 lottery numbers plus one mega and you can set how many tickets and the range for the numbers for the different types of lotteries.   Read more...
By Elaena Bakman 2016/07/22 | Source: SQLServerCentral.com | Category: lottery numbers
Rating: |  Discuss |   Briefcase | 696 reads

Using Powershell to run queries on remote server .

This is a function written in powershell , which can used to run queries remotely   Read more...
By himanshu.sinha 2016/07/20 | Source: SQLServerCentral.com | Category: powershell
Rating: (not yet rated) |  Discuss |   Briefcase | 665 reads

Missing Index Script with Create Statement

standard missing index script but has a create statement to copy and past  Read more...
By Andrew Lackenby 2016/07/21 | Source: SQLServerCentral.com | Category: indexes
Rating: |  Discuss |   Briefcase | 674 reads

Capture Linux Drive Space data with Powershell

Capture Linux Drive Space data with Powershell using Posh-SSH module   Read more...
By Michael D'Spain 2016/07/19 | Source: SQLServerCentral.com | Category: powershell
Rating: (not yet rated) |  Discuss |   Briefcase | 182 reads

Replication Monitor

Replication Alert Monitor  Read more...
By Jignesh Raiyani 2016/07/18 | Source: SQLServerCentral.com | Category: replication monitor
Rating: |  Discuss |   Briefcase | 477 reads

Find Orphan users for each database in a given SQL Instance

This script will give you an output in a well defined tabular format with Database name,Username, and usersid of orphan users.   Read more...
By Prime SQL 2016/07/15 | Source: SQLServerCentral.com | Category: orphan users
Rating: |  Discuss |   Briefcase | 658 reads
<< Newer    Items 61 to 80 of 3412    Older >>