<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/atom.xsl" media="screen"?><feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-US"><title type="html">intellectually constipated</title><subtitle type="html">patrick gallucci's sql server brain drain
</subtitle><id>http://blogs.msdn.com/patrickgallucci/atom.xml</id><link rel="alternate" type="text/html" href="http://blogs.msdn.com/patrickgallucci/default.aspx" /><link rel="self" type="application/atom+xml" href="http://blogs.msdn.com/patrickgallucci/atom.xml" /><generator uri="http://communityserver.org" version="2.1.61025.2">Community Server</generator><updated>2007-08-10T22:48:22Z</updated><entry><title>How to drop all tables, all views, and all stored procedures from a SQL 2005 DB...</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/patrickgallucci/archive/2008/04/29/how-to-drop-all-tables-all-views-and-all-stored-procedures-from-a-sql-2005-db.aspx" /><id>http://blogs.msdn.com/patrickgallucci/archive/2008/04/29/how-to-drop-all-tables-all-views-and-all-stored-procedures-from-a-sql-2005-db.aspx</id><published>2008-04-29T23:00:36Z</published><updated>2008-04-29T23:00:36Z</updated><content type="html">This is a follow-up to the blog entry from Jasper Jugan . This is a modification to the script to allow for schema specific deletes of the SP's, Views and I added Functions. &amp;#160; create procedure usp_DropSPFunctionsViews as &amp;#160; -- variable to object name declare @name varchar (1000) -- variable to hold object type declare @xtype varchar (20) -- variable to hold sql string declare @sqlstring nvarchar(4000) &amp;#160; declare SPViews_cursor cursor for SELECT QUOTENAME(ROUTINE_SCHEMA) + '.' + QUOTENAME(ROUTINE_NAME)...(&lt;a href="http://blogs.msdn.com/patrickgallucci/archive/2008/04/29/how-to-drop-all-tables-all-views-and-all-stored-procedures-from-a-sql-2005-db.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8439011" width="1" height="1"&gt;</content><author><name>patrickgallucci</name><uri>http://blogs.msdn.com/members/patrickgallucci.aspx</uri></author><category term="sql server 2005" scheme="http://blogs.msdn.com/patrickgallucci/archive/tags/sql+server+2005/default.aspx" /><category term="SQL Function" scheme="http://blogs.msdn.com/patrickgallucci/archive/tags/SQL+Function/default.aspx" /><category term="SQL Script" scheme="http://blogs.msdn.com/patrickgallucci/archive/tags/SQL+Script/default.aspx" /><category term="SQL Server Stored Procedure" scheme="http://blogs.msdn.com/patrickgallucci/archive/tags/SQL+Server+Stored+Procedure/default.aspx" /></entry><entry><title>The few, the proud, the fortunate. Microsoft Certified Architect Program</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/patrickgallucci/archive/2008/02/29/the-few-the-proud-the-fortunate-microsoft-certified-architect-program.aspx" /><id>http://blogs.msdn.com/patrickgallucci/archive/2008/02/29/the-few-the-proud-the-fortunate-microsoft-certified-architect-program.aspx</id><published>2008-02-29T22:51:38Z</published><updated>2008-02-29T22:51:38Z</updated><content type="html">And I really do mean fortunate. On March 10th I am to embark in five weeks of some of the toughest technical training that I will do during my career. I have been to week long ramp-ups and boot-camps to help facilitate learning during my career. But this is far and above anything that I think I endured or will ever go through again. This is not training to teach, but rather to enforce and to fill gaps. You must be nominated, then pass a pre-interview to make sure that you are qualified to attempt...(&lt;a href="http://blogs.msdn.com/patrickgallucci/archive/2008/02/29/the-few-the-proud-the-fortunate-microsoft-certified-architect-program.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=7958895" width="1" height="1"&gt;</content><author><name>patrickgallucci</name><uri>http://blogs.msdn.com/members/patrickgallucci.aspx</uri></author><category term="sql server 2005" scheme="http://blogs.msdn.com/patrickgallucci/archive/tags/sql+server+2005/default.aspx" /><category term="SQL Server 2008" scheme="http://blogs.msdn.com/patrickgallucci/archive/tags/SQL+Server+2008/default.aspx" /><category term="Katmai" scheme="http://blogs.msdn.com/patrickgallucci/archive/tags/Katmai/default.aspx" /><category term="Microsoft Certified Architect" scheme="http://blogs.msdn.com/patrickgallucci/archive/tags/Microsoft+Certified+Architect/default.aspx" /><category term="Training" scheme="http://blogs.msdn.com/patrickgallucci/archive/tags/Training/default.aspx" /></entry><entry><title>Bricks seldom feel good.</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/patrickgallucci/archive/2008/02/25/bricks-seldom-feel-good.aspx" /><id>http://blogs.msdn.com/patrickgallucci/archive/2008/02/25/bricks-seldom-feel-good.aspx</id><published>2008-02-26T02:41:43Z</published><updated>2008-02-26T02:41:43Z</updated><content type="html">Not much to say. I have been angry that he has not returned my emails. Sorry Ken. Ken Henderson &amp;#8211; We Will Always Remember You &amp;#160; Technorati Tags: Ken Henderson , SQL Server , SQL...(&lt;a href="http://blogs.msdn.com/patrickgallucci/archive/2008/02/25/bricks-seldom-feel-good.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=7897251" width="1" height="1"&gt;</content><author><name>patrickgallucci</name><uri>http://blogs.msdn.com/members/patrickgallucci.aspx</uri></author></entry><entry><title>SQL Server Function to merge a date with a time</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/patrickgallucci/archive/2007/11/18/sql-server-function-to-merge-a-date-with-a-time.aspx" /><id>http://blogs.msdn.com/patrickgallucci/archive/2007/11/18/sql-server-function-to-merge-a-date-with-a-time.aspx</id><published>2007-11-19T05:03:46Z</published><updated>2007-11-19T05:03:46Z</updated><content type="html">I use this when I need to join two fields. One has a date, the other has a time. &amp;#160; IF EXISTS ( SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N '[util].[uf_MergeDate2Time]' ) AND type in (N 'FN' , N 'IF' , N 'TF' , N 'FS' , N 'FT' )) DROP FUNCTION [util].[uf_MergeDate2Time] GO CREATE FUNCTION [util].[uf_MergeDate2Time]( @ date DATETIME, @ time DATETIME ) RETURNS DATETIME WITH EXECUTE AS CALLER AS /**********************************************************************************************************...(&lt;a href="http://blogs.msdn.com/patrickgallucci/archive/2007/11/18/sql-server-function-to-merge-a-date-with-a-time.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=6385343" width="1" height="1"&gt;</content><author><name>patrickgallucci</name><uri>http://blogs.msdn.com/members/patrickgallucci.aspx</uri></author><category term="sql server 2005" scheme="http://blogs.msdn.com/patrickgallucci/archive/tags/sql+server+2005/default.aspx" /><category term="Business Intelligence" scheme="http://blogs.msdn.com/patrickgallucci/archive/tags/Business+Intelligence/default.aspx" /><category term="SQL Function" scheme="http://blogs.msdn.com/patrickgallucci/archive/tags/SQL+Function/default.aspx" /><category term="SQL Server 2008" scheme="http://blogs.msdn.com/patrickgallucci/archive/tags/SQL+Server+2008/default.aspx" /><category term="Katmai" scheme="http://blogs.msdn.com/patrickgallucci/archive/tags/Katmai/default.aspx" /><category term="Data Warehouse" scheme="http://blogs.msdn.com/patrickgallucci/archive/tags/Data+Warehouse/default.aspx" /></entry><entry><title>Windows Mobile Slingbox and SlingPlayer Mobile</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/patrickgallucci/archive/2007/10/26/windows-mobile-slingbox-and-slingplayer-mobile.aspx" /><id>http://blogs.msdn.com/patrickgallucci/archive/2007/10/26/windows-mobile-slingbox-and-slingplayer-mobile.aspx</id><published>2007-10-26T19:34:28Z</published><updated>2007-10-26T19:34:28Z</updated><content type="html">So here is my 2nd favorite new gadget on my Windows Mobile device. With the 3G network speed and my SlingPlayer mobile, when I am not using Mobile Live search, I am either watching tv or listening to the news on my Windows Mobile Device. The quality is not great, but it is acceptable. I have been trying different settings, and over the past 2 weeks have gotten it to where there is little fragmentation on the screen. The more action on the screen lessens the quality, but the player is optimizing itself...(&lt;a href="http://blogs.msdn.com/patrickgallucci/archive/2007/10/26/windows-mobile-slingbox-and-slingplayer-mobile.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=5693222" width="1" height="1"&gt;</content><author><name>patrickgallucci</name><uri>http://blogs.msdn.com/members/patrickgallucci.aspx</uri></author><category term="Windows Mobile" scheme="http://blogs.msdn.com/patrickgallucci/archive/tags/Windows+Mobile/default.aspx" /><category term="Gadgets" scheme="http://blogs.msdn.com/patrickgallucci/archive/tags/Gadgets/default.aspx" /></entry><entry><title>Live Search, Windows Mobile and my little GPS friend!</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/patrickgallucci/archive/2007/10/25/live-search-windows-mobile-and-my-little-gps-friend.aspx" /><id>http://blogs.msdn.com/patrickgallucci/archive/2007/10/25/live-search-windows-mobile-and-my-little-gps-friend.aspx</id><published>2007-10-26T04:11:46Z</published><updated>2007-10-26T04:11:46Z</updated><content type="html">I have really started to like my Samsung Blackjack running Windows Mobile lately. I am going to start to share some of my favorite applications and gadgets as time permits. My latest and probably favorite as of now is Live Search for Windows Mobile. I am not going to run down all the features, but share with you how I managed to get GPS working and how COOL this is. If you haven't seen it, check it out. I really think they need to give more information on this site, as I am sure that more people...(&lt;a href="http://blogs.msdn.com/patrickgallucci/archive/2007/10/25/live-search-windows-mobile-and-my-little-gps-friend.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=5682518" width="1" height="1"&gt;</content><author><name>patrickgallucci</name><uri>http://blogs.msdn.com/members/patrickgallucci.aspx</uri></author><category term="GPS" scheme="http://blogs.msdn.com/patrickgallucci/archive/tags/GPS/default.aspx" /><category term="Windows Mobile" scheme="http://blogs.msdn.com/patrickgallucci/archive/tags/Windows+Mobile/default.aspx" /></entry><entry><title>HALO 3</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/patrickgallucci/archive/2007/09/25/halo-3.aspx" /><id>http://blogs.msdn.com/patrickgallucci/archive/2007/09/25/halo-3.aspx</id><published>2007-09-25T23:43:12Z</published><updated>2007-09-25T23:43:12Z</updated><content type="html">Nothing else to be said. GOOCH...(&lt;a href="http://blogs.msdn.com/patrickgallucci/archive/2007/09/25/halo-3.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=5129232" width="1" height="1"&gt;</content><author><name>patrickgallucci</name><uri>http://blogs.msdn.com/members/patrickgallucci.aspx</uri></author></entry><entry><title>SQL Server Function to get the Hour of the Year</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/patrickgallucci/archive/2007/09/25/sql-server-function-to-get-the-hour-of-the-year.aspx" /><id>http://blogs.msdn.com/patrickgallucci/archive/2007/09/25/sql-server-function-to-get-the-hour-of-the-year.aspx</id><published>2007-09-25T23:32:20Z</published><updated>2007-09-25T23:32:20Z</updated><content type="html">This function returns an integer of the hour of the year passed as a variable. IF EXISTS ( SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N '[util].[uf_GetHourOfYear]' ) AND type IN (N 'FN' , N 'IF' , N 'TF' , N 'FS' , N 'FT' )) DROP FUNCTION [util].[uf_GetHourOfYear] GO CREATE FUNCTION [util].[uf_GetHourOfYear]( @ date DATETIME ) RETURNS INTEGER WITH EXECUTE AS CALLER AS /********************************************************************************************************** * UDF Name:...(&lt;a href="http://blogs.msdn.com/patrickgallucci/archive/2007/09/25/sql-server-function-to-get-the-hour-of-the-year.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=5129083" width="1" height="1"&gt;</content><author><name>patrickgallucci</name><uri>http://blogs.msdn.com/members/patrickgallucci.aspx</uri></author><category term="sql server 2005" scheme="http://blogs.msdn.com/patrickgallucci/archive/tags/sql+server+2005/default.aspx" /><category term="SQL Function" scheme="http://blogs.msdn.com/patrickgallucci/archive/tags/SQL+Function/default.aspx" /><category term="SQL Server 2008" scheme="http://blogs.msdn.com/patrickgallucci/archive/tags/SQL+Server+2008/default.aspx" /><category term="Katmai" scheme="http://blogs.msdn.com/patrickgallucci/archive/tags/Katmai/default.aspx" /><category term="Data Warehouse" scheme="http://blogs.msdn.com/patrickgallucci/archive/tags/Data+Warehouse/default.aspx" /></entry><entry><title>SQL Server Function to get the Hour of the Month</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/patrickgallucci/archive/2007/09/25/sql-server-function-to-get-the-hour-of-the-month.aspx" /><id>http://blogs.msdn.com/patrickgallucci/archive/2007/09/25/sql-server-function-to-get-the-hour-of-the-month.aspx</id><published>2007-09-25T23:30:06Z</published><updated>2007-09-25T23:30:06Z</updated><content type="html">This function returns an integer of the hour of the month passed as a variable. IF EXISTS ( SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N '[util].[uf_GetHourOfMonth]' ) AND type IN (N 'FN' , N 'IF' , N 'TF' , N 'FS' , N 'FT' )) DROP FUNCTION [util].[uf_GetHourOfMonth] GO CREATE FUNCTION [util].[uf_GetHourOfMonth]( @ date DATETIME ) RETURNS INTEGER WITH EXECUTE AS CALLER AS /********************************************************************************************************** * UDF Name:...(&lt;a href="http://blogs.msdn.com/patrickgallucci/archive/2007/09/25/sql-server-function-to-get-the-hour-of-the-month.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=5128979" width="1" height="1"&gt;</content><author><name>patrickgallucci</name><uri>http://blogs.msdn.com/members/patrickgallucci.aspx</uri></author><category term="sql server 2005" scheme="http://blogs.msdn.com/patrickgallucci/archive/tags/sql+server+2005/default.aspx" /><category term="SQL Function" scheme="http://blogs.msdn.com/patrickgallucci/archive/tags/SQL+Function/default.aspx" /><category term="SQL Server 2008" scheme="http://blogs.msdn.com/patrickgallucci/archive/tags/SQL+Server+2008/default.aspx" /><category term="Data Warehouse" scheme="http://blogs.msdn.com/patrickgallucci/archive/tags/Data+Warehouse/default.aspx" /></entry><entry><title>SQL Server Function to return half year number of days.</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/patrickgallucci/archive/2007/09/24/sql-server-function-to-return-half-year-number-of-days.aspx" /><id>http://blogs.msdn.com/patrickgallucci/archive/2007/09/24/sql-server-function-to-return-half-year-number-of-days.aspx</id><published>2007-09-24T17:29:43Z</published><updated>2007-09-24T17:29:43Z</updated><content type="html">This function returns an integer of the number of days in the half year. &amp;#xA0; IF EXISTS ( SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N '[util].[uf_GetHalfYearDays]' ) AND type IN (N 'FN' , N 'IF' , N 'TF' , N 'FS' , N 'FT' )) DROP FUNCTION [util].[uf_GetHalfYearDays] GO CREATE FUNCTION [util].[uf_GetHalfYearDays]( @ date DATETIME ) RETURNS INTEGER WITH EXECUTE AS CALLER AS /********************************************************************************************************** * UDF...(&lt;a href="http://blogs.msdn.com/patrickgallucci/archive/2007/09/24/sql-server-function-to-return-half-year-number-of-days.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=5098631" width="1" height="1"&gt;</content><author><name>patrickgallucci</name><uri>http://blogs.msdn.com/members/patrickgallucci.aspx</uri></author><category term="sql server 2005" scheme="http://blogs.msdn.com/patrickgallucci/archive/tags/sql+server+2005/default.aspx" /><category term="SQL Function" scheme="http://blogs.msdn.com/patrickgallucci/archive/tags/SQL+Function/default.aspx" /><category term="SQL Server 2008" scheme="http://blogs.msdn.com/patrickgallucci/archive/tags/SQL+Server+2008/default.aspx" /></entry><entry><title>SQLCMD and the power of the little r</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/patrickgallucci/archive/2007/09/03/sqlcmd-and-the-power-of-the-little-r.aspx" /><id>http://blogs.msdn.com/patrickgallucci/archive/2007/09/03/sqlcmd-and-the-power-of-the-little-r.aspx</id><published>2007-09-03T17:25:41Z</published><updated>2007-09-03T17:25:41Z</updated><content type="html">I would have to say that one of my favorite new utilities that shipped with SQL Server 2005 has been the SQLCMD utility . I am going to demonstrate the use of include files. The following is the complete call syntax for SQLCMD. sqlcmd [{ { -U login_id [ -P password ] } | –E trusted connection }] [ -z new password ] [ -Z new password and exit ] [ -S server_name [ \ instance_name ] ] [ -H wksta_name ] [ -d db_name ] [ -l login time_out ] [ -A dedicated admin connection ] [ -i input_file ] [ -o output_file...(&lt;a href="http://blogs.msdn.com/patrickgallucci/archive/2007/09/03/sqlcmd-and-the-power-of-the-little-r.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=4724708" width="1" height="1"&gt;</content><author><name>patrickgallucci</name><uri>http://blogs.msdn.com/members/patrickgallucci.aspx</uri></author><category term="sql server 2005" scheme="http://blogs.msdn.com/patrickgallucci/archive/tags/sql+server+2005/default.aspx" /><category term="SQL Script" scheme="http://blogs.msdn.com/patrickgallucci/archive/tags/SQL+Script/default.aspx" /><category term="SQLCMD" scheme="http://blogs.msdn.com/patrickgallucci/archive/tags/SQLCMD/default.aspx" /></entry><entry><title>SQL Server Data Types Test Tables</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/patrickgallucci/archive/2007/08/25/sql-server-data-types-test-tables.aspx" /><id>http://blogs.msdn.com/patrickgallucci/archive/2007/08/25/sql-server-data-types-test-tables.aspx</id><published>2007-08-25T17:41:19Z</published><updated>2007-08-25T17:41:19Z</updated><content type="html">These tables can be used for testing various data types of SQL Server. You can extend as needed. SET NUMERIC_ROUNDABORT OFF ; SET ANSI_PADDING, ANSI_WARNINGS, CONCAT_NULL_YIELDS_NULL, ARITHABORT,QUOTED_IDENTIFIER, ANSI_NULLS ON ; GO -- Create XML Schema Collection CREATE XML SCHEMA COLLECTION PartitionMapSchema AS N '&amp;lt;xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema"&amp;gt; &amp;lt;xs:element name="Partition_Map"&amp;gt; &amp;lt;xs:complexType&amp;gt;...(&lt;a href="http://blogs.msdn.com/patrickgallucci/archive/2007/08/25/sql-server-data-types-test-tables.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=4559946" width="1" height="1"&gt;</content><author><name>patrickgallucci</name><uri>http://blogs.msdn.com/members/patrickgallucci.aspx</uri></author><category term="sql server 2005" scheme="http://blogs.msdn.com/patrickgallucci/archive/tags/sql+server+2005/default.aspx" /><category term="SQL Script" scheme="http://blogs.msdn.com/patrickgallucci/archive/tags/SQL+Script/default.aspx" /></entry><entry><title>Column Information View for SQL Server</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/patrickgallucci/archive/2007/08/24/column-information-view-for-sql-server.aspx" /><id>http://blogs.msdn.com/patrickgallucci/archive/2007/08/24/column-information-view-for-sql-server.aspx</id><published>2007-08-25T06:24:15Z</published><updated>2007-08-25T06:24:15Z</updated><content type="html">Here is a view that contains column information. This is useful if you need to create a DDL statement for a table. CREATE VIEW dbo.vColumnInfo AS SELECT tbl.name AS [Table_Name], SCHEMA_NAME(tbl.schema_id) AS [Table_Schema], CAST (ISNULL(cik.index_column_id , 0) AS BIT ) AS [InPrimaryKey], CAST (ISNULL(( SELECT TOP 1 1 FROM sys.foreign_key_columns AS colfk WHERE colfk.parent_column_id = clmns.column_id AND colfk.parent_object_id = clmns.object_id ) , 0) AS BIT ) AS [IsForeignKey], QUOTENAME(clmns.name)...(&lt;a href="http://blogs.msdn.com/patrickgallucci/archive/2007/08/24/column-information-view-for-sql-server.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=4552458" width="1" height="1"&gt;</content><author><name>patrickgallucci</name><uri>http://blogs.msdn.com/members/patrickgallucci.aspx</uri></author><category term="sql server 2005" scheme="http://blogs.msdn.com/patrickgallucci/archive/tags/sql+server+2005/default.aspx" /><category term="SQL Script" scheme="http://blogs.msdn.com/patrickgallucci/archive/tags/SQL+Script/default.aspx" /></entry><entry><title>Released - Cumulative update package 3 for SQL Server 2005 Service Pack 2</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/patrickgallucci/archive/2007/08/22/released-cumulative-update-package-3-for-sql-server-2005-service-pack-2.aspx" /><id>http://blogs.msdn.com/patrickgallucci/archive/2007/08/22/released-cumulative-update-package-3-for-sql-server-2005-service-pack-2.aspx</id><published>2007-08-22T23:44:58Z</published><updated>2007-08-22T23:44:58Z</updated><content type="html">Here is the link. http://support.microsoft.com/default.aspx/kb/939537 Here are the fixes in this release. SQL bug number KB article number Description 50001581 938243 (http://support.microsoft.com/kb/938243/) FIX: Error message when you run a full-text query against a catalog in SQL Server 2005: “The execution of a full-text query failed. The content index is corrupt." 50001585 938712 (http://support.microsoft.com/kb/938712/) FIX: Some records in the fact table may not be processed when you process...(&lt;a href="http://blogs.msdn.com/patrickgallucci/archive/2007/08/22/released-cumulative-update-package-3-for-sql-server-2005-service-pack-2.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=4515482" width="1" height="1"&gt;</content><author><name>patrickgallucci</name><uri>http://blogs.msdn.com/members/patrickgallucci.aspx</uri></author><category term="sql server 2005" scheme="http://blogs.msdn.com/patrickgallucci/archive/tags/sql+server+2005/default.aspx" /></entry><entry><title>Generate BCP, Bulk Insert code with TSQL</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/patrickgallucci/archive/2007/08/10/generate-bcp-bulk-insert-code-with-tsql.aspx" /><id>http://blogs.msdn.com/patrickgallucci/archive/2007/08/10/generate-bcp-bulk-insert-code-with-tsql.aspx</id><published>2007-08-11T05:48:22Z</published><updated>2007-08-11T05:48:22Z</updated><content type="html">This script will generate tsql code to bcp and bulk load data for all tables in a given DB. SET NOCOUNT ON GO DECLARE @ path nvarchar(2000), @batchsize nvarchar(40), @format nvarchar(40), @serverinstance nvarchar(200), @security nvarchar(800) SET @ path = 'C:\Temp\' ; SET @batchsize = '1000000' -- COMMIT EVERY n RECORDS SET @serverinstance = 'PGALLUCC-M7' -- SQL Server \ Instance name SET @security = ' -T ' -- -T (trusted), -Uloginid -Ploginpassword --GENERATE CONSTRAINT NO CHECK PRINT '--NO CHECK...(&lt;a href="http://blogs.msdn.com/patrickgallucci/archive/2007/08/10/generate-bcp-bulk-insert-code-with-tsql.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=4328139" width="1" height="1"&gt;</content><author><name>patrickgallucci</name><uri>http://blogs.msdn.com/members/patrickgallucci.aspx</uri></author><category term="sql server 2005" scheme="http://blogs.msdn.com/patrickgallucci/archive/tags/sql+server+2005/default.aspx" /><category term="SQL Script" scheme="http://blogs.msdn.com/patrickgallucci/archive/tags/SQL+Script/default.aspx" /></entry></feed>