<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>

<channel>
	<title>Amit Bansal writes...</title>
	<atom:link href="http://www.blogboard.in/AmitBansal/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://www.blogboard.in/AmitBansal</link>
	<description>SQL Server &#38; Business Intelligence</description>
	<pubDate>Thu, 06 May 2010 12:13:52 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.5</generator>
	<language>en</language>
			<item>
		<title>SQLServerGeeks.com presents AB&#8217;s SQL Server day &#8211; Decks &#38; Demo scripts uploaded</title>
		<link>http://www.blogboard.in/AmitBansal/?p=199</link>
		<comments>http://www.blogboard.in/AmitBansal/?p=199#comments</comments>
		<pubDate>Thu, 06 May 2010 12:13:52 +0000</pubDate>
		<dc:creator>Amit Bansal</dc:creator>
		
		<category><![CDATA[Announcements]]></category>

		<category><![CDATA[SQL Server &amp; BI]]></category>

		<guid isPermaLink="false">http://www.blogboard.in/AmitBansal/?p=199</guid>
		<description><![CDATA[Hi Friends,
With respect to my last post, the decks &#38; demo scripts of the event is uploaded on www.WeTogether.in    
Regards    Amit
]]></description>
			<content:encoded><![CDATA[<p>Hi Friends,</p>
<p>With respect to my last post, the decks &amp; demo scripts of the event is uploaded on <a href="http://www.WeTogether.in">www.WeTogether.in</a>    </p>
<p>Regards    <br />Amit</p>
]]></content:encoded>
			<wfw:commentRss>http://www.blogboard.in/AmitBansal/?feed=rss2&amp;p=199</wfw:commentRss>
		</item>
		<item>
		<title>SQLServerGeeks.com presents AB&#8217;s SQL Server day &#8211; Pics uploaded</title>
		<link>http://www.blogboard.in/AmitBansal/?p=198</link>
		<comments>http://www.blogboard.in/AmitBansal/?p=198#comments</comments>
		<pubDate>Thu, 06 May 2010 12:10:07 +0000</pubDate>
		<dc:creator>Amit Bansal</dc:creator>
		
		<category><![CDATA[Announcements]]></category>

		<category><![CDATA[SQL Server &amp; BI]]></category>

		<guid isPermaLink="false">http://www.blogboard.in/AmitBansal/?p=198</guid>
		<description><![CDATA[Hi Friends,
I recently concluded a community session for SQLServerGeeks.com – AB’s SQL Server day. SQLServerGeeks.com officially kicked off its series of community sessions on SQL Server branded as AB&#8217;s SQL Server day. The Delhi NCR chapter was delivered on 14th April 2010 at Microsoft Gurgaon. Sarabpreet Singh and I presented 1 session each on Back/Restore [...]]]></description>
			<content:encoded><![CDATA[<p>Hi Friends,</p>
<p>I recently concluded a community session for SQLServerGeeks.com – AB’s SQL Server day. SQLServerGeeks.com officially kicked off its series of community sessions on SQL Server branded as AB&#8217;s SQL Server day. The Delhi NCR chapter was delivered on 14th April 2010 at Microsoft Gurgaon. Sarabpreet Singh and I presented 1 session each on Back/Restore &amp; SQL Server Spatial data respectively. The sessions were very well received and responded by the audience. The event was attended by 40 people approximately. Thanks to Microsoft, Rishu Mehra, Sarabpreet Singh, Amit Bansal, PeoplewareIndia, UGSS, GITCA &amp; INETA for all their support in community activities.</p>
<p>All the pics can be seen on <a href="http://www.peoplewareindia.com/events.htm">www.peoplewareindia.com/events.htm</a></p>
<p>Stay tuned. More events coming up !!!</p>
<p>Regards</p>
<p>Amit Bansal   <br /><a href="http://www.amitbansal.net">www.amitbansal.net</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.blogboard.in/AmitBansal/?feed=rss2&amp;p=198</wfw:commentRss>
		</item>
		<item>
		<title>AB&#8217;s SQL Server day &#8211; April 24, Saturday at Microsoft (Gurgaon)</title>
		<link>http://www.blogboard.in/AmitBansal/?p=197</link>
		<comments>http://www.blogboard.in/AmitBansal/?p=197#comments</comments>
		<pubDate>Mon, 19 Apr 2010 13:19:51 +0000</pubDate>
		<dc:creator>Amit Bansal</dc:creator>
		
		<category><![CDATA[Announcements]]></category>

		<category><![CDATA[SQL Server &amp; BI]]></category>

		<guid isPermaLink="false">http://www.blogboard.in/AmitBansal/?p=197</guid>
		<description><![CDATA[Hi Friends,
SQLServerGeeks.com &#38; PeoplewareIndia.com cordially invite you to AB’s SQL Server day on 24th April 2010 (Saturday) at Microsoft Gurgaon from 10.30 am to 2 pm. Register at http://www.eDominer.com/CL/Registration1.aspx
Amit Bansal &#38; Sarabpreet Singh will present power-packed sessions. This is a community event and is absolutely free. Session details are as follows:
10.30 am to 10.45 am [...]]]></description>
			<content:encoded><![CDATA[<p>Hi Friends,</p>
<p>SQLServerGeeks.com &amp; PeoplewareIndia.com cordially invite you to AB’s SQL Server day on 24<sup>th</sup> April 2010 (Saturday) at Microsoft Gurgaon from 10.30 am to 2 pm. Register at <a href="http://www.eDominer.com/CL/Registration1.aspx">http://www.eDominer.com/CL/Registration1.aspx</a></p>
<p>Amit Bansal &amp; Sarabpreet Singh will present power-packed sessions. This is a community event and is absolutely free. Session details are as follows:</p>
<p>10.30 am to 10.45 am – Introduction</p>
<p>Topic 1: Backup &amp; Restore</p>
<p>Speaker: Sarabpreet Singh</p>
<p>Time: 10.45 am to 12 noon</p>
<p>Abstract: Guidelines for good backup Strategy</p>
<p>Role of recovery models in Backup \ Restore</p>
<p>Precautions while switching Recovery Models</p>
<p>How to avoid common pitfalls in Backup\ Restore</p>
<p>Tweaking to get maximum Performance in Backup\ Restore</p>
<p>12 noon to 12.30 pm – Refreshments &amp; Networking</p>
<p>Topic 2: SQL Server Spatial stuff</p>
<p>Speaker: Amit Bansal</p>
<p>Time: 12.30 pm to 1.45 pm</p>
<p>Abstract: You might have attended many sessions (online webcasts &amp; physical events) that show you how to insert &amp; retrieve spatial data to and from a database in SQL Server 2008. You might have seen standard demos and code snippets that insert data into Geometry/Geography data type in a table and then easily retrieve it using T-SQL. But do you really know what spatial data is all about? Do you understand what is Geo-Spatial stuff is all about? Fathom this - Coordinate Systems, Cartesian coordinate systems, World Geodetic System, Spatial Reference System, Geographic Coordinate System, Spherical Coordinate System, etc. Already confused? Well, Spatial support is just not about 2 data types, it’s a whole world of complex data and Amit Bansal will make this difficult concept easy for you to understand and implement. Amit will present a well-balanced session with delivery of strong concepts followed by crisp demos. Get ready to develop your own Geo Spatial application !</p>
<p>1.45 pm to 2 pm – Closing note</p>
<p>Date: 24<sup>th</sup> April 2010, Saturday</p>
<p>Time: 10.30 am to 2 pm</p>
<p>Venue: Microsoft, CyberGreen towers, DLF Phase II, 9<sup>th</sup> Floor, Gurgaon</p>
<p>Contact: Rishu Mehra: 9818562858</p>
<p>Registration link: <a href="http://www.eDominer.com/CL/Registration1.aspx">http://www.eDominer.com/CL/Registration1.aspx</a></p>
<p>Note: Registration is a must.</p>
<p>We look forward to your participation. Please forward this email to your friends &amp; colleagues to make them aware of the event. Do spread the word by blogging about it and posting it in relevant forums. Your efforts in spreading the word will be highly appreciated.</p>
<p>Thanks &amp; Regards</p>
<p>SQLServerGeeks.com</p>
<p>PeoplewareIndia.com</p>
]]></content:encoded>
			<wfw:commentRss>http://www.blogboard.in/AmitBansal/?feed=rss2&amp;p=197</wfw:commentRss>
		</item>
		<item>
		<title>SQL Server 2008 Row constructor - Insert multiple records in a single statement</title>
		<link>http://www.blogboard.in/AmitBansal/?p=196</link>
		<comments>http://www.blogboard.in/AmitBansal/?p=196#comments</comments>
		<pubDate>Thu, 15 Apr 2010 08:17:47 +0000</pubDate>
		<dc:creator>Amit Bansal</dc:creator>
		
		<category><![CDATA[SQL Server &amp; BI]]></category>

		<guid isPermaLink="false">http://www.blogboard.in/AmitBansal/?p=196</guid>
		<description><![CDATA[Hi Friends,
Just a quick recap. You can insert multiple records in a single statement starting from SQL Server 2008.
Try this:
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;
use tempdb   go 
create table amit1 (name varchar(20), age int);   go    create table amit2 (name varchar(20), age int);    go 
&#8211; Insert multiple records
INSERT INTO amit1 VALUES(&#8217;Amitabh&#8217;, [...]]]></description>
			<content:encoded><![CDATA[<p>Hi Friends,</p>
<p>Just a quick recap. You can insert multiple records in a single statement starting from SQL Server 2008.</p>
<p>Try this:</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p>use tempdb   <br />go </p>
<p>create table amit1 (name varchar(20), age int);   <br />go    <br />create table amit2 (name varchar(20), age int);    <br />go </p>
<p>&#8211; Insert multiple records</p>
<p>INSERT INTO amit1 VALUES(&#8217;Amitabh&#8217;, 5), (&#8217;Abhishek&#8217;, 6);   <br />go </p>
<p>SELECT * FROM amit1   <br />go</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p>Now try this: does this work?</p>
<p>INSERT INTO amit2 VALUES ((SELECT Name FROM amit1), (SELECT Age FROM amit1))   <br />go</p>
<p>what about this?</p>
<p>INSERT INTO amit2 VALUES ((SELECT TOP(1) Name FROM amit1), (SELECT TOP(1) Age FROM amit1))   <br />go</p>
<p>Have fun with Row constructors <img src='http://www.blogboard.in/AmitBansal/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Regards</p>
<p>Amit   <br /><a href="http://www.amitbansal.net">www.amitbansal.net</a>    <br /><a href="http://www.peoplewareindia.com">www.peoplewareindia.com</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.blogboard.in/AmitBansal/?feed=rss2&amp;p=196</wfw:commentRss>
		</item>
		<item>
		<title>New pictures on www.PeoplewareIndia.com/events.htm</title>
		<link>http://www.blogboard.in/AmitBansal/?p=195</link>
		<comments>http://www.blogboard.in/AmitBansal/?p=195#comments</comments>
		<pubDate>Wed, 14 Apr 2010 13:54:51 +0000</pubDate>
		<dc:creator>Amit Bansal</dc:creator>
		
		<category><![CDATA[Personal]]></category>

		<guid isPermaLink="false">http://www.blogboard.in/AmitBansal/?p=195</guid>
		<description><![CDATA[Hi All,
I recently completed 2 training programs in Trivandrum for one of my client. Pics are uploaded at www.peoplewareindia.com/events.htm
Pics of MVP Summit India and US – still pending…
Regards
Amit
]]></description>
			<content:encoded><![CDATA[<p>Hi All,</p>
<p>I recently completed 2 training programs in Trivandrum for one of my client. Pics are uploaded at <a href="http://www.peoplewareindia.com/events.htm">www.peoplewareindia.com/events.htm</a></p>
<p>Pics of MVP Summit India and US – still pending…</p>
<p>Regards</p>
<p>Amit</p>
]]></content:encoded>
			<wfw:commentRss>http://www.blogboard.in/AmitBansal/?feed=rss2&amp;p=195</wfw:commentRss>
		</item>
		<item>
		<title>Difference between DateTime and DateTime2 data type in SQL Server 2008</title>
		<link>http://www.blogboard.in/AmitBansal/?p=194</link>
		<comments>http://www.blogboard.in/AmitBansal/?p=194#comments</comments>
		<pubDate>Wed, 14 Apr 2010 13:35:14 +0000</pubDate>
		<dc:creator>Amit Bansal</dc:creator>
		
		<category><![CDATA[SQL Server &amp; BI]]></category>

		<guid isPermaLink="false">http://www.blogboard.in/AmitBansal/?p=194</guid>
		<description><![CDATA[Hi Friends,
DateTime2 is the new data type in SQL Server 2008. You can say, its the next version of DateTime data type which has been there for years. So what’s the difference?
1. DateTime2 provides precision up to 7 digits. (nanosecond precision)
Try this:
select cast(&#8217;2010-04-14 12:00:00.347&#8242; as DATETIME) as [old_datetime] 
select cast(&#8217;2010-04-14 12:00:00.347&#8242; as DATETIME2) as [new_datetime2]
Observe [...]]]></description>
			<content:encoded><![CDATA[<p>Hi Friends,</p>
<p>DateTime2 is the new data type in SQL Server 2008. You can say, its the next version of DateTime data type which has been there for years. So what’s the difference?</p>
<p>1. DateTime2 provides precision up to 7 digits. (nanosecond precision)</p>
<p>Try this:</p>
<p><font color="#0080ff">select cast(&#8217;2010-04-14 12:00:00.347&#8242; as DATETIME) as [old_datetime] </font></p>
<p><font color="#0080ff">select cast(&#8217;2010-04-14 12:00:00.347&#8242; as DATETIME2) as [new_datetime2]</font></p>
<p>Observe the results:</p>
<p><a href="http://www.blogboard.in/images/DifferencebetweenDateTimeandDateTime2dat_109E4/image.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://www.blogboard.in/images/DifferencebetweenDateTimeandDateTime2dat_109E4/image_thumb.png" width="210" height="49" /></a> </p>
<p>This also means that the following conversion will fail for DateTime data type but will succeed for DateTime2.</p>
<p><font color="#0080ff">select cast(&#8217;2010-04-14 12:00:00.3473&#8242; as DATETIME) as [old_datetime] </font></p>
<p><font color="#0080ff">select cast(&#8217;2010-04-14 12:00:00.3473&#8242; as DATETIME2) as [new_datetime2]</font> </p>
<p>2. DateTime2 can store more date ranges.</p>
<p>Try this:</p>
<p><font color="#0080ff">CREATE TABLE #DateTest     <br />(Independence DATETime)</font></p>
<p><font color="#0080ff">INSERT INTO #DateTest VALUES (&#8217;01/01/1500&#8242;)</font></p>
<p>Got an error right?</p>
<p>Try this now…</p>
<p><font color="#0080ff">CREATE TABLE #DateTest2     <br />(Independence DATETime2)</font> </p>
<p><font color="#0080ff">INSERT INTO #DateTest2 VALUES (&#8217;01/01/1500&#8242;)</font></p>
<p>Works <img src='http://www.blogboard.in/AmitBansal/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>DateTime2 can store values from 1st January 0001 to 31st December 9999. But DateTIme could only store values from 01/01/1753 to 31/12/9999.</p>
<p>This means DateTime2 is ANSI compliant…. <img src='http://www.blogboard.in/AmitBansal/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>There are more intricacies that I can talk about, but sometime later…</p>
<p>Hope you enjoyed this.</p>
<p>Best Regards</p>
<p>Amit Bansal   <br /><a href="http://www.amitbansal.net">www.amitbansal.net</a>    <br /><a href="http://www.peoplewareindia.com">www.peoplewareindia.com</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.blogboard.in/AmitBansal/?feed=rss2&amp;p=194</wfw:commentRss>
		</item>
		<item>
		<title>Checkpoints in Integration Services (SQL Server 2005, SQL Server 2008, SQL Server 2008 R2)</title>
		<link>http://www.blogboard.in/AmitBansal/?p=192</link>
		<comments>http://www.blogboard.in/AmitBansal/?p=192#comments</comments>
		<pubDate>Tue, 13 Apr 2010 12:42:29 +0000</pubDate>
		<dc:creator>Amit Bansal</dc:creator>
		
		<category><![CDATA[SQL Server &amp; BI]]></category>

		<guid isPermaLink="false">http://www.blogboard.in/AmitBansal/?p=192</guid>
		<description><![CDATA[Hi Friends,
There are many occasions when our SSIS packages are run for hours – typical long running packages. The flow involves one Data Flow Task (DFT) calling another DFT. Have you come across scenarios when a long running DFT completes successfully but the next DFT fails due to some reason and you have to run [...]]]></description>
			<content:encoded><![CDATA[<p>Hi Friends,</p>
<p>There are many occasions when our SSIS packages are run for hours – typical long running packages. The flow involves one Data Flow Task (DFT) calling another DFT. Have you come across scenarios when a long running DFT completes successfully but the next DFT fails due to some reason and you have to run the package all over again after you have fixed the issue. Yes, I am talking about a mechanism where you provide restart points within your package and checkpoints exactly do that.</p>
<p>You can declare a checkpoint on any task as long as the package is configured to use checkpoints. When you run the package with checkpoints, SSIS tracks which tasks and containers have run successfully and updates the checkpoint file accordingly. Next time when you run the package again, it starts from where it failed, coool <img src='http://www.blogboard.in/AmitBansal/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> Thus, Checkpoints can help you avoid repeating time-consuming tasks.</p>
<p>For example, suppose that your package includes a Data Flow task followed by a Script task and then by an Execute SQL task. The Data Flow task extracts over one million rows of data from the data source, which takes a considerable amount of time to load. By default, if the package fails on the Script task, you must repeat the Data Flow task when you restart the package. However, if you configure checkpoints on the package, you only have to run those tasks that did not run successfully on the last execution, and you will not need to run the Data Flow task again.</p>
<p>There are 3 steps to implement checkpoints:</p>
<p>First, configure the package.</p>
<p>CheckpointFileName. This property specifies the path and file name of the   <br />checkpoint file.</p>
<p>CheckpointUsage: This property specifies whether the package uses a   <br />checkpoint file when it runs. (IfExists is the most common option) which means the package should use a checkpoint file only if one exists.    </p>
<p>SaveCheckpoints: This property specifies whether Integration Services saves    <br />checkpoints when the package runs. Set the property to True to save checkpoints.</p>
<p>Second, </p>
<p>To configure the checkpoints, set the FailPackageOnFailure property to True for   <br />each container or task that you want to configure as a checkpoint.</p>
<p>Third,</p>
<p>Don’t forget to configure appropriate security on the folder where you will store the checkpoint file.</p>
<p>That’s it. Happy checkpointing <img src='http://www.blogboard.in/AmitBansal/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.blogboard.in/AmitBansal/?feed=rss2&amp;p=192</wfw:commentRss>
		</item>
		<item>
		<title>SQL Server Indexes: What happens by default?</title>
		<link>http://www.blogboard.in/AmitBansal/?p=191</link>
		<comments>http://www.blogboard.in/AmitBansal/?p=191#comments</comments>
		<pubDate>Wed, 07 Apr 2010 19:50:23 +0000</pubDate>
		<dc:creator>Amit Bansal</dc:creator>
		
		<category><![CDATA[SQL Server &amp; BI]]></category>

		<guid isPermaLink="false">http://www.blogboard.in/AmitBansal/?p=191</guid>
		<description><![CDATA[Hi Friends,
1. Which type of Index (clustered or non-clustered) is created by default with CREATE INDEX statement?
2. Which type of Index (clustered or non-clustered) is created by default when you create a Primary Key constraint?
3. Which type of Index (clustered or non-clustered) is created by default when you create a Unique constraint?
Yes, these are basics, [...]]]></description>
			<content:encoded><![CDATA[<p>Hi Friends,</p>
<p>1. Which type of Index (clustered or non-clustered) is created by default with CREATE INDEX statement?</p>
<p>2. Which type of Index (clustered or non-clustered) is created by default when you create a Primary Key constraint?</p>
<p>3. Which type of Index (clustered or non-clustered) is created by default when you create a Unique constraint?</p>
<p>Yes, these are basics, but we all sometimes tend to wonder when suddenly asked about this <img src='http://www.blogboard.in/AmitBansal/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> SO here is a quick re-cap. Answers are below:</p>
<p>1. Non-clustered</p>
<p>2. Clustered</p>
<p>3. Non-clustered</p>
<p>Writing this at 1.26 am. Was feeling so sleepy so did not have the energy to write anything better. <img src='http://www.blogboard.in/AmitBansal/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> Goodnight friends.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.blogboard.in/AmitBansal/?feed=rss2&amp;p=191</wfw:commentRss>
		</item>
		<item>
		<title>Instant File Initialization in SQL Server</title>
		<link>http://www.blogboard.in/AmitBansal/?p=190</link>
		<comments>http://www.blogboard.in/AmitBansal/?p=190#comments</comments>
		<pubDate>Sat, 27 Mar 2010 14:22:21 +0000</pubDate>
		<dc:creator>Amit Bansal</dc:creator>
		
		<category><![CDATA[SQL Server &amp; BI]]></category>

		<guid isPermaLink="false">http://www.blogboard.in/AmitBansal/?p=190</guid>
		<description><![CDATA[Hi Friends,
What is the background process on the disk when you create a new database? The data and log files that have to be initialized for your database are initialized by overwriting any data left on the disk from previously delete files. What does this mean?
Suppose you have a 10 GB database. And you delete [...]]]></description>
			<content:encoded><![CDATA[<p>Hi Friends,</p>
<p>What is the background process on the disk when you create a new database? The data and log files that have to be initialized for your database are initialized by overwriting any data left on the disk from previously delete files. What does this mean?</p>
<p>Suppose you have a 10 GB database. And you delete the database. The database certainly gets deleted and the operation cannot be undone. The space is also released to the OS. But the data still resides on the disk unless it is overwritten by some other file. Yes, you can see that OS has 10 GB free space because that space is available to be used.</p>
<p>Now, suppose after deleting that 10 GB database, you immediately create another database of 5 GB, SQL Server will initialize the data files for the new database by filling the file with zeros. And this may take some time. This is called zero initialization.</p>
<p>What if you want to create the files instantly? You can enable instant initialization. When you enable instant initialization, the database is created instantly but the files are not filled with zeros, instead the zeroing out operation happens later when you start writing data to the files for the first time.</p>
<p>Instant file initialization is only available if the SQL Server (MSSQLSERVER) service account has been granted SE_MANAGE_VOLUME_NAME. Members of the Windows Administrator group have this right and can grant it to other users by adding them to the Perform Volume Maintenance Tasks security policy.</p>
<p>So this is a kind of availability feature where you can make the data files quickly available to client applications.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.blogboard.in/AmitBansal/?feed=rss2&amp;p=190</wfw:commentRss>
		</item>
		<item>
		<title>Online operations in SQL Server</title>
		<link>http://www.blogboard.in/AmitBansal/?p=188</link>
		<comments>http://www.blogboard.in/AmitBansal/?p=188#comments</comments>
		<pubDate>Thu, 18 Mar 2010 03:25:45 +0000</pubDate>
		<dc:creator>Amit Bansal</dc:creator>
		
		<category><![CDATA[SQL Server &amp; BI]]></category>

		<guid isPermaLink="false">http://www.blogboard.in/AmitBansal/?p=188</guid>
		<description><![CDATA[Hi Friends, this is just a quick tip / knowhow. Following is the scenario:
There is a large table (approx 50 GB) and you want to move this large table from one filegroup to another, for performance and manageability reasons. While the the move operation is in process, you want your users to continue accessing the [...]]]></description>
			<content:encoded><![CDATA[<p>Hi Friends, this is just a quick tip / knowhow. Following is the scenario:</p>
<p>There is a large table (approx 50 GB) and you want to move this large table from one filegroup to another, for performance and manageability reasons. While the the move operation is in process, you want your users to continue accessing the table? How do you do it?</p>
<p>You can use online operations in SQL Server. The trick here is to re-create the clustered index for that table on the other file group with ONLINE=ON.</p>
<p>FYI, there is no RECREATE DDL statement. You use the normal CREATE INDEX statement but you specify two clauses: DROP_EXISITING = ON, ONLINE=ON.</p>
<p>Since you are recreating the clustered index (clustered index being the data itself) on the new file group, complete data gets moved. DROP_EXISTING is to ensure that the index gets dropped on the original file group, ONLINE=ON ensure that users can continue accessing the table while moving operation is in process.</p>
<p>Online operations is one of the many high availability features in SQL Server, only available in Enterprise, Developer &amp; Evaluations editions. Read Books online to know more.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.blogboard.in/AmitBansal/?feed=rss2&amp;p=188</wfw:commentRss>
		</item>
	</channel>
</rss>
