﻿<?xml version="1.0" encoding="utf-8"?><rss xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" version="2.0"><channel><title>SQLServerCentral.com Scripts tagged T-SQL</title><link>http://www.sqlservercentral.com/</link><description>Scripts tagged T-SQL posted on SQLServerCentral.com</description><language>en-us</language><ttl>360</ttl><managingEditor>sjones@sqlservercentral.com (Steve Jones)</managingEditor><item><title>Finding queries to tune</title><description><![CDATA[<p>A query to help identify queries that need some tuning.</p>]]></description><guid>http://www.sqlservercentral.com/scripts/T-SQL/99611/</guid><pubDate>Tue, 11 Jun 2013 06:00:00 UT</pubDate><link>http://www.sqlservercentral.com/scripts/T-SQL/99611/</link></item><item><title>Search all stored procedures on all databases</title><description><![CDATA[<p>Need to find every stored procedure in any database that references the table FooBar?  Here is a quick and easy search to do that.</p>]]></description><guid>http://www.sqlservercentral.com/scripts/T-SQL/99454/</guid><pubDate>Thu, 30 May 2013 06:00:00 UT</pubDate><link>http://www.sqlservercentral.com/scripts/T-SQL/99454/</link></item><item><title>Run SQL code on each database</title><description><![CDATA[<p>You can use this to run a script/s on multiple databases</p><!-- fasterwithsqlserver (SQL Toolbelt)-->
<table border="0" cellpadding="0" cellspacing="10" style="width: 100%;"> <colgroup>  <col width="68" />  <col width="1266" /> </colgroup> <tbody>  <tr align="left" valign="top">   <td>    <a href="http://www.red-gate.com/products/sql-development/sql-toolbelt?utm_source=ssc&utm_medium=pubad&utm_content=fasterwithsqlserver2&utm_campaign=sqltoolbelt&utm_term=rss-20227"><img src="http://assets.red-gate.com/external/SSC/toolbelt68.gif" alt="sqltoolbelt"></td>   <td><strong>Want to work faster with SQL Server?</strong><br />If you want to work faster try out the SQL Toolbelt. "The SQL Toolbelt provides tools that database developers as well as DBAs should not live without." William Van Orden. <a href="http://www.red-gate.com/products/sql-development/sql-toolbelt?utm_source=ssc&utm_medium=pubad&utm_content=fasterwithsqlserver2&utm_campaign=sqltoolbelt&utm_term=rss-20227">Download the SQL Toolbelt here.</a></td>  </tr> </tbody></table>



]]></description><guid>http://www.sqlservercentral.com/scripts/T-SQL/97905/</guid><pubDate>Wed, 10 Apr 2013 06:00:00 UT</pubDate><link>http://www.sqlservercentral.com/scripts/T-SQL/97905/</link></item><item><title>Backup all SSAS databases using TSQL </title><description><![CDATA[<p>Enumerates and backups all SSAS DB's</p>]]></description><guid>http://www.sqlservercentral.com/scripts/automatic/97696/</guid><pubDate>Thu, 28 Mar 2013 06:00:00 UT</pubDate><link>http://www.sqlservercentral.com/scripts/automatic/97696/</link></item><item><title>Copy Sql Objects</title><description><![CDATA[<p>Copy tables, procedures, functions and view from one schema and another schema.</p>]]></description><guid>http://www.sqlservercentral.com/scripts/T-SQL/97571/</guid><pubDate>Fri, 29 Mar 2013 06:00:00 UT</pubDate><link>http://www.sqlservercentral.com/scripts/T-SQL/97571/</link></item><item><title>Copy Table </title><description><![CDATA[<p>Copy tables from one schema to another schema.</p><!-- machanic (SQL Comapre)-->
<table border="0" cellpadding="0" cellspacing="10" style="width: 100%;"> <colgroup>  <col width="68" />  <col width="1266" /> </colgroup> <tbody>  <tr align="left" valign="top">   <td>    <a href="http://www.red-gate.com/products/sql-development/sql-compare/?utm_source=ssc&utm_medium=pubad&utm_content=machanic&utm_campaign=sqlcompare&utm_term=rss-20226"><img src="http://assets.red-gate.com/external/SSC/sqlcompare68x68.gif" alt="sqlcompare"></td>   <td><strong>Compare and sync databases with SQL Compare</strong><br />“SQL Compare is fast, extremely easy to use, full-featured and affordable. I wouldn't bother messing around with anything else.” Adam Machanic, SQL Server MVP.  <a href="http://www.red-gate.com/products/sql-development/sql-compare/?utm_source=ssc&utm_medium=pubad&utm_content=machanic&utm_campaign=sqlcompare&utm_term=rss-20226">Download a 14-day free trial.</a></td>  </tr> </tbody></table>


]]></description><guid>http://www.sqlservercentral.com/scripts/T-SQL/97570/</guid><pubDate>Wed, 03 Apr 2013 06:00:00 UT</pubDate><link>http://www.sqlservercentral.com/scripts/T-SQL/97570/</link></item><item><title>Create Table with T-SQL</title><description><![CDATA[<p>Generate create table statement using T-SQL.</p>]]></description><guid>http://www.sqlservercentral.com/scripts/T-SQL/97569/</guid><pubDate>Mon, 01 Apr 2013 06:00:00 UT</pubDate><link>http://www.sqlservercentral.com/scripts/T-SQL/97569/</link></item><item><title>Converting to datetime a char field with several possible date formats</title><description><![CDATA[<p>Converting to datetime a char field having several possible date formats</p>]]></description><guid>http://www.sqlservercentral.com/scripts/T-SQL/96816/</guid><pubDate>Thu, 21 Feb 2013 07:00:00 UT</pubDate><link>http://www.sqlservercentral.com/scripts/T-SQL/96816/</link></item><item><title>Transpose Query Output</title><description><![CDATA[<p>script to return query result transposed.</p>]]></description><guid>http://www.sqlservercentral.com/scripts/T-SQL/96808/</guid><pubDate>Fri, 22 Feb 2013 07:00:00 UT</pubDate><link>http://www.sqlservercentral.com/scripts/T-SQL/96808/</link></item><item><title>Get Database Size</title><description><![CDATA[<p>Know you database size</p>]]></description><guid>http://www.sqlservercentral.com/scripts/T-SQL/96534/</guid><pubDate>Mon, 18 Feb 2013 07:00:00 UT</pubDate><link>http://www.sqlservercentral.com/scripts/T-SQL/96534/</link></item><item><title>Open transactions on a database</title><description><![CDATA[<p>This script will show you all open transactions from any query windows.</p>]]></description><guid>http://www.sqlservercentral.com/scripts/transactions/96215/</guid><pubDate>Wed, 30 Jan 2013 07:00:00 UT</pubDate><link>http://www.sqlservercentral.com/scripts/transactions/96215/</link></item><item><title>T-SQL Bulk Insert</title><description><![CDATA[<p>T-SQL that allows you to import tab delimited text file into correct table based on file name.</p>]]></description><guid>http://www.sqlservercentral.com/scripts/T-SQL/95877/</guid><pubDate>Thu, 07 Feb 2013 07:00:00 UT</pubDate><link>http://www.sqlservercentral.com/scripts/T-SQL/95877/</link></item><item><title>Number of Working Days</title><description><![CDATA[<p>Number of workings days in a month minus weekends and holidays.</p>]]></description><guid>http://www.sqlservercentral.com/scripts/Workdays/95876/</guid><pubDate>Fri, 08 Feb 2013 07:00:00 UT</pubDate><link>http://www.sqlservercentral.com/scripts/Workdays/95876/</link></item><item><title>Manipulate Horizontal Hierarchy with UNPIVOT</title><description><![CDATA[<p>Convert Horizontal Hierarchy 
to vertical Hierarchy.</p>]]></description><guid>http://www.sqlservercentral.com/scripts/T-SQL/95468/</guid><pubDate>Thu, 20 Dec 2012 07:00:00 UT</pubDate><link>http://www.sqlservercentral.com/scripts/T-SQL/95468/</link></item><item><title>Print Text Month Calendar</title><description><![CDATA[<p>This function return the text format of a month calendar. It could be useful for sending through emails when you do do not have other tools, but T-SQL to send text emails.
</p>]]></description><guid>http://www.sqlservercentral.com/scripts/T-SQL/94659/</guid><pubDate>Thu, 29 Nov 2012 07:00:00 UT</pubDate><link>http://www.sqlservercentral.com/scripts/T-SQL/94659/</link></item><item><title>Deleting Duplicate Records</title><description><![CDATA[<p>In Datawarehousing, a normal scenario is eleminating duplicate records/rows or deleting duplicate records, here's the solution.
</p><!-- Consulted 1000 (SQL Monitor) -->
<table border="0" cellpadding="0" cellspacing="10" style="width: 100%;"> <colgroup>  <col width="68" />  <col width="1266" /> </colgroup> <tbody>  <tr align="left" valign="top">   <td>    <a href="http://www.red-gate.com/products/dba/sql-monitor/entrypage/custom-metrics?utm_source=ssc&utm_medium=pubad&utm_content=consulted_1000&utm_campaign=sqlmonitor&utm_term=rss-20231"><img src="http://assets.red-gate.com/external/SSC/monitor_ico.gif" alt="sqlmonitor"></td>   <td><strong>Check SQL Server performance at a glance</strong><br />We consulted 1000 SQL Server professionals to make SQL Monitor’s UI as clear as possible.  <a href="http://www.red-gate.com/products/dba/sql-monitor/entrypage/custom-metrics?utm_source=ssc&utm_medium=pubad&utm_content=consulted_1000&utm_campaign=sqlmonitor&utm_term=rss-20231">Start monitoring with a free trial.</a></td>  </tr> </tbody></table>



]]></description><guid>http://www.sqlservercentral.com/scripts/T-SQL/94641/</guid><pubDate>Tue, 20 Nov 2012 07:00:00 UT</pubDate><link>http://www.sqlservercentral.com/scripts/T-SQL/94641/</link></item><item><title>Scripting CREATE INDEX Statements Automatically From Your Tables</title><description><![CDATA[<p>Stored proc for scripting out full CREATE INDEX statements from your table indexes with all filegroup, filter and WITH parameters.</p>]]></description><guid>http://www.sqlservercentral.com/scripts/Indexing/94375/</guid><pubDate>Tue, 27 Nov 2012 07:00:00 UT</pubDate><link>http://www.sqlservercentral.com/scripts/Indexing/94375/</link></item><item><title>SCD Implementation with TSQL</title><description><![CDATA[<p>ETL for a SCD using only TSQL, without hash functions</p>]]></description><guid>http://www.sqlservercentral.com/scripts/SCD/93755/</guid><pubDate>Tue, 13 Nov 2012 07:00:00 UT</pubDate><link>http://www.sqlservercentral.com/scripts/SCD/93755/</link></item><item><title>Create A Folder With T-SQL</title><description><![CDATA[<p>Pass a folder name to this SP and it will create the folder for you.</p>]]></description><guid>http://www.sqlservercentral.com/scripts/Create+a+folder/93674/</guid><pubDate>Tue, 16 Oct 2012 06:00:00 UT</pubDate><link>http://www.sqlservercentral.com/scripts/Create+a+folder/93674/</link></item><item><title>Script to get an ordered list of all stored procedures with parameters</title><description><![CDATA[<p>Generate a per-schema, per-procedure ordered list of all stored procedures for the current database, together with their parameters, datatypes and nullability.</p>]]></description><guid>http://www.sqlservercentral.com/scripts/T-SQL/92626/</guid><pubDate>Tue, 14 Aug 2012 06:00:00 UT</pubDate><link>http://www.sqlservercentral.com/scripts/T-SQL/92626/</link></item><item><title>Print The Calendar 2</title><description><![CDATA[<p>This script will print the calendar from the given date.</p>]]></description><guid>http://www.sqlservercentral.com/scripts/T-SQL/92431/</guid><pubDate>Fri, 10 Aug 2012 06:00:00 UT</pubDate><link>http://www.sqlservercentral.com/scripts/T-SQL/92431/</link></item><item><title>Calculate alphabetic sequence</title><description><![CDATA[<p>This simple function allows to calculate a code sequence of letters. AAA, AAB, AAAC, ADF, .... AAZ, ABA, ABC, ... ZZZ</p>]]></description><guid>http://www.sqlservercentral.com/scripts/sequence+of+letters/92331/</guid><pubDate>Wed, 08 Aug 2012 06:00:00 UT</pubDate><link>http://www.sqlservercentral.com/scripts/sequence+of+letters/92331/</link></item><item><title>Check Used Table Space for User Defined Tables</title><description><![CDATA[<p>Query the System Tables to find the space usage, which helps Database Administrators identify the Tables that are using the most space.</p>]]></description><guid>http://www.sqlservercentral.com/scripts/Storage+Management/91818/</guid><pubDate>Wed, 11 Jul 2012 06:00:00 UT</pubDate><link>http://www.sqlservercentral.com/scripts/Storage+Management/91818/</link></item><item><title>Delete old backup</title><description><![CDATA[<p>Delete old backup files on a prespecified folder.
</p>]]></description><guid>http://www.sqlservercentral.com/scripts/T-SQL/91461/</guid><pubDate>Tue, 03 Jul 2012 06:00:00 UT</pubDate><link>http://www.sqlservercentral.com/scripts/T-SQL/91461/</link></item><item><title>Use your own optimizer to tune queries</title><description><![CDATA[<p>Use your own optimizer to tune queries</p>]]></description><guid>http://www.sqlservercentral.com/scripts/Custome+statistics/90746/</guid><pubDate>Thu, 07 Jun 2012 06:00:00 UT</pubDate><link>http://www.sqlservercentral.com/scripts/Custome+statistics/90746/</link></item><item><title>Get a range of numbers</title><description><![CDATA[<p>If you need to get a range sequence of numbers this script can help you to acomplish it. For example : the sequency of numbers between -5 and 5 or 1 and 200, etc..</p>]]></description><guid>http://www.sqlservercentral.com/scripts/T-SQL/90210/</guid><pubDate>Fri, 05 Oct 2012 06:00:00 UT</pubDate><link>http://www.sqlservercentral.com/scripts/T-SQL/90210/</link></item><item><title>How to query dBase .dbf from SQL 2012 64-bit</title><description><![CDATA[<p>Query dBase .dbf Files From SQL 2012 64-bit.</p>]]></description><guid>http://www.sqlservercentral.com/scripts/T-SQL/90154/</guid><pubDate>Wed, 09 May 2012 06:00:00 UT</pubDate><link>http://www.sqlservercentral.com/scripts/T-SQL/90154/</link></item><item><title>Swiss Cheese!</title><description><![CDATA[<p>Are you trying to determine the gaps in a numerical sequence? </p>]]></description><guid>http://www.sqlservercentral.com/scripts/SQL+Script/89718/</guid><pubDate>Thu, 26 Apr 2012 06:00:00 UT</pubDate><link>http://www.sqlservercentral.com/scripts/SQL+Script/89718/</link></item><item><title>Did you say denormalize, why?</title><description><![CDATA[<p>How to display data from 1-to-many in a single record!</p>]]></description><guid>http://www.sqlservercentral.com/scripts/T-SQL/89717/</guid><pubDate>Wed, 25 Apr 2012 06:00:00 UT</pubDate><link>http://www.sqlservercentral.com/scripts/T-SQL/89717/</link></item><item><title>Script to get database restore history</title><description><![CDATA[<p>T-SQL to get restore history of SQL databases.</p>]]></description><guid>http://www.sqlservercentral.com/scripts/T-SQL/89048/</guid><pubDate>Fri, 16 Mar 2012 06:00:00 UT</pubDate><link>http://www.sqlservercentral.com/scripts/T-SQL/89048/</link></item></channel></rss>