how do we run DBCC commands?

We are new to MS SQL 2000.

Monday we had a power loss that shut down the servers (including SQL server). Since then the SQL seems to be sluggish, althought the server itself seems to be running fine. Most forums are saying to run a DBCC DBREINDEX (which we have never done but probably should since we have over 100,000 records in the table and we have been modifying and deleteing items for 8 months).

Question: How do you run DBCC commands?

Thanks for the help.
LVL 2
tdiopsAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

SireesCommented:
You can run in Query Analyser
0
tdiopsAuthor Commented:
is DBCC a command line tool?
0
SireesCommented:
Go to Tools-> Query Analyzer and select the database and run this

DBCC DBREINDEX(yourtablename , '')
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

SireesCommented:
>>is DBCC a command line tool? <<

It is a T-SQL command.
 
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
tdiopsAuthor Commented:
checking now....hold please.
0
SireesCommented:
When DBCC DBREINDEX is used to rebuild indexes, keep in mind that as the indexes on a table are being rebuilt, that the table becomes unavailable for use by your users.
0
tdiopsAuthor Commented:
Sirees, thanks a bunch! It worked. We needed that push in the right direction. Whole nee world now that we know where the QA is. Tnanks, the points are yours!
0
tdiopsAuthor Commented:
it did take them down for about 2 minutes while it was running, but the results so far are fantastic....was very sluggish before...now it is flying. Thanks
0
tdiopsAuthor Commented:
I am posting another question, less points but not as urgent. "How do I setup a Stored Procedure to run DBCC DBREINDEX and how often?" Please check it out. Thanks
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft SQL Server

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.