Hi,Friend. I'd like to display step for work about Rebuilding index or Reindex SQL Server 2005,2008 . I have created that to two method for that Capture Screen and Command Line.
Capture Screen
1. Log in to SQL Server .
2. Click the Database Folder and then select the Database Name for reindex and select Table Name and choose the Indexs same picture below.
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEigScU8NvmNbmGWOGHWH5GDD2TXwJK-L9ES3l38XnjhQKONVbw3iKHiZo2EmanjETtM_IwJH3BIanno4L8xsJtDMsyjadkierZG0OgMi4dqp-FiFfH6NQLVZC5Ik7s1Vpniar0KNStnqYc/s320/1.gif)
3. Right Click at Indexs picture below
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgmm9Plvz8WhtZSY0ijiJ6Wc1jM5yjTbnyrfhKoKb80x3TplF0RI_W72TNT1vZ7lxs99f4SYZSDilQd8KM1Gzo9l_V-iutOXfmYOsZToeMs0FD1blyLmMkCn_cJjbzj5rthKBuLrjy7iKI/s320/2.gif)
4.Waiting untill the Reindexs Forms display.
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiU7nlzp8nQOlT-E39BO5X_BtCqVi9DJOSBrqrFShXnp4spmeYsMkciTcJpjPGFsJF0OzNuSJLfSIADABHZE5jomlqIw9UjOoCuT3KQnzRdtjgHro8Zo9V2Wf5RP40RBNjsLaJQjhNO9rg/s320/3.gif)
5. Click OK
Finish to Rebuild the index or Reindex sql 2005 , Easy Right ?
May be peple need to command line for Rebuild the index or Reindex sql 2005 because That is very fast for work . I think so . you can follow by below.
Command Line or SQL Script
use demo -- Change Database name
--All first DBCC CHECKDB
exec sp_dboption N'demo', N'single', N'true' --Set database option to single user
DBCC DBREINDEX ('tpstsalhd', '', 70) -- Select the Table name for that.
exec sp_dboption N'demo', N'single', N'False' --Set database option to Multi user
--Finally Check Result Run Sql Script Below.
dbcc showcontig(tpstsalhd)
Thank you for your visit my blog.
การ Reindex คืออะไร ทำไปทำไม นั้นผมอธิบายไงดี อันดีในความเข้าใจจากประสบการณ์
ผม ว่ามันก็เหมือนกับครั้งหนึ่งเรามีการจัดหนังสือในห้องสมุดไว้เป็นหมวดหมู่ อย่างดีแต่เปิดไปนานก็มีทั้งหนังสือใหม่ และหนังสือเก่าที่อ่านแล้วเก็บไม่เรียบร้อยฉะนั้นก็ต้องกมีการจัดเรียงกัน ใหม่เพื่อให้เวลาที่เราคนหา(Query) ทำได้เร็วขึ้นครับ นั้นก็เหมือนกันกับ ฐานข้อมูลเราต้องมีการจัดข้อมูลให้เป็นหมวดหมู่เหมือนกัน
ฉะนั้น เราจำเป็นต้องทำถ้าเราอยากให้การค้นหาข้อมูลเร็วขึ้น ครับ
สามารถหาข้อมูลเพิ่มเติมได้ จาก SQL Programming หัวข้อเรือง Database Turning.
No comments:
Post a Comment