Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Reindex all tables routine
Message
General information
Forum:
Microsoft SQL Server
Category:
Other
Environment versions
SQL Server:
SQL Server 2005
Miscellaneous
Thread ID:
01513352
Message ID:
01513366
Views:
36
>>>>In my VFP application that works with VFP database I have an item on the main menu to reindex all tables (using SDT). Now as I am moving to SQL Server I am wondering, is it a common practice to have the same item in the VFP application menu? That is, to have the application to reindex SQL Server tables? Or this is more commonly done by a DBA?
>>>>
>>>>TIA.
>>>
>>>
>>>This is done by Maintenance plans defied by you or DBAs.
>>>If you (DBA) can't define such plan (because of Express editions of SQL Server) you could use DBCC commands.
>>
>>Did you mean running the SP to reindex from the application? What do you mean by DBCC commands?
>
>
>sp_MSForEachTable :-)
>
>EXEC YourDBName..sp_MSforeachtable 'DBCC DBREINDEX(''?'')'
>
I see. I think I'm using a different command to reindex, will need to check.
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform