<?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; ReIndexing Database Tables and Update Statistics on Tables</title>
	<atom:link href="http://blog.sqlauthority.com/2007/01/31/sql-server-reindexing-database-tables-and-update-statistics-on-tables/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.sqlauthority.com/2007/01/31/sql-server-reindexing-database-tables-and-update-statistics-on-tables/</link>
	<description>Notes of a SQL Server MVP and Database Administrator</description>
	<lastBuildDate>Sat, 21 Nov 2009 05:54:09 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Matt</title>
		<link>http://blog.sqlauthority.com/2007/01/31/sql-server-reindexing-database-tables-and-update-statistics-on-tables/#comment-57779</link>
		<dc:creator>Matt</dc:creator>
		<pubDate>Fri, 20 Nov 2009 18:30:31 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/01/31/reindexing-database-tables-and-update-statistics-on-tables/#comment-57779</guid>
		<description>Fact is, the more often you reindex the less fragmented your indexes will be, and the less fragmented they are the faster performance you&#039;ll see.  I reindex nightly and can afford a little downtime for my bigger tables, in the middle of the night.  This keeps my users happy in the daytime.

If outage is an issue then seriously look into the SQL Enterprise license, it allows online reindexing.  It&#039;s pricey, though, at around $20k/proc.</description>
		<content:encoded><![CDATA[<p>Fact is, the more often you reindex the less fragmented your indexes will be, and the less fragmented they are the faster performance you&#8217;ll see.  I reindex nightly and can afford a little downtime for my bigger tables, in the middle of the night.  This keeps my users happy in the daytime.</p>
<p>If outage is an issue then seriously look into the SQL Enterprise license, it allows online reindexing.  It&#8217;s pricey, though, at around $20k/proc.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Qasim</title>
		<link>http://blog.sqlauthority.com/2007/01/31/sql-server-reindexing-database-tables-and-update-statistics-on-tables/#comment-57699</link>
		<dc:creator>Qasim</dc:creator>
		<pubDate>Wed, 18 Nov 2009 13:30:32 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/01/31/reindexing-database-tables-and-update-statistics-on-tables/#comment-57699</guid>
		<description>HI

I am working on a database with more than 80 million of records. we are using sql server 2005 and have applied fulltext indexes to make search through the database.

Problem we are facing is that if there are new records in the database then after every week we have to reindex the database and also recreate the fulltext indexes for the database. We have setup the Fulltext Index catalogu to update automatically when some new records comes but still reindexing the tables of the database is too much expensive for us. Is there a way to around so that we can avoid this reindexing the table.

I do now know how to make a new post with question here on this website. I found this post related to my problem about reindex so i thought it would be good to post it here. Hope to get some solution.


Regards,
Qasim</description>
		<content:encoded><![CDATA[<p>HI</p>
<p>I am working on a database with more than 80 million of records. we are using sql server 2005 and have applied fulltext indexes to make search through the database.</p>
<p>Problem we are facing is that if there are new records in the database then after every week we have to reindex the database and also recreate the fulltext indexes for the database. We have setup the Fulltext Index catalogu to update automatically when some new records comes but still reindexing the tables of the database is too much expensive for us. Is there a way to around so that we can avoid this reindexing the table.</p>
<p>I do now know how to make a new post with question here on this website. I found this post related to my problem about reindex so i thought it would be good to post it here. Hope to get some solution.</p>
<p>Regards,<br />
Qasim</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ross McLoughlin</title>
		<link>http://blog.sqlauthority.com/2007/01/31/sql-server-reindexing-database-tables-and-update-statistics-on-tables/#comment-56676</link>
		<dc:creator>Ross McLoughlin</dc:creator>
		<pubDate>Tue, 13 Oct 2009 22:52:55 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/01/31/reindexing-database-tables-and-update-statistics-on-tables/#comment-56676</guid>
		<description>Thank you so much.  Worked like a charm.  My database is zipping along now!</description>
		<content:encoded><![CDATA[<p>Thank you so much.  Worked like a charm.  My database is zipping along now!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Robert Carnegie</title>
		<link>http://blog.sqlauthority.com/2007/01/31/sql-server-reindexing-database-tables-and-update-statistics-on-tables/#comment-56444</link>
		<dc:creator>Robert Carnegie</dc:creator>
		<pubDate>Mon, 05 Oct 2009 15:16:05 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/01/31/reindexing-database-tables-and-update-statistics-on-tables/#comment-56444</guid>
		<description>Hey Sylvain: If your database isn&#039;t broken (test with DBCC CHECKDB), maybe it just got bigger and fell over a cliff of performance, for instance how tempdb database is used in this process.  Or maybe tempdb is large and inefficient now and you need to fix that (be very careful, but restarting SQL Server may be all that you need).  Or maybe someone added some statistics or indexes that you don&#039;t know about.  You could consider whether you need all your statistics, since they don&#039;t come for nothing.  I assume that we are supposed to choose one or more recommendations from the Tuning Advisor tool, not -all- of the recommendations.

I also wonder why the time taken is - apart from the step up - the same every day.  Perhaps you are repeating the same task every day on all of your data?  You could change your database design to avoid that.  For instance, use a partitioned view or partitioned table.  Then you can have old data that you don&#039;t UPDATE STATISTICS on so often, only the new data.  That may be not a good solution for you, but I want to say that you have many different possible remedies.</description>
		<content:encoded><![CDATA[<p>Hey Sylvain: If your database isn&#8217;t broken (test with DBCC CHECKDB), maybe it just got bigger and fell over a cliff of performance, for instance how tempdb database is used in this process.  Or maybe tempdb is large and inefficient now and you need to fix that (be very careful, but restarting SQL Server may be all that you need).  Or maybe someone added some statistics or indexes that you don&#8217;t know about.  You could consider whether you need all your statistics, since they don&#8217;t come for nothing.  I assume that we are supposed to choose one or more recommendations from the Tuning Advisor tool, not -all- of the recommendations.</p>
<p>I also wonder why the time taken is &#8211; apart from the step up &#8211; the same every day.  Perhaps you are repeating the same task every day on all of your data?  You could change your database design to avoid that.  For instance, use a partitioned view or partitioned table.  Then you can have old data that you don&#8217;t UPDATE STATISTICS on so often, only the new data.  That may be not a good solution for you, but I want to say that you have many different possible remedies.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sylvain Dionne</title>
		<link>http://blog.sqlauthority.com/2007/01/31/sql-server-reindexing-database-tables-and-update-statistics-on-tables/#comment-56357</link>
		<dc:creator>Sylvain Dionne</dc:creator>
		<pubDate>Fri, 02 Oct 2009 19:39:56 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/01/31/reindexing-database-tables-and-update-statistics-on-tables/#comment-56357</guid>
		<description>Hi, sorry for my english!

do you know why the update statistic task has past from 10 min to more than 33 min from one day to another:
monday: 10min
Tuesday: 10min
Wednesday: 33min
Thursday: 33min
Friday: 33 min

Thanks
Sylvain Dionne</description>
		<content:encoded><![CDATA[<p>Hi, sorry for my english!</p>
<p>do you know why the update statistic task has past from 10 min to more than 33 min from one day to another:<br />
monday: 10min<br />
Tuesday: 10min<br />
Wednesday: 33min<br />
Thursday: 33min<br />
Friday: 33 min</p>
<p>Thanks<br />
Sylvain Dionne</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: amirek</title>
		<link>http://blog.sqlauthority.com/2007/01/31/sql-server-reindexing-database-tables-and-update-statistics-on-tables/#comment-56074</link>
		<dc:creator>amirek</dc:creator>
		<pubDate>Wed, 23 Sep 2009 04:54:46 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/01/31/reindexing-database-tables-and-update-statistics-on-tables/#comment-56074</guid>
		<description>Thanks. Option 1 works... &amp;(&#039;-&#039;)&amp;</description>
		<content:encoded><![CDATA[<p>Thanks. Option 1 works&#8230; &amp;(&#8216;-&#8217;)&amp;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Robert Carnegie</title>
		<link>http://blog.sqlauthority.com/2007/01/31/sql-server-reindexing-database-tables-and-update-statistics-on-tables/#comment-54176</link>
		<dc:creator>Robert Carnegie</dc:creator>
		<pubDate>Tue, 28 Jul 2009 21:14:41 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/01/31/reindexing-database-tables-and-update-statistics-on-tables/#comment-54176</guid>
		<description>I wonder what actual error can occur in this process?  Disk fills up, maybe.

In method 2, instead of a PRINT statement you could do something to log the fact that the command is about to be run, a table somewhere is the obvious idea, and immediately after running it, capture and store the error state - to a variable is a good way.  Something like this:

DECLARE @returnerror int, @start datetime;
SET @start = GETDATEUTC();
INSERT LogOfReindexesByTable (tableName, startTime) 
VALUES (@MyTable, @start);
DBCC DBREINDEX(@MyTable, &#039;&#039;, 80);
SET @returnerror = @@ERROR;
UPDATE LogOfReindexesByTable
SET endTime = GETDATEUTC(), errorCode = @returnerror
WHERE ( tableName = @MyTable AND startTime = @start );

In SQL Server 2005 you can use an ALTER TABLE statement for this operation instead of DBCC.</description>
		<content:encoded><![CDATA[<p>I wonder what actual error can occur in this process?  Disk fills up, maybe.</p>
<p>In method 2, instead of a PRINT statement you could do something to log the fact that the command is about to be run, a table somewhere is the obvious idea, and immediately after running it, capture and store the error state &#8211; to a variable is a good way.  Something like this:</p>
<p>DECLARE @returnerror int, @start datetime;<br />
SET @start = GETDATEUTC();<br />
INSERT LogOfReindexesByTable (tableName, startTime)<br />
VALUES (@MyTable, @start);<br />
DBCC DBREINDEX(@MyTable, &#8221;, 80);<br />
SET @returnerror = @@ERROR;<br />
UPDATE LogOfReindexesByTable<br />
SET endTime = GETDATEUTC(), errorCode = @returnerror<br />
WHERE ( tableName = @MyTable AND startTime = @start );</p>
<p>In SQL Server 2005 you can use an ALTER TABLE statement for this operation instead of DBCC.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Robert Carnegie</title>
		<link>http://blog.sqlauthority.com/2007/01/31/sql-server-reindexing-database-tables-and-update-statistics-on-tables/#comment-54125</link>
		<dc:creator>Robert Carnegie</dc:creator>
		<pubDate>Mon, 27 Jul 2009 10:19:22 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/01/31/reindexing-database-tables-and-update-statistics-on-tables/#comment-54125</guid>
		<description>Of course when I say &quot;¤ix&quot; I mean &quot;fix&quot;.  It&#039;s this keybo¼rd.</description>
		<content:encoded><![CDATA[<p>Of course when I say &#8220;¤ix&#8221; I mean &#8220;fix&#8221;.  It&#8217;s this keybo¼rd.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Robert Carnegie</title>
		<link>http://blog.sqlauthority.com/2007/01/31/sql-server-reindexing-database-tables-and-update-statistics-on-tables/#comment-54124</link>
		<dc:creator>Robert Carnegie</dc:creator>
		<pubDate>Mon, 27 Jul 2009 09:59:24 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/01/31/reindexing-database-tables-and-update-statistics-on-tables/#comment-54124</guid>
		<description>sp_MSforeachtable is described in many places as an &quot;undocumented stored procedure&quot;, which to me means they don&#039;t tell you if there are bugs in it, you&#039;re not even supposed to know it&#039;s there.  A phantom error message could be that kind of a bug, I think, whether or not there&#039;s a real error.

If you&#039;re anxious, this may be a prudent test for problems in your database: DBCC CHECKDB() WITH DATA_PURITY 
(The WITH part is only for SQL Server 2005 and for databases where it doesn&#039;t run by default, including databases that were created on SQL Server 2000, and if it runs without errors it becomes the default for that database.  It can also be reversed.)

Incidentally, databases from 2000 also really need DBCC UPDATEUSAGE done.  It may also ¤ix performance problems.  I forget whether I read that in Microsoft documentation, but it&#039;s genuine although apparently not written prominently enough in upgrade documentation for the colleague who upgraded some of our servers to be aware of it.

Otherwise, both versions do basically the same thing: repeatedly construct and execute a string containing a SQL statement referring to each table (user table?) in a database in turn - table1, table2, table3.

If you don&#039;t frequently add or remove tables in your database, you can use a similar design to construct and print out a command for each table in a database, and make a stored procedure containing all the commands.  That means you won&#039;t be doing the fancy stuff during your maintenance process, only the actual maintenance commands.</description>
		<content:encoded><![CDATA[<p>sp_MSforeachtable is described in many places as an &#8220;undocumented stored procedure&#8221;, which to me means they don&#8217;t tell you if there are bugs in it, you&#8217;re not even supposed to know it&#8217;s there.  A phantom error message could be that kind of a bug, I think, whether or not there&#8217;s a real error.</p>
<p>If you&#8217;re anxious, this may be a prudent test for problems in your database: DBCC CHECKDB() WITH DATA_PURITY<br />
(The WITH part is only for SQL Server 2005 and for databases where it doesn&#8217;t run by default, including databases that were created on SQL Server 2000, and if it runs without errors it becomes the default for that database.  It can also be reversed.)</p>
<p>Incidentally, databases from 2000 also really need DBCC UPDATEUSAGE done.  It may also ¤ix performance problems.  I forget whether I read that in Microsoft documentation, but it&#8217;s genuine although apparently not written prominently enough in upgrade documentation for the colleague who upgraded some of our servers to be aware of it.</p>
<p>Otherwise, both versions do basically the same thing: repeatedly construct and execute a string containing a SQL statement referring to each table (user table?) in a database in turn &#8211; table1, table2, table3.</p>
<p>If you don&#8217;t frequently add or remove tables in your database, you can use a similar design to construct and print out a command for each table in a database, and make a stored procedure containing all the commands.  That means you won&#8217;t be doing the fancy stuff during your maintenance process, only the actual maintenance commands.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Manish Valecha</title>
		<link>http://blog.sqlauthority.com/2007/01/31/sql-server-reindexing-database-tables-and-update-statistics-on-tables/#comment-54110</link>
		<dc:creator>Manish Valecha</dc:creator>
		<pubDate>Mon, 27 Jul 2009 03:39:50 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/01/31/reindexing-database-tables-and-update-statistics-on-tables/#comment-54110</guid>
		<description>Hi,

What is the difference between both Methods.</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>What is the difference between both Methods.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Manish Valecha</title>
		<link>http://blog.sqlauthority.com/2007/01/31/sql-server-reindexing-database-tables-and-update-statistics-on-tables/#comment-54108</link>
		<dc:creator>Manish Valecha</dc:creator>
		<pubDate>Mon, 27 Jul 2009 03:08:57 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/01/31/reindexing-database-tables-and-update-statistics-on-tables/#comment-54108</guid>
		<description>Hi,

I have created  the reindexing   job from 1st option of reindexing.
After executing the job I am getting the Job failure alert when I check with the steps Its completed successfully.
We always get result like this
DBCC execution completed. If DBCC printed error messages, contact your system administrator.
I believe jaob is failing due to above alert.
When I go with second option of reindexing which is through procedure.
Output is coming 
Command completed succesfully.
So we can assume Reindexing have been completed on all the tables or Is there any way to know about reindexing status whether it is completed or not...

Second question is above two method is also applicable for SQL 2000.  

Thanks in advance..</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I have created  the reindexing   job from 1st option of reindexing.<br />
After executing the job I am getting the Job failure alert when I check with the steps Its completed successfully.<br />
We always get result like this<br />
DBCC execution completed. If DBCC printed error messages, contact your system administrator.<br />
I believe jaob is failing due to above alert.<br />
When I go with second option of reindexing which is through procedure.<br />
Output is coming<br />
Command completed succesfully.<br />
So we can assume Reindexing have been completed on all the tables or Is there any way to know about reindexing status whether it is completed or not&#8230;</p>
<p>Second question is above two method is also applicable for SQL 2000.  </p>
<p>Thanks in advance..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: raul</title>
		<link>http://blog.sqlauthority.com/2007/01/31/sql-server-reindexing-database-tables-and-update-statistics-on-tables/#comment-53673</link>
		<dc:creator>raul</dc:creator>
		<pubDate>Mon, 13 Jul 2009 20:52:07 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/01/31/reindexing-database-tables-and-update-statistics-on-tables/#comment-53673</guid>
		<description>Great advice thanks!!!</description>
		<content:encoded><![CDATA[<p>Great advice thanks!!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steven</title>
		<link>http://blog.sqlauthority.com/2007/01/31/sql-server-reindexing-database-tables-and-update-statistics-on-tables/#comment-53288</link>
		<dc:creator>Steven</dc:creator>
		<pubDate>Sat, 27 Jun 2009 11:05:33 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/01/31/reindexing-database-tables-and-update-statistics-on-tables/#comment-53288</guid>
		<description>Hi,

Using SQL Server Express 2005
VB.NET 2005 app connecting to SQL database

Option 1 works beautifully for me, but only when I have SQL Server open.

As soon as I close the SQL session, my database performance falls to the floor again.

Any assistance could be greatly appreciated

Steven</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Using SQL Server Express 2005<br />
VB.NET 2005 app connecting to SQL database</p>
<p>Option 1 works beautifully for me, but only when I have SQL Server open.</p>
<p>As soon as I close the SQL session, my database performance falls to the floor again.</p>
<p>Any assistance could be greatly appreciated</p>
<p>Steven</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Simon</title>
		<link>http://blog.sqlauthority.com/2007/01/31/sql-server-reindexing-database-tables-and-update-statistics-on-tables/#comment-53096</link>
		<dc:creator>Simon</dc:creator>
		<pubDate>Thu, 18 Jun 2009 16:24:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/01/31/reindexing-database-tables-and-update-statistics-on-tables/#comment-53096</guid>
		<description>Option 1 worked for me.. Thanks Dave</description>
		<content:encoded><![CDATA[<p>Option 1 worked for me.. Thanks Dave</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Robert Carnegie</title>
		<link>http://blog.sqlauthority.com/2007/01/31/sql-server-reindexing-database-tables-and-update-statistics-on-tables/#comment-53014</link>
		<dc:creator>Robert Carnegie</dc:creator>
		<pubDate>Mon, 15 Jun 2009 10:29:46 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/01/31/reindexing-database-tables-and-update-statistics-on-tables/#comment-53014</guid>
		<description>I suppose you can re-index a copy of your online table and then rename the tables so that the new copy is now the online copy.  Downtime, but 0 seconds, and renaming objects has drawbacks - in 2000 at least, SQL code attached with the renamed object (create statement, triggers) will contain its original name...

Does Microsoft even make 24/7 products?  I think if you need 24/7 availability, you should build it from components that are not required to be 24/7 individually.  Switch to a backup server.  Do something like RAID hard disks do.

I&#039;m also pursuing how to update statistics with fullscan.  I&#039;m not sure if I need it but I want to know how to get it.</description>
		<content:encoded><![CDATA[<p>I suppose you can re-index a copy of your online table and then rename the tables so that the new copy is now the online copy.  Downtime, but 0 seconds, and renaming objects has drawbacks &#8211; in 2000 at least, SQL code attached with the renamed object (create statement, triggers) will contain its original name&#8230;</p>
<p>Does Microsoft even make 24/7 products?  I think if you need 24/7 availability, you should build it from components that are not required to be 24/7 individually.  Switch to a backup server.  Do something like RAID hard disks do.</p>
<p>I&#8217;m also pursuing how to update statistics with fullscan.  I&#8217;m not sure if I need it but I want to know how to get it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Murali</title>
		<link>http://blog.sqlauthority.com/2007/01/31/sql-server-reindexing-database-tables-and-update-statistics-on-tables/#comment-52928</link>
		<dc:creator>Murali</dc:creator>
		<pubDate>Thu, 11 Jun 2009 06:00:36 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/01/31/reindexing-database-tables-and-update-statistics-on-tables/#comment-52928</guid>
		<description>We are trying to search the 66 tables for a record
the structure of the table ( sales_fact)  like below

scenario, seg1, seg2, seg3,seg4, period,qty,amt,price 

and all the tables have similar structure . 

Unique clustered index was created on each table.

When we try to search a record from 66 tables it was taking approximatley 7 minutes. How to reduce  the time to run the query faster.

its a simple query like 

select top 1 from  sales_Fact
where seg1 = 111

like above , 66 sql statements should run and each table has got around 10million records.

I appreciate for quick reply

Thanks in advance

Murali</description>
		<content:encoded><![CDATA[<p>We are trying to search the 66 tables for a record<br />
the structure of the table ( sales_fact)  like below</p>
<p>scenario, seg1, seg2, seg3,seg4, period,qty,amt,price </p>
<p>and all the tables have similar structure . </p>
<p>Unique clustered index was created on each table.</p>
<p>When we try to search a record from 66 tables it was taking approximatley 7 minutes. How to reduce  the time to run the query faster.</p>
<p>its a simple query like </p>
<p>select top 1 from  sales_Fact<br />
where seg1 = 111</p>
<p>like above , 66 sql statements should run and each table has got around 10million records.</p>
<p>I appreciate for quick reply</p>
<p>Thanks in advance</p>
<p>Murali</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Murali</title>
		<link>http://blog.sqlauthority.com/2007/01/31/sql-server-reindexing-database-tables-and-update-statistics-on-tables/#comment-52927</link>
		<dc:creator>Murali</dc:creator>
		<pubDate>Thu, 11 Jun 2009 05:58:56 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/01/31/reindexing-database-tables-and-update-statistics-on-tables/#comment-52927</guid>
		<description>We are trying to search the 66 tables for a record
the structure of the table like below

scenario, seg1, seg2, seg3,seg4, period,qty,amt,price 

and all the tables have similar structure . 

Unique clustered index was created on each table.

When we try to search a record from 66 tables it was taking approximatley 7 minutes. How to reduce  the time to run the query faster.

its a simple query like</description>
		<content:encoded><![CDATA[<p>We are trying to search the 66 tables for a record<br />
the structure of the table like below</p>
<p>scenario, seg1, seg2, seg3,seg4, period,qty,amt,price </p>
<p>and all the tables have similar structure . </p>
<p>Unique clustered index was created on each table.</p>
<p>When we try to search a record from 66 tables it was taking approximatley 7 minutes. How to reduce  the time to run the query faster.</p>
<p>its a simple query like</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JG</title>
		<link>http://blog.sqlauthority.com/2007/01/31/sql-server-reindexing-database-tables-and-update-statistics-on-tables/#comment-52128</link>
		<dc:creator>JG</dc:creator>
		<pubDate>Wed, 20 May 2009 20:03:25 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/01/31/reindexing-database-tables-and-update-statistics-on-tables/#comment-52128</guid>
		<description>You rock You Rock You Rock

I work at an air force base and needed this command.</description>
		<content:encoded><![CDATA[<p>You rock You Rock You Rock</p>
<p>I work at an air force base and needed this command.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ram</title>
		<link>http://blog.sqlauthority.com/2007/01/31/sql-server-reindexing-database-tables-and-update-statistics-on-tables/#comment-52006</link>
		<dc:creator>Ram</dc:creator>
		<pubDate>Mon, 18 May 2009 12:48:32 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/01/31/reindexing-database-tables-and-update-statistics-on-tables/#comment-52006</guid>
		<description>Pinal -

I am running SQL 2005 STANDARD - database about 40 GB. i need to have the database online 24/7. If i do RE_INDEX slowing down the user (grows 2 GB more). so i decided to DEFRAG index. now my database grown to 110 GB. 

1st quest: Trucation--&gt;DEFRAG index--&gt; Full backp (No update statistics yet) after that i am doing hourly Transaction log backup. please suggest me the best way to handle this. 

Also i am getting &quot;[SQLSTATE 01000] (Message 4035)  A nonrecoverable I/O error occurred on file&quot; on Transaction Log backup. please help.thanks</description>
		<content:encoded><![CDATA[<p>Pinal -</p>
<p>I am running SQL 2005 STANDARD &#8211; database about 40 GB. i need to have the database online 24/7. If i do RE_INDEX slowing down the user (grows 2 GB more). so i decided to DEFRAG index. now my database grown to 110 GB. </p>
<p>1st quest: Trucation&#8211;&gt;DEFRAG index&#8211;&gt; Full backp (No update statistics yet) after that i am doing hourly Transaction log backup. please suggest me the best way to handle this. </p>
<p>Also i am getting &#8220;[SQLSTATE 01000] (Message 4035)  A nonrecoverable I/O error occurred on file&#8221; on Transaction Log backup. please help.thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joshua</title>
		<link>http://blog.sqlauthority.com/2007/01/31/sql-server-reindexing-database-tables-and-update-statistics-on-tables/#comment-51357</link>
		<dc:creator>Joshua</dc:creator>
		<pubDate>Tue, 28 Apr 2009 11:05:08 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/01/31/reindexing-database-tables-and-update-statistics-on-tables/#comment-51357</guid>
		<description>hi there, 

i am running MS SQL 2005, the problem is i always encounter this error 

&quot;The instance of the SQL Server Database Engine cannot obtain a LOCK resource at this time. Rerun your statement when there are fewer active users. Ask the database administrator to check the lock and memory configuration for this instance, or to check for long-running transactions.&quot; 

do i need to defragment or reindex the database? how am i going to do that? 

is there a way i can reindex/defrag the whole database or do i need to reindex/defrag it per table?

size of database is 120GB - Hard Disk Size is 410GB
Memory used is 9+GB - Memory Size is 26GB
HP Proliant DL380 G5 quad core

we&#039;re using SAP Business One application Patch Version PL45.</description>
		<content:encoded><![CDATA[<p>hi there, </p>
<p>i am running MS SQL 2005, the problem is i always encounter this error </p>
<p>&#8220;The instance of the SQL Server Database Engine cannot obtain a LOCK resource at this time. Rerun your statement when there are fewer active users. Ask the database administrator to check the lock and memory configuration for this instance, or to check for long-running transactions.&#8221; </p>
<p>do i need to defragment or reindex the database? how am i going to do that? </p>
<p>is there a way i can reindex/defrag the whole database or do i need to reindex/defrag it per table?</p>
<p>size of database is 120GB &#8211; Hard Disk Size is 410GB<br />
Memory used is 9+GB &#8211; Memory Size is 26GB<br />
HP Proliant DL380 G5 quad core</p>
<p>we&#8217;re using SAP Business One application Patch Version PL45.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
