﻿<?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>Run SQL code on each database</title><description><![CDATA[<p>You can use this to run a script/s on multiple databases</p>]]></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>]]></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><!-- Breeze (SQL Prompt) -->
<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-prompt/entrypage/effortlessly?utm_source=ssc&utm_medium=pubad&utm_content=breeze&utm_campaign=sqlprompt&utm_term=rss-20015"><img src="http://assets.red-gate.com/external/SSC/Prompt_68.gif" alt="sqlprompt"></td>   <td><strong>Make working with SQL a breeze</strong><br />SQL Prompt 5 is the effortless way to write, edit, and explore SQL. It's packed with features such as code completion, script summaries, and SQL reformatting, that make working with SQL a breeze.  <a href="http://www.red-gate.com/products/sql-development/sql-prompt/entrypage/effortlessly?utm_source=ssc&utm_medium=pubad&utm_content=breeze&utm_campaign=sqlprompt&utm_term=rss-20015">Try it now.</a></td>  </tr> </tbody></table>
]]></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>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>]]></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>SCD Implementation with TSQL</title><description><![CDATA[<p>ETL for a SCD using only TSQL, without hash functions</p><!-- Breeze (SQL Prompt) -->
<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-prompt/entrypage/effortlessly?utm_source=ssc&utm_medium=pubad&utm_content=breeze&utm_campaign=sqlprompt&utm_term=rss-20015"><img src="http://assets.red-gate.com/external/SSC/Prompt_68.gif" alt="sqlprompt"></td>   <td><strong>Make working with SQL a breeze</strong><br />SQL Prompt 5 is the effortless way to write, edit, and explore SQL. It's packed with features such as code completion, script summaries, and SQL reformatting, that make working with SQL a breeze.  <a href="http://www.red-gate.com/products/sql-development/sql-prompt/entrypage/effortlessly?utm_source=ssc&utm_medium=pubad&utm_content=breeze&utm_campaign=sqlprompt&utm_term=rss-20015">Try it now.</a></td>  </tr> </tbody></table>
]]></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><!-- 5 Minutes (SQL Source Control)-->
<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-source-control/entrypage/5-minutes?utm_source=ssc&utm_medium=pubad&utm_content=5mins&utm_campaign=sqlsourcecontrol&utm_term=rss-20012"><img src="http://assets.red-gate.com/external/SSC/SOC5mins68x68.gif" alt="sqlsourcecontrol"></td>   <td><strong>Database source control in just 5 minutes</strong><br />It takes just 5 minutes to connect your SQL databases to source control. Got 5 minutes to spare?  <a href="http://www.red-gate.com/products/sql-development/sql-source-control/entrypage/5-minutes?utm_source=ssc&utm_medium=pubad&utm_content=5mins&utm_campaign=sqlsourcecontrol&utm_term=rss-20012">Get started now.</a></td>  </tr> </tbody></table>

]]></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>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>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>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><item><title>Split Function to break the Job History Message into a Table</title><description><![CDATA[<p>Split Function for T-SQL Server to break the Job History Message into Table.</p>]]></description><guid>http://www.sqlservercentral.com/scripts/T-SQL/89011/</guid><pubDate>Thu, 22 Mar 2012 06:00:00 UT</pubDate><link>http://www.sqlservercentral.com/scripts/T-SQL/89011/</link></item><item><title>Select the last error in the job selected</title><description><![CDATA[<p>The job will send an HTML email with the latest error at specific job.</p>]]></description><guid>http://www.sqlservercentral.com/scripts/SQL+Jobs/89008/</guid><pubDate>Thu, 15 Mar 2012 06:00:00 UT</pubDate><link>http://www.sqlservercentral.com/scripts/SQL+Jobs/89008/</link></item><item><title>TSQL fast unix timestamp conversion</title><description><![CDATA[<p>How to convert Unix timestamp into datetime taking into account also summer or winter time</p>]]></description><guid>http://www.sqlservercentral.com/scripts/TIMESTAMP/76877/</guid><pubDate>Fri, 02 Dec 2011 07:00:00 UT</pubDate><link>http://www.sqlservercentral.com/scripts/TIMESTAMP/76877/</link></item><item><title>Compare 2 datasets and output delta in one TSQL statement</title><description><![CDATA[<p>There are many ways 2 compare datasets to find differences, this is one of them.</p>]]></description><guid>http://www.sqlservercentral.com/scripts/T-SQL/76689/</guid><pubDate>Fri, 04 Nov 2011 06:00:00 UT</pubDate><link>http://www.sqlservercentral.com/scripts/T-SQL/76689/</link></item><item><title>who can do what?</title><description><![CDATA[<p>list each user has the right to do</p>]]></description><guid>http://www.sqlservercentral.com/scripts/Security/76650/</guid><pubDate>Mon, 31 Oct 2011 06:00:00 UT</pubDate><link>http://www.sqlservercentral.com/scripts/Security/76650/</link></item><item><title>Different ways to write Distinct Query - MSSQL</title><description><![CDATA[<p>Distinct Query </p>]]></description><guid>http://www.sqlservercentral.com/scripts/T-SQL/76605/</guid><pubDate>Tue, 01 Nov 2011 06:00:00 UT</pubDate><link>http://www.sqlservercentral.com/scripts/T-SQL/76605/</link></item><item><title>search and replace a string in all user tables’ data in all databases</title><description><![CDATA[<p>This script will search for the input string in all the tables(data) from all the databases and will generate a script that will replace the searched string with the required string passed</p>]]></description><guid>http://www.sqlservercentral.com/scripts/T-SQL/76518/</guid><pubDate>Thu, 10 Nov 2011 07:00:00 UT</pubDate><link>http://www.sqlservercentral.com/scripts/T-SQL/76518/</link></item></channel></rss>