﻿<?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 Miscellaneous</title><link>http://www.sqlservercentral.com/</link><description>Scripts tagged Miscellaneous posted on SQLServerCentral.com</description><language>en-us</language><ttl>360</ttl><managingEditor>sjones@sqlservercentral.com (Steve Jones)</managingEditor><item><title>BCP Format File Builder</title><description><![CDATA[<p>Utility stored procedure to create non-xml format file for BCP/BULK INSERT processes.  Very useful for text-qualified CSV files.</p>]]></description><guid>http://www.sqlservercentral.com/scripts/SQL+Server+2005/67764/</guid><pubDate>Fri, 14 Aug 2009 06:00:00 UT</pubDate><link>http://www.sqlservercentral.com/scripts/SQL+Server+2005/67764/</link></item><item><title>Find SQL Server Install Date</title><description><![CDATA[<p>Script to find the SQL Server Instance Install Date</p>]]></description><guid>http://www.sqlservercentral.com/scripts/Miscellaneous/67724/</guid><pubDate>Fri, 07 May 2010 06:00:00 UT</pubDate><link>http://www.sqlservercentral.com/scripts/Miscellaneous/67724/</link></item><item><title>Prime Number Table Generator (new ver crunches to 1 Mil in &lt;10.5 sec!)</title><description><![CDATA[<p>Generates prime numbers and puts them into a table for future reference by adhoc queries and database and application code. 100% set-based. DDL embedded.</p>]]></description><guid>http://www.sqlservercentral.com/scripts/Advanced+Querying/67436/</guid><pubDate>Wed, 15 Jul 2009 06:00:00 UT</pubDate><link>http://www.sqlservercentral.com/scripts/Advanced+Querying/67436/</link></item><item><title>Find SQL Server TCP/IP Port Number</title><description><![CDATA[<p>Script to find the TCP/IP Port number of SQL Instance</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/Miscellaneous/67422/</guid><pubDate>Thu, 13 May 2010 06:00:00 UT</pubDate><link>http://www.sqlservercentral.com/scripts/Miscellaneous/67422/</link></item><item><title>Function to Add Leading 0's (Zeros) to an INT</title><description><![CDATA[<p>Very simple function code to add leading zeros to a passed in int for a length also passed.</p>]]></description><guid>http://www.sqlservercentral.com/scripts/Data+Warehousing/65887/</guid><pubDate>Thu, 05 Mar 2009 07:00:00 UT</pubDate><link>http://www.sqlservercentral.com/scripts/Data+Warehousing/65887/</link></item><item><title>Function to Return Date and Time String for File Archiving</title><description><![CDATA[<p>This function will return a string in sortable format YYYYMMDD-hhmmssnnn to append to file names for archiving.</p>]]></description><guid>http://www.sqlservercentral.com/scripts/Miscellaneous/65772/</guid><pubDate>Wed, 18 Feb 2009 07:00:00 UT</pubDate><link>http://www.sqlservercentral.com/scripts/Miscellaneous/65772/</link></item><item><title>Find Text in all columns of all tables in a Database</title><description><![CDATA[<p>Will find the Table Name, Column Name and the number of occurances some text appears in a database.</p>]]></description><guid>http://www.sqlservercentral.com/scripts/Miscellaneous/65769/</guid><pubDate>Thu, 31 Mar 2011 06:00:00 UT</pubDate><link>http://www.sqlservercentral.com/scripts/Miscellaneous/65769/</link></item><item><title>Search All SQL Script Objects in All Databases for Text</title><description><![CDATA[<p>Edit the @SearchText and you can enter any text you would like to search for in SQL Objects.</p>]]></description><guid>http://www.sqlservercentral.com/scripts/Stored+Procedures/65768/</guid><pubDate>Thu, 19 Feb 2009 07:00:00 UT</pubDate><link>http://www.sqlservercentral.com/scripts/Stored+Procedures/65768/</link></item><item><title>Yet Another Deleting Duplicate Records (in-place)</title><description><![CDATA[<p>Here is another &quot;deleting duplicate records&quot; script, this time in-place, using a uniqueidentifier column.</p>]]></description><guid>http://www.sqlservercentral.com/scripts/Miscellaneous/65420/</guid><pubDate>Thu, 15 Jan 2009 07:00:00 UT</pubDate><link>http://www.sqlservercentral.com/scripts/Miscellaneous/65420/</link></item><item><title>Counter Table (table of numbers) Setter-Upper for SQL Server 2005</title><description><![CDATA[<p>Sets up 3 'table of numbers' that completely fill a 1, 2, and 3-level clustered index respectivly with 622, 386884, and 240641848 numbers.</p>]]></description><guid>http://www.sqlservercentral.com/scripts/T-SQL/63957/</guid><pubDate>Wed, 06 Aug 2008 02:57:05 UT</pubDate><link>http://www.sqlservercentral.com/scripts/T-SQL/63957/</link></item><item><title>Counter Table (table of numbers) Setter-Upper for SQL Server 2000</title><description><![CDATA[<p>Sets up 3 'table of numbers' that completely fill a 1, 2, and 3-level clustered index respectivly with 620, 384400, and 238328000 numbers.</p>]]></description><guid>http://www.sqlservercentral.com/scripts/T-SQL/63956/</guid><pubDate>Wed, 06 Aug 2008 02:50:45 UT</pubDate><link>http://www.sqlservercentral.com/scripts/T-SQL/63956/</link></item><item><title>Proc to Rename a file</title><description><![CDATA[<p>A simple way to rename a file from within a T-SQL Script, primarily designed to add a date-time stamp. Works in 2000 and 2005.</p>]]></description><guid>http://www.sqlservercentral.com/scripts/Miscellaneous/63094/</guid><pubDate>Fri, 28 Oct 2011 06:00:00 UT</pubDate><link>http://www.sqlservercentral.com/scripts/Miscellaneous/63094/</link></item><item><title>A Sudoku solution with set based T-SQL utilizing binary operators</title><description><![CDATA[<p>A Sudoku solution with set based T-SQL approach utilizing binary values and operators, to ease the algorithm.</p>]]></description><guid>http://www.sqlservercentral.com/scripts/T-SQL/62978/</guid><pubDate>Wed, 21 Dec 2011 07:00:00 UT</pubDate><link>http://www.sqlservercentral.com/scripts/T-SQL/62978/</link></item><item><title>Row count and space used for all tables in database (update)</title><description><![CDATA[<p>This procedure works like the sp_spaceused procedure but this one shows statistics for all tables in the selected database or for all databases (excluding tempdb and model).
</p>]]></description><guid>http://www.sqlservercentral.com/scripts/Miscellaneous/62468/</guid><pubDate>Wed, 25 May 2011 06:00:00 UT</pubDate><link>http://www.sqlservercentral.com/scripts/Miscellaneous/62468/</link></item><item><title>Select from stored procedure</title><description><![CDATA[<p>This terse script shows an easy (but &quot;dirty&quot; - so not advisable for production environments - rather for personal use) way to select data from stored procedure.</p>]]></description><guid>http://www.sqlservercentral.com/scripts/Miscellaneous/62463/</guid><pubDate>Wed, 14 Dec 2011 07:00:00 UT</pubDate><link>http://www.sqlservercentral.com/scripts/Miscellaneous/62463/</link></item><item><title>Generating number sequences with Common Table Expressions</title><description><![CDATA[<p>The script shows one of ways generating number sequence - this one uses CTE.</p>]]></description><guid>http://www.sqlservercentral.com/scripts/Miscellaneous/62184/</guid><pubDate>Tue, 04 Oct 2011 06:00:00 UT</pubDate><link>http://www.sqlservercentral.com/scripts/Miscellaneous/62184/</link></item><item><title>Generating permutations - procedure</title><description><![CDATA[<p>This procedure prepares a query for generating permutations of n-numbers set and executes it.</p>]]></description><guid>http://www.sqlservercentral.com/scripts/Miscellaneous/62164/</guid><pubDate>Tue, 18 Mar 2008 06:00:00 UT</pubDate><link>http://www.sqlservercentral.com/scripts/Miscellaneous/62164/</link></item><item><title>Clear database - delete all records from a database (updated)</title><description><![CDATA[<p>The procedure below deletes all records from the specified database's(except master, model, msdb and tempdb) tables (except those from the schema 'sys').</p>]]></description><guid>http://www.sqlservercentral.com/scripts/Miscellaneous/62115/</guid><pubDate>Fri, 09 Dec 2011 07:00:00 UT</pubDate><link>http://www.sqlservercentral.com/scripts/Miscellaneous/62115/</link></item><item><title>Search for a specified GUID (or its part) in all databases (updated)</title><description><![CDATA[<p>This procedure searches for the specified GUID (or its part) in all (or selected one) databases</p>]]></description><guid>http://www.sqlservercentral.com/scripts/Miscellaneous/62060/</guid><pubDate>Thu, 06 Mar 2008 07:00:00 UT</pubDate><link>http://www.sqlservercentral.com/scripts/Miscellaneous/62060/</link></item><item><title>Sorted views in 2005 and TOP clause</title><description><![CDATA[<p>These examples show how You can circumvent the problem with not working TOP 100 PERCENT and ORDER BY in views.</p>]]></description><guid>http://www.sqlservercentral.com/scripts/Miscellaneous/62044/</guid><pubDate>Fri, 22 Feb 2008 07:00:00 UT</pubDate><link>http://www.sqlservercentral.com/scripts/Miscellaneous/62044/</link></item><item><title>Show all database's tables' columns' collations.</title><description><![CDATA[<p>Created view displays all text columns' collations in the current database with the information whether
the collation is different from the database's one.</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/Miscellaneous/62042/</guid><pubDate>Fri, 04 Apr 2008 06:00:00 UT</pubDate><link>http://www.sqlservercentral.com/scripts/Miscellaneous/62042/</link></item><item><title>Generating combinations 'm elements from n-element set'</title><description><![CDATA[<p>This procedure generates a dataset with combinations of elements_to_select taken from number_of_values element set. It prints also the prepared query.
</p>]]></description><guid>http://www.sqlservercentral.com/scripts/Miscellaneous/62041/</guid><pubDate>Tue, 01 Apr 2008 06:00:00 UT</pubDate><link>http://www.sqlservercentral.com/scripts/Miscellaneous/62041/</link></item><item><title>Generating permutations</title><description><![CDATA[<p>This script shows one on ways of generating permutations.</p>]]></description><guid>http://www.sqlservercentral.com/scripts/Miscellaneous/62030/</guid><pubDate>Wed, 27 Feb 2008 07:00:00 UT</pubDate><link>http://www.sqlservercentral.com/scripts/Miscellaneous/62030/</link></item><item><title>Effectively mapping primary key – foreign key relations</title><description><![CDATA[<p>This script maps the primary key - foreign key relations regardless if the column names are the same or not.</p>]]></description><guid>http://www.sqlservercentral.com/scripts/Miscellaneous/61481/</guid><pubDate>Tue, 15 May 2012 06:00:00 UT</pubDate><link>http://www.sqlservercentral.com/scripts/Miscellaneous/61481/</link></item><item><title>Collation Checker Version 2</title><description><![CDATA[<p>this version 2 of my sproc to do various collation checks. 
</p>]]></description><guid>http://www.sqlservercentral.com/scripts/Miscellaneous/61368/</guid><pubDate>Thu, 27 Dec 2007 07:00:00 UT</pubDate><link>http://www.sqlservercentral.com/scripts/Miscellaneous/61368/</link></item><item><title>Find Parent Child RelationShip </title><description><![CDATA[<p></p>]]></description><guid>http://www.sqlservercentral.com/scripts/Miscellaneous/32007/</guid><pubDate>Tue, 18 Sep 2007 18:40:54 UT</pubDate><link>http://www.sqlservercentral.com/scripts/Miscellaneous/32007/</link></item><item><title>Script to find text in stored procedures</title><description><![CDATA[<p></p>]]></description><guid>http://www.sqlservercentral.com/scripts/Miscellaneous/32005/</guid><pubDate>Sat, 15 Sep 2007 04:18:10 UT</pubDate><link>http://www.sqlservercentral.com/scripts/Miscellaneous/32005/</link></item><item><title>Combine multiple rows into single output</title><description><![CDATA[<p></p>]]></description><guid>http://www.sqlservercentral.com/scripts/Miscellaneous/32004/</guid><pubDate>Fri, 14 Sep 2007 18:58:22 UT</pubDate><link>http://www.sqlservercentral.com/scripts/Miscellaneous/32004/</link></item><item><title>LSTR() and RSTR(): Enhanced LEFT() and RIGHT()</title><description><![CDATA[<p></p>]]></description><guid>http://www.sqlservercentral.com/scripts/Miscellaneous/32002/</guid><pubDate>Thu, 13 Sep 2007 07:33:20 UT</pubDate><link>http://www.sqlservercentral.com/scripts/Miscellaneous/32002/</link></item><item><title>finding the blocks in sql server</title><description><![CDATA[<p></p>]]></description><guid>http://www.sqlservercentral.com/scripts/Miscellaneous/32000/</guid><pubDate>Sun, 09 Sep 2007 11:07:40 UT</pubDate><link>http://www.sqlservercentral.com/scripts/Miscellaneous/32000/</link></item></channel></rss>