dbTalk Databases Forums  

SQL Server Indexes

microsoft.public.sqlserver.tools microsoft.public.sqlserver.tools


Discuss SQL Server Indexes in the microsoft.public.sqlserver.tools forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
QSIDeveloper
 
Posts: n/a

Default SQL Server Indexes - 06-10-2008 , 03:25 PM






We have a User table with 2million records in them, that has 4 indexes set
for faster Search. At an average we have 187k new records coming into the
table per day. We see every 4 or 5 days the queries we run on the table get
slower. However if we drop and re-create the index the querys are now quick.

How do we identify the issue which gets resolved by dropping and creating
the index. Is there an dbcc command that we can use to identify the issue?

Reply With Quote
  #2  
Old   
Russell Fields
 
Posts: n/a

Default Re: SQL Server Indexes - 06-10-2008 , 04:02 PM






QSIDeveloper,

Instead of dropping and recreating indexes, you probably just need to update
the statistics. Check your settings for automatic updating of statistics.
http://support.microsoft.com/kb/195565

If necessary, per that article, you might do specific updates.
http://technet.microsoft.com/en-us/l.../ms187348.aspx

UPDATE STATISTICS dbo.Table1Name
UPDATE STATISTICS dbo.Table2Name

RLF


"QSIDeveloper" <QSIDeveloper (AT) newsgroup (DOT) nospam> wrote

Quote:
We have a User table with 2million records in them, that has 4 indexes set
for faster Search. At an average we have 187k new records coming into the
table per day. We see every 4 or 5 days the queries we run on the table
get
slower. However if we drop and re-create the index the querys are now
quick.

How do we identify the issue which gets resolved by dropping and creating
the index. Is there an dbcc command that we can use to identify the issue?



Reply With Quote
  #3  
Old   
Russell Fields
 
Posts: n/a

Default Re: SQL Server Indexes - 06-10-2008 , 04:02 PM



QSIDeveloper,

Instead of dropping and recreating indexes, you probably just need to update
the statistics. Check your settings for automatic updating of statistics.
http://support.microsoft.com/kb/195565

If necessary, per that article, you might do specific updates.
http://technet.microsoft.com/en-us/l.../ms187348.aspx

UPDATE STATISTICS dbo.Table1Name
UPDATE STATISTICS dbo.Table2Name

RLF


"QSIDeveloper" <QSIDeveloper (AT) newsgroup (DOT) nospam> wrote

Quote:
We have a User table with 2million records in them, that has 4 indexes set
for faster Search. At an average we have 187k new records coming into the
table per day. We see every 4 or 5 days the queries we run on the table
get
slower. However if we drop and re-create the index the querys are now
quick.

How do we identify the issue which gets resolved by dropping and creating
the index. Is there an dbcc command that we can use to identify the issue?



Reply With Quote
  #4  
Old   
Russell Fields
 
Posts: n/a

Default Re: SQL Server Indexes - 06-10-2008 , 04:02 PM



QSIDeveloper,

Instead of dropping and recreating indexes, you probably just need to update
the statistics. Check your settings for automatic updating of statistics.
http://support.microsoft.com/kb/195565

If necessary, per that article, you might do specific updates.
http://technet.microsoft.com/en-us/l.../ms187348.aspx

UPDATE STATISTICS dbo.Table1Name
UPDATE STATISTICS dbo.Table2Name

RLF


"QSIDeveloper" <QSIDeveloper (AT) newsgroup (DOT) nospam> wrote

Quote:
We have a User table with 2million records in them, that has 4 indexes set
for faster Search. At an average we have 187k new records coming into the
table per day. We see every 4 or 5 days the queries we run on the table
get
slower. However if we drop and re-create the index the querys are now
quick.

How do we identify the issue which gets resolved by dropping and creating
the index. Is there an dbcc command that we can use to identify the issue?



Reply With Quote
  #5  
Old   
Russell Fields
 
Posts: n/a

Default Re: SQL Server Indexes - 06-10-2008 , 04:02 PM



QSIDeveloper,

Instead of dropping and recreating indexes, you probably just need to update
the statistics. Check your settings for automatic updating of statistics.
http://support.microsoft.com/kb/195565

If necessary, per that article, you might do specific updates.
http://technet.microsoft.com/en-us/l.../ms187348.aspx

UPDATE STATISTICS dbo.Table1Name
UPDATE STATISTICS dbo.Table2Name

RLF


"QSIDeveloper" <QSIDeveloper (AT) newsgroup (DOT) nospam> wrote

Quote:
We have a User table with 2million records in them, that has 4 indexes set
for faster Search. At an average we have 187k new records coming into the
table per day. We see every 4 or 5 days the queries we run on the table
get
slower. However if we drop and re-create the index the querys are now
quick.

How do we identify the issue which gets resolved by dropping and creating
the index. Is there an dbcc command that we can use to identify the issue?



Reply With Quote
  #6  
Old   
Russell Fields
 
Posts: n/a

Default Re: SQL Server Indexes - 06-10-2008 , 04:02 PM



QSIDeveloper,

Instead of dropping and recreating indexes, you probably just need to update
the statistics. Check your settings for automatic updating of statistics.
http://support.microsoft.com/kb/195565

If necessary, per that article, you might do specific updates.
http://technet.microsoft.com/en-us/l.../ms187348.aspx

UPDATE STATISTICS dbo.Table1Name
UPDATE STATISTICS dbo.Table2Name

RLF


"QSIDeveloper" <QSIDeveloper (AT) newsgroup (DOT) nospam> wrote

Quote:
We have a User table with 2million records in them, that has 4 indexes set
for faster Search. At an average we have 187k new records coming into the
table per day. We see every 4 or 5 days the queries we run on the table
get
slower. However if we drop and re-create the index the querys are now
quick.

How do we identify the issue which gets resolved by dropping and creating
the index. Is there an dbcc command that we can use to identify the issue?



Reply With Quote
  #7  
Old   
Russell Fields
 
Posts: n/a

Default Re: SQL Server Indexes - 06-10-2008 , 04:02 PM



QSIDeveloper,

Instead of dropping and recreating indexes, you probably just need to update
the statistics. Check your settings for automatic updating of statistics.
http://support.microsoft.com/kb/195565

If necessary, per that article, you might do specific updates.
http://technet.microsoft.com/en-us/l.../ms187348.aspx

UPDATE STATISTICS dbo.Table1Name
UPDATE STATISTICS dbo.Table2Name

RLF


"QSIDeveloper" <QSIDeveloper (AT) newsgroup (DOT) nospam> wrote

Quote:
We have a User table with 2million records in them, that has 4 indexes set
for faster Search. At an average we have 187k new records coming into the
table per day. We see every 4 or 5 days the queries we run on the table
get
slower. However if we drop and re-create the index the querys are now
quick.

How do we identify the issue which gets resolved by dropping and creating
the index. Is there an dbcc command that we can use to identify the issue?



Reply With Quote
  #8  
Old   
Russell Fields
 
Posts: n/a

Default Re: SQL Server Indexes - 06-10-2008 , 04:02 PM



QSIDeveloper,

Instead of dropping and recreating indexes, you probably just need to update
the statistics. Check your settings for automatic updating of statistics.
http://support.microsoft.com/kb/195565

If necessary, per that article, you might do specific updates.
http://technet.microsoft.com/en-us/l.../ms187348.aspx

UPDATE STATISTICS dbo.Table1Name
UPDATE STATISTICS dbo.Table2Name

RLF


"QSIDeveloper" <QSIDeveloper (AT) newsgroup (DOT) nospam> wrote

Quote:
We have a User table with 2million records in them, that has 4 indexes set
for faster Search. At an average we have 187k new records coming into the
table per day. We see every 4 or 5 days the queries we run on the table
get
slower. However if we drop and re-create the index the querys are now
quick.

How do we identify the issue which gets resolved by dropping and creating
the index. Is there an dbcc command that we can use to identify the issue?



Reply With Quote
  #9  
Old   
Russell Fields
 
Posts: n/a

Default Re: SQL Server Indexes - 06-10-2008 , 04:02 PM



QSIDeveloper,

Instead of dropping and recreating indexes, you probably just need to update
the statistics. Check your settings for automatic updating of statistics.
http://support.microsoft.com/kb/195565

If necessary, per that article, you might do specific updates.
http://technet.microsoft.com/en-us/l.../ms187348.aspx

UPDATE STATISTICS dbo.Table1Name
UPDATE STATISTICS dbo.Table2Name

RLF


"QSIDeveloper" <QSIDeveloper (AT) newsgroup (DOT) nospam> wrote

Quote:
We have a User table with 2million records in them, that has 4 indexes set
for faster Search. At an average we have 187k new records coming into the
table per day. We see every 4 or 5 days the queries we run on the table
get
slower. However if we drop and re-create the index the querys are now
quick.

How do we identify the issue which gets resolved by dropping and creating
the index. Is there an dbcc command that we can use to identify the issue?



Reply With Quote
  #10  
Old   
Russell Fields
 
Posts: n/a

Default Re: SQL Server Indexes - 06-10-2008 , 04:02 PM



QSIDeveloper,

Instead of dropping and recreating indexes, you probably just need to update
the statistics. Check your settings for automatic updating of statistics.
http://support.microsoft.com/kb/195565

If necessary, per that article, you might do specific updates.
http://technet.microsoft.com/en-us/l.../ms187348.aspx

UPDATE STATISTICS dbo.Table1Name
UPDATE STATISTICS dbo.Table2Name

RLF


"QSIDeveloper" <QSIDeveloper (AT) newsgroup (DOT) nospam> wrote

Quote:
We have a User table with 2million records in them, that has 4 indexes set
for faster Search. At an average we have 187k new records coming into the
table per day. We see every 4 or 5 days the queries we run on the table
get
slower. However if we drop and re-create the index the querys are now
quick.

How do we identify the issue which gets resolved by dropping and creating
the index. Is there an dbcc command that we can use to identify the issue?



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.