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

Add a script

<< Previous 20    Items 61 to 80 of 2775    Next 20 >>
 

Open transactions on a database

This script will show you all open transactions from any query windows.  Read more...
By kyle.eldridge 2013/01/30 | Source: SQLServerCentral.com | Category: transactions
Rating: |  Discuss |   Briefcase | 1,177 reads

Change database compatability level of all databases

Changes the database compatibility level of all databases to the given level.  Read more...
By Harsha Majety 2013/01/31 | Source: SQLServerCentral.com | Category: compatibility level
Rating: |  Discuss |   Briefcase | 546 reads

Create and Populate a Date Dimension Table

Creates and populates a date-dimension table suitable for OLTP or data warehouse purposes  Read more...
By Joseph Morgan 2013/02/04 | Source: SQLServerCentral.com | Category: date dimension
Rating: |  Discuss |   Briefcase | 986 reads

Powershell - Export Stored Proc results to CSV file

This Powershell script calls a stored procedure and exports the results to a CSV file  Read more...
By Mandeep Dulai 2013/02/05 | Source: SQLServerCentral.com | Category: powershell
Rating: |  Discuss |   Briefcase | 1,037 reads

T-SQL Bulk Insert

T-SQL that allows you to import tab delimited text file into correct table based on file name.  Read more...
By Ervin Santiago 2013/02/07 | Source: SQLServerCentral.com | Category: t-sql
Rating: |  Discuss |   Briefcase | 1,357 reads

Number of Working Days

Number of workings days in a month minus weekends and holidays.  Read more...
By Ervin Santiago 2013/02/08 | Source: SQLServerCentral.com | Category: workdays
Rating: |  Discuss |   Briefcase | 1,059 reads

Script to see Table Row Counts

Script to get #rows in each table  Read more...
By Harsha Majety 2013/02/06 | Source: SQLServerCentral.com
Rating: |  Discuss |   Briefcase | 1,146 reads

Tables and rows listing

Simple script which create a list of all the tables and rows of the selected DB.  Read more...
By Claudio Tregambe 2013/02/11 | Source: SQLServerCentral.com | Category: tables
Rating: |  Discuss |   Briefcase | 812 reads

Generate Repair Statements for Not-Trusted Foreign Keys

Generates "check this foreign key" statements for all not-trusted foreign keys on a server.  Read more...
By Orestes Zoupanos 2013/02/01 | Source: SQLServerCentral.com | Category: foreign keys (fk)
Rating: |  Discuss |   Briefcase | 316 reads

GetDateInString

This function will return a value of date if found within a string, the date format in the string will vary. If no date is found a null value is returned  Read more...
By Hilda E 2013/01/17 | Source: SQLServerCentral.com
Rating: |  Discuss |   Briefcase | 1,131 reads

Truncate or switch range of a partitioned table

Script to duplicate structure, switch or truncate choosen partitions of a table  Read more...
By Federico Iori 2013/01/22 | Source: SQLServerCentral.com | Category: truncate
Rating: |  Discuss |   Briefcase | 640 reads

Database details for Daily checks

Get database status,file details,free space in sql 2005 and 2008 sql versions  Read more...
By Rahul 2013/01/16 | Source: SQLServerCentral.com
Rating: |  Discuss |   Briefcase | 1,684 reads

Recreate a temporary table from TempDB

This Script can be used to pick out a temporary table from tempDB you might want to Check and drop the table before you create it just in case , but I Haven't included it here  Read more...
By Tristan Cook 2013/01/15 | Source: SQLServerCentral.com | Category: tempdb
Rating: |  Discuss |   Briefcase | 973 reads

Finding out whether you are using enterprise level feature

The query tells whether sql server enterprise edition is using any enterprise level features or not   Read more...
By Rahul Singh 2013/01/21 | Source: SQLServerCentral.com | Category: sql server
Rating: |  Discuss |   Briefcase | 968 reads

Finding actual number of physical cpu installed

The below query finds out actual number of physical cpu installed on the server   Read more...
By Rahul Singh 2013/01/14 | Source: SQLServerCentral.com | Category: processsor
Rating: |  Discuss |   Briefcase | 1,311 reads

Script to replace 5 consecutive digits with special character

In a given input string, The script searches for 5 consecutive digits and replaces it with a special character.   Read more...
By Tanmayi Mukundan 2013/01/10 | Source: SQLServerCentral.com | Category: special characters
Rating: |  Discuss |   Briefcase | 686 reads

Find SQL Statements Consuming tempdb Space

You can use the following query to find the currently active requests, their associated T-SQL statement, and the corresponding query plan that is allocating most space resources in tempdb.  Read more...
By Rahul Singh 2012/12/13 | Source: SQLServerCentral.com | Category: database administration
Rating: |  Discuss |   Briefcase | 1,911 reads

Find memory used by particular Database

Using sys.dm_os_buffer_descriptors we can find out how much memory a database or a object is consuming.  Read more...
By Rahul Singh 2012/12/18 | Source: SQLServerCentral.com | Category: database administration
Rating: |  Discuss |   Briefcase | 1,773 reads

Manipulate Horizontal Hierarchy with UNPIVOT

Convert Horizontal Hierarchy to vertical Hierarchy.  Read more...
By Bernabe Diaz 2012/12/20 | Source: SQLServerCentral.com | Category: sql
Rating: (not yet rated) |  Discuss |   Briefcase | 728 reads

Update Trigger to Store Only Updated Column and Former Value

History table needs individual rows for each column that has been updated, i.e., a column history.  Read more...
By Larry Schmidt 2012/12/17 | Source: SQLServerCentral.com | Category: trigger
Rating: |  Discuss |   Briefcase | 837 reads
<< Previous 20    Items 61 to 80 of 2775    Next 20 >>