<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: SQL SERVER &#8211; Disable CHECK Constraint &#8211; Enable CHECK Constraint</title>
	<atom:link href="http://blog.sqlauthority.com/2009/11/12/sql-server-disable-check-constraint-enable-check-constraint/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.sqlauthority.com/2009/11/12/sql-server-disable-check-constraint-enable-check-constraint/</link>
	<description>Personal Notes of Pinal Dave</description>
	<lastBuildDate>Sun, 12 Feb 2012 09:22:39 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: SQL SERVER &#8211; Various Ways to Create Constraints &#8211; Quiz &#8211; Puzzle &#8211; 17 of 31 &#171; SQL Server Journey with SQL Authority</title>
		<link>http://blog.sqlauthority.com/2009/11/12/sql-server-disable-check-constraint-enable-check-constraint/#comment-239875</link>
		<dc:creator><![CDATA[SQL SERVER &#8211; Various Ways to Create Constraints &#8211; Quiz &#8211; Puzzle &#8211; 17 of 31 &#171; SQL Server Journey with SQL Authority]]></dc:creator>
		<pubDate>Wed, 18 Jan 2012 01:31:48 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=7198#comment-239875</guid>
		<description><![CDATA[[...] Creating Table Creating Primary Key, Foreign Key and Default Constraint How to ALTER CONSTRAINT Disable CHECK Constraint – Enable CHECK Constraint Query to Display Foreign Key Relationships and Name of the Constraint for Each Table in Database [...]]]></description>
		<content:encoded><![CDATA[<p>[...] Creating Table Creating Primary Key, Foreign Key and Default Constraint How to ALTER CONSTRAINT Disable CHECK Constraint – Enable CHECK Constraint Query to Display Foreign Key Relationships and Name of the Constraint for Each Table in Database [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Golden</title>
		<link>http://blog.sqlauthority.com/2009/11/12/sql-server-disable-check-constraint-enable-check-constraint/#comment-233537</link>
		<dc:creator><![CDATA[Golden]]></dc:creator>
		<pubDate>Sun, 08 Jan 2012 13:21:22 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=7198#comment-233537</guid>
		<description><![CDATA[I am updating the tables in 13 databases on my one application. Many of them reffering to each other. I have disabled the constraints, updated tables and enabled. 

Just I want to know if any impact on database health by doing this changes in constraints.

Response required.

Thanks
AKHILESH]]></description>
		<content:encoded><![CDATA[<p>I am updating the tables in 13 databases on my one application. Many of them reffering to each other. I have disabled the constraints, updated tables and enabled. </p>
<p>Just I want to know if any impact on database health by doing this changes in constraints.</p>
<p>Response required.</p>
<p>Thanks<br />
AKHILESH</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Senthil Kumar K.S</title>
		<link>http://blog.sqlauthority.com/2009/11/12/sql-server-disable-check-constraint-enable-check-constraint/#comment-218427</link>
		<dc:creator><![CDATA[Senthil Kumar K.S]]></dc:creator>
		<pubDate>Thu, 15 Dec 2011 11:24:32 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=7198#comment-218427</guid>
		<description><![CDATA[How to check status of column constraint ( enabled or disabled)]]></description>
		<content:encoded><![CDATA[<p>How to check status of column constraint ( enabled or disabled)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Senthil Kumar K.S</title>
		<link>http://blog.sqlauthority.com/2009/11/12/sql-server-disable-check-constraint-enable-check-constraint/#comment-218417</link>
		<dc:creator><![CDATA[Senthil Kumar K.S]]></dc:creator>
		<pubDate>Thu, 15 Dec 2011 11:02:04 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=7198#comment-218417</guid>
		<description><![CDATA[How to check status of column constraints.(Enable or disabled).]]></description>
		<content:encoded><![CDATA[<p>How to check status of column constraints.(Enable or disabled).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jayaram</title>
		<link>http://blog.sqlauthority.com/2009/11/12/sql-server-disable-check-constraint-enable-check-constraint/#comment-164633</link>
		<dc:creator><![CDATA[Jayaram]]></dc:creator>
		<pubDate>Fri, 02 Sep 2011 05:30:01 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=7198#comment-164633</guid>
		<description><![CDATA[How to maintain check constraint with two databases say db1 and db2?]]></description>
		<content:encoded><![CDATA[<p>How to maintain check constraint with two databases say db1 and db2?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: KumarHarsh</title>
		<link>http://blog.sqlauthority.com/2009/11/12/sql-server-disable-check-constraint-enable-check-constraint/#comment-91713</link>
		<dc:creator><![CDATA[KumarHarsh]]></dc:creator>
		<pubDate>Thu, 07 Oct 2010 11:07:50 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=7198#comment-91713</guid>
		<description><![CDATA[Hi,
Suppose,I disable the index.
Perform some task
Again I enable it.
when I enable the index again whether the data will be reindexed or it will remain same.
If it gets reindexed how long will it take to reindex for 13 crore / 130 million record.


Thanks.]]></description>
		<content:encoded><![CDATA[<p>Hi,<br />
Suppose,I disable the index.<br />
Perform some task<br />
Again I enable it.<br />
when I enable the index again whether the data will be reindexed or it will remain same.<br />
If it gets reindexed how long will it take to reindex for 13 crore / 130 million record.</p>
<p>Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Niraj Singh Pawar</title>
		<link>http://blog.sqlauthority.com/2009/11/12/sql-server-disable-check-constraint-enable-check-constraint/#comment-80913</link>
		<dc:creator><![CDATA[Niraj Singh Pawar]]></dc:creator>
		<pubDate>Tue, 20 Jul 2010 11:08:32 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=7198#comment-80913</guid>
		<description><![CDATA[how to use Check constraint in If conditions]]></description>
		<content:encoded><![CDATA[<p>how to use Check constraint in If conditions</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ryan Anthony</title>
		<link>http://blog.sqlauthority.com/2009/11/12/sql-server-disable-check-constraint-enable-check-constraint/#comment-57560</link>
		<dc:creator><![CDATA[Ryan Anthony]]></dc:creator>
		<pubDate>Thu, 12 Nov 2009 21:15:29 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=7198#comment-57560</guid>
		<description><![CDATA[You don&#039;t need to use With Check when re-enabling a check constraint, it accomplishes something entirely different than re-enabling the check constraint.  By default for Alter Table, With Nocheck is used for re-enabling check constraints.  Specifying With Check looks at all existing data to make sure it satisfies the check constraint.  If you can safely assume that it already does, then you don&#039;t need to specify that.

I disable check constraints to get replicating dbs that have gotten out of sync back in sync.]]></description>
		<content:encoded><![CDATA[<p>You don&#8217;t need to use With Check when re-enabling a check constraint, it accomplishes something entirely different than re-enabling the check constraint.  By default for Alter Table, With Nocheck is used for re-enabling check constraints.  Specifying With Check looks at all existing data to make sure it satisfies the check constraint.  If you can safely assume that it already does, then you don&#8217;t need to specify that.</p>
<p>I disable check constraints to get replicating dbs that have gotten out of sync back in sync.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brian Tkatch</title>
		<link>http://blog.sqlauthority.com/2009/11/12/sql-server-disable-check-constraint-enable-check-constraint/#comment-57553</link>
		<dc:creator><![CDATA[Brian Tkatch]]></dc:creator>
		<pubDate>Thu, 12 Nov 2009 14:19:29 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=7198#comment-57553</guid>
		<description><![CDATA[@Dave so you disabled the NOT NULL CONSTRAINT?

@Imran So you disable the FK.

I think FK is the most likely CONSTRAINT to be disabled, and NOT NULL being a close second. A CHECK CONSTRAINT (not the one for NOT NULL which although is a CHECK CONSTRAINT, is specified differently) is not really disabled too often.

It would be interesting to see what types a CHECK CONSTRAINT are actually used, and which types are disabled.]]></description>
		<content:encoded><![CDATA[<p>@Dave so you disabled the NOT NULL CONSTRAINT?</p>
<p>@Imran So you disable the FK.</p>
<p>I think FK is the most likely CONSTRAINT to be disabled, and NOT NULL being a close second. A CHECK CONSTRAINT (not the one for NOT NULL which although is a CHECK CONSTRAINT, is specified differently) is not really disabled too often.</p>
<p>It would be interesting to see what types a CHECK CONSTRAINT are actually used, and which types are disabled.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Imran Mohammed</title>
		<link>http://blog.sqlauthority.com/2009/11/12/sql-server-disable-check-constraint-enable-check-constraint/#comment-57534</link>
		<dc:creator><![CDATA[Imran Mohammed]]></dc:creator>
		<pubDate>Thu, 12 Nov 2009 04:20:07 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=7198#comment-57534</guid>
		<description><![CDATA[I remember, We had a huge database that collects statistics around 45 GB and we had very less space on server, it created many problems.

Finally one fine day, they asked me if I could help, they said, they want to clean historical data. Vendor suggested them to use front End to Purge (Delete) data. It was like tons of records... and would take for ever more than a day, to purge data, because you could purge very few records at one time.

I studied their database and came to conclusion that there are only 3 tables that had huge amount of data... and other tables were referring to them. 

I gave them a solution to Truncate those 3 tables. For that I had to drop foreign key constraint. I dropped Forign Key Constraint, Truncated tables and built Foreign Key constraint again. 

Boom... 3 seconds... Database size came to less than 0.5 GB.

Result: I was awarded DBA of the week :)

Note: I did enough research on the database, and I ensured that truncating data from 3 tables wont effect application. 

~ IM.]]></description>
		<content:encoded><![CDATA[<p>I remember, We had a huge database that collects statistics around 45 GB and we had very less space on server, it created many problems.</p>
<p>Finally one fine day, they asked me if I could help, they said, they want to clean historical data. Vendor suggested them to use front End to Purge (Delete) data. It was like tons of records&#8230; and would take for ever more than a day, to purge data, because you could purge very few records at one time.</p>
<p>I studied their database and came to conclusion that there are only 3 tables that had huge amount of data&#8230; and other tables were referring to them. </p>
<p>I gave them a solution to Truncate those 3 tables. For that I had to drop foreign key constraint. I dropped Forign Key Constraint, Truncated tables and built Foreign Key constraint again. </p>
<p>Boom&#8230; 3 seconds&#8230; Database size came to less than 0.5 GB.</p>
<p>Result: I was awarded DBA of the week :)</p>
<p>Note: I did enough research on the database, and I ensured that truncating data from 3 tables wont effect application. </p>
<p>~ IM.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave</title>
		<link>http://blog.sqlauthority.com/2009/11/12/sql-server-disable-check-constraint-enable-check-constraint/#comment-57530</link>
		<dc:creator><![CDATA[Dave]]></dc:creator>
		<pubDate>Thu, 12 Nov 2009 02:23:13 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=7198#comment-57530</guid>
		<description><![CDATA[I have disabled FKs in the past for purposes of data loading, where data coming into constrained column was going to have nulls.

After loading and cleaning the constraints were re-enabled.]]></description>
		<content:encoded><![CDATA[<p>I have disabled FKs in the past for purposes of data loading, where data coming into constrained column was going to have nulls.</p>
<p>After loading and cleaning the constraints were re-enabled.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

