News Focus
News Focus
Followers 87
Posts 17174
Boards Moderated 15
Alias Born 02/16/2001

Re: Mattu post# 64383

Tuesday, 02/28/2006 9:35:17 AM

Tuesday, February 28, 2006 9:35:17 AM

Post# of 222454
Matt the site is slow in bringing up the message list, the headers load fast but just the message list is slow, so it must be a database issue. Please reindex the db. Here is the code:

******************************

USE DatabaseName --Enter the name of the database you want to reindex

DECLARE @TableName varchar(255)

DECLARE TableCursor CURSOR FOR
SELECT table_name FROM information_schema.tables
WHERE table_type = 'base table'

OPEN TableCursor

FETCH NEXT FROM TableCursor INTO @TableName
WHILE @@FETCH_STATUS = 0
BEGIN
DBCC DBREINDEX(@TableName,' ',90)
FETCH NEXT FROM TableCursor INTO @TableName
END

CLOSE TableCursor

DEALLOCATE TableCursor

******************************

Thanks in advance




Disclaimer: all my posts are my opinion

1,000,000 - 2,300,000 - 4,000,000

Discover What Traders Are Watching

Explore small cap ideas before they hit the headlines.

Join Today