<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-6252537647455974109</id><updated>2024-08-28T16:58:03.481-05:00</updated><category term="DTS"/><category term="Image"/><category term="Load"/><category term="Profiler"/><category term="Recovery"/><category term="TempDB"/><category term="XML"/><category term="alias"/><category term="default instance"/><category term="enterprise software"/><category term="legacy"/><category term="log"/><category term="named instance"/><category term="rowcounts"/><category term="sp_msforeachtable"/><category term="tcp"/><category term="trace"/><title type='text'>SQL Kit  Tips and Scripts for T-SQL, BI</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://sqlkit.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6252537647455974109/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://sqlkit.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>12</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-6252537647455974109.post-7883842513624049311</id><published>2011-01-21T16:05:00.003-06:00</published><updated>2011-01-21T16:07:58.855-06:00</updated><title type='text'>SQL Tidbits http://sqltidbits.com/ or follow @sqltidbits</title><summary type="text">I&#39;m launching a new SQL Server website called SQL Tidbits. Visit&amp;nbsp;http://sqltidbits.com/&amp;nbsp;or follow @sqltidbits&amp;nbsp;and let me know what you think.


I&#39;m in the process of transferring the content from this site to there as well as uploading some of my best T-SQL scripts. &amp;nbsp;With some frequency, I&#39;ll also be doing short screencasts when it&#39;s easier to show you than just tell how to do</summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6252537647455974109/posts/default/7883842513624049311'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6252537647455974109/posts/default/7883842513624049311'/><link rel='alternate' type='text/html' href='http://sqlkit.blogspot.com/2011/01/sql-tidbits-httpsqltidbitscom-or-follow.html' title='SQL Tidbits http://sqltidbits.com/ or follow @sqltidbits'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-6252537647455974109.post-3165662258499587273</id><published>2009-02-18T11:54:00.003-06:00</published><updated>2009-05-26T10:23:14.993-05:00</updated><title type='text'>T-SQL Arrays</title><summary type="text">Here&#39;s a good link compiling various methods for processing information in an array-like method.http://www.projectdmx.com/tsql/sqlarrays.aspx</summary><link rel='replies' type='application/atom+xml' href='http://sqlkit.blogspot.com/feeds/3165662258499587273/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6252537647455974109/3165662258499587273' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6252537647455974109/posts/default/3165662258499587273'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6252537647455974109/posts/default/3165662258499587273'/><link rel='alternate' type='text/html' href='http://sqlkit.blogspot.com/2009/02/t-sql-arrays.html' title='T-SQL Arrays'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6252537647455974109.post-3679978838045731392</id><published>2008-11-12T08:07:00.002-06:00</published><updated>2008-11-12T08:12:09.433-06:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="alias"/><category scheme="http://www.blogger.com/atom/ns#" term="default instance"/><category scheme="http://www.blogger.com/atom/ns#" term="legacy"/><category scheme="http://www.blogger.com/atom/ns#" term="named instance"/><category scheme="http://www.blogger.com/atom/ns#" term="tcp"/><title type='text'>Making a SQL Server Instance Listen on Multiple Ports</title><summary type="text">Sometimes when upgrading a SQL Server instance to 2005 or 2008 named instance there is still a need to support a legacy application which can only talk to the default instance on port 1433.  Normally I handle this scenario in the following way.(1) Install a named instance and set it a static TCP port (under IP All).  (for example, 4532)(2) Configure a &quot;default&quot; alias to point to the named </summary><link rel='replies' type='application/atom+xml' href='http://sqlkit.blogspot.com/feeds/3679978838045731392/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6252537647455974109/3679978838045731392' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6252537647455974109/posts/default/3679978838045731392'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6252537647455974109/posts/default/3679978838045731392'/><link rel='alternate' type='text/html' href='http://sqlkit.blogspot.com/2008/11/making-sql-server-instance-listen-on.html' title='Making a SQL Server Instance Listen on Multiple Ports'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6252537647455974109.post-5610252131240398004</id><published>2008-11-11T12:54:00.003-06:00</published><updated>2008-11-11T15:00:35.126-06:00</updated><title type='text'>Get a List of Unique Servers from a list of SQL Instances</title><summary type="text">Here&#39;s an example of pulling just the server name from a list of SQL Server instances.CREATE TABLE [dbo].[Instances]( [QID] [smallint] IDENTITY(1,1) NOT NULL, [Instance] [varchar](128) NOT NULL --additional fields and table options not shown)GO--load the table with dataSELECT DISTINCT --eliminate duplicates CASE  WHEN charindex(&#39;\&#39;, [instance]) &gt; 0 THEN --if the instance name includes a slash   </summary><link rel='replies' type='application/atom+xml' href='http://sqlkit.blogspot.com/feeds/5610252131240398004/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6252537647455974109/5610252131240398004' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6252537647455974109/posts/default/5610252131240398004'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6252537647455974109/posts/default/5610252131240398004'/><link rel='alternate' type='text/html' href='http://sqlkit.blogspot.com/2008/11/get-list-of-unique-servers-from-list-of.html' title='Get a List of Unique Servers from a list of SQL Instances'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6252537647455974109.post-8670593901727560894</id><published>2008-11-11T09:37:00.005-06:00</published><updated>2009-02-09T05:59:51.978-06:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="enterprise software"/><title type='text'>Enterprise Software - Scalability, Flexibility and Integration</title><summary type="text">In yesterday&#39;s SSWUG newsletter, Stephen Wynkoop posed the following question.(excerpt from the SSWUG newsletter 11/10/2008)What, Exactly, Makes &quot;Enterprise&quot; Software?The next version of SQL Server takes more steps toward supporting enterprise-class installations and BI solutions. Great!What is &quot;enterprise&quot; - what does that mean? I&#39;m curious because since even the 7.0 days, and certainly 2000 and</summary><link rel='replies' type='application/atom+xml' href='http://sqlkit.blogspot.com/feeds/8670593901727560894/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6252537647455974109/8670593901727560894' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6252537647455974109/posts/default/8670593901727560894'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6252537647455974109/posts/default/8670593901727560894'/><link rel='alternate' type='text/html' href='http://sqlkit.blogspot.com/2008/11/enterprise-software-scalability.html' title='Enterprise Software - Scalability, Flexibility and Integration'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6252537647455974109.post-2223569975670004686</id><published>2008-11-11T07:00:00.003-06:00</published><updated>2008-11-11T07:23:48.981-06:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="log"/><category scheme="http://www.blogger.com/atom/ns#" term="trace"/><title type='text'>SQL 2005 Log Reader - Default Trace</title><summary type="text">I just read a great article at SQLServerCentral.com about the Default Trace.  It&#39;s a low-impact trace that&#39;s running all the time and writes DDL and other events to a file which can be queried in SSMS.  Here&#39;s the link.  http://www.sqlservercentral.com/articles/SQL+Server+2005/64547/</summary><link rel='replies' type='application/atom+xml' href='http://sqlkit.blogspot.com/feeds/2223569975670004686/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6252537647455974109/2223569975670004686' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6252537647455974109/posts/default/2223569975670004686'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6252537647455974109/posts/default/2223569975670004686'/><link rel='alternate' type='text/html' href='http://sqlkit.blogspot.com/2008/11/sql-2005-log-reader-default-trace.html' title='SQL 2005 Log Reader - Default Trace'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6252537647455974109.post-2394677695930079055</id><published>2008-10-30T19:53:00.002-05:00</published><updated>2008-10-30T20:00:01.236-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Load"/><category scheme="http://www.blogger.com/atom/ns#" term="XML"/><title type='text'>Load XML data into SQL 2000</title><summary type="text">I recently had the need (read &quot;somebody wanted a big favor&quot;) to load XML data into a SQL Server 2000 database.  I came across an easy way for them (being a developer to push the data into SQL) per the article (http://support.microsoft.com/kb/316005).After creating the table on SQL, you have to create a mapping file to tell it which fields go with which columns in the SQL database.  The article </summary><link rel='replies' type='application/atom+xml' href='http://sqlkit.blogspot.com/feeds/2394677695930079055/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6252537647455974109/2394677695930079055' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6252537647455974109/posts/default/2394677695930079055'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6252537647455974109/posts/default/2394677695930079055'/><link rel='alternate' type='text/html' href='http://sqlkit.blogspot.com/2008/10/load-xml-data-into-sql-2000.html' title='Load XML data into SQL 2000'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6252537647455974109.post-2919299839638119528</id><published>2008-10-30T13:27:00.004-05:00</published><updated>2008-10-30T13:37:50.958-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="rowcounts"/><category scheme="http://www.blogger.com/atom/ns#" term="sp_msforeachtable"/><title type='text'>List Table Rowcount and Size</title><summary type="text">Here&#39;s a handy way to get a list of table rowcounts and space used. If you&#39;ve not used the sp_msforeachtable just plug in the question mark (?) as a token for the name of the table.--create a temporary table to hold the resultsCREATE TABLE #TableStats ( [name] varchar(128), [rows] varchar(128), [reserved] varchar(128), [data] varchar(128), [index_size] varchar(128), [unused] varchar(128))GO--loop</summary><link rel='replies' type='application/atom+xml' href='http://sqlkit.blogspot.com/feeds/2919299839638119528/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6252537647455974109/2919299839638119528' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6252537647455974109/posts/default/2919299839638119528'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6252537647455974109/posts/default/2919299839638119528'/><link rel='alternate' type='text/html' href='http://sqlkit.blogspot.com/2008/10/heres-handy-way-to-get-list-of-table.html' title='List Table Rowcount and Size'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6252537647455974109.post-9117815566990827371</id><published>2008-10-28T10:40:00.000-05:00</published><updated>2008-10-30T11:12:51.486-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="DTS"/><title type='text'>List of DTS packages</title><summary type="text">I was recently asked by a fellow DBA if I had &quot;one of my scripts&quot; to give a list of DTS package on a SQL Server 2000 instance. Since the majority of my work is in 2005 and 2008, I just ran the following query.select * from msdb..sysdtspackagesThe results were not helpful because most of the packages had multiple versions stored so instead of listing the 200+ packages, it listed the 7000+ versions</summary><link rel='replies' type='application/atom+xml' href='http://sqlkit.blogspot.com/feeds/9117815566990827371/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6252537647455974109/9117815566990827371' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6252537647455974109/posts/default/9117815566990827371'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6252537647455974109/posts/default/9117815566990827371'/><link rel='alternate' type='text/html' href='http://sqlkit.blogspot.com/2008/10/list-of-dts-packages.html' title='List of DTS packages'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6252537647455974109.post-2984328132814846020</id><published>2008-10-21T07:26:00.000-05:00</published><updated>2008-10-30T11:11:43.178-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Profiler"/><title type='text'>SQL Server Profiler Tools</title><summary type="text">I learned several things about SQL Profiler by watching this video. I found it especially interesting that you can view the ShowPlan and the Perfmon data right from profiler.You have to setup a free account to view the video but it&#39;s worth it. There are dozens of great tutorials like this.http://www.jumpstarttv.com/using-sql-server-2005-profiler_59.aspx</summary><link rel='replies' type='application/atom+xml' href='http://sqlkit.blogspot.com/feeds/2984328132814846020/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6252537647455974109/2984328132814846020' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6252537647455974109/posts/default/2984328132814846020'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6252537647455974109/posts/default/2984328132814846020'/><link rel='alternate' type='text/html' href='http://sqlkit.blogspot.com/2008/10/sql-server-profiler-tools.html' title='SQL Server Profiler Tools'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6252537647455974109.post-5171460909560535311</id><published>2008-10-10T10:40:00.001-05:00</published><updated>2010-03-16T17:03:42.287-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Recovery"/><category scheme="http://www.blogger.com/atom/ns#" term="TempDB"/><title type='text'>Move TempDB, Recreate missing TempDB</title><summary type="text">You can move tempdb by running the following script. If tempdb is missing (due a drive failure, for example), you will need to start the SQL Service with -T3608 for the startup option and then run the script./*If tempdb is unavailable, stop and start the SQL service with thestartup option -T3608This allows you to start SQL without tempdb.*/USE masterGOALTER DATABASE tempdbMODIFY FILE (NAME = </summary><link rel='replies' type='application/atom+xml' href='http://sqlkit.blogspot.com/feeds/5171460909560535311/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6252537647455974109/5171460909560535311' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6252537647455974109/posts/default/5171460909560535311'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6252537647455974109/posts/default/5171460909560535311'/><link rel='alternate' type='text/html' href='http://sqlkit.blogspot.com/2008/10/move-tempdb-recreate-missing-tempdb.html' title='Move TempDB, Recreate missing TempDB'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6252537647455974109.post-5181392667902072083</id><published>2008-10-09T17:40:00.000-05:00</published><updated>2008-10-30T11:08:23.192-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Image"/><title type='text'>Insert Picture into Image Field using T-SQL</title><summary type="text">Here&#39;s an example of how to quickly load a picture into an image field using T-SQL.INSERT INTO [hr].[NTUsers] ( [userid], [username], [title], [reportsto], [pic])SELECT &#39;00001&#39;, &#39;Chip Porter&#39;, &#39;Technology Services&#39;, &#39;00000&#39;, BulkColumn FROM OPENROWSET(BULK &#39;c:\noimage.bmp&#39;, SINGLE_BLOB) AS ImageLoadGO</summary><link rel='replies' type='application/atom+xml' href='http://sqlkit.blogspot.com/feeds/5181392667902072083/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6252537647455974109/5181392667902072083' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6252537647455974109/posts/default/5181392667902072083'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6252537647455974109/posts/default/5181392667902072083'/><link rel='alternate' type='text/html' href='http://sqlkit.blogspot.com/2008/10/insert-picture-into-image-field-using-t.html' title='Insert Picture into Image Field using T-SQL'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry></feed>