Index SQL Server Database

Index SQL Server Database

Index SQL Server 2008R2 Database

Every once in a while it’s a good idea to re-index your tables when you are using Microsoft SQL Server. Unlike MySQL sql server does not automatically re-arrange tables and put them in the proper order they should be, so it’s a manual process that can be scripted.

Open up SQL Server Management Studio

SQL Server reindex: Open up SQL Server Management Studio

go to the database that’s giving you trouble —let’s just call it SUSDB (Windows Update Services Database)

SQL Server reindex: go to the database that’s giving you trouble — let’s just call it SUSDB (Windows Update Services…

Expand the tables until you find the table in question in this case we will use tb.EventInstance (synchronizations in WSUS)

SQL Server reindex: Expand the tables until you find the table in question in this case we will use tb.EventInstance…

Expand Indexes, if we want to rebuild the indexes on one field, right click, and hit rebuild

SQL Server reindex: Expand Indexes, if we want to rebuild the indexes on one field, right click, and hit rebuild

if we want to rebuild the indexes on ALL fields Right Click Indexes Folder

SQL Server reindex: if we want to rebuild the indexes on ALL fields Right Click Indexes Folder

select Rebuild All

SQL Server reindex: select Rebuild All

as you can see, this table is fragmented, and needs to be re-indexed, hit OK

it should quickly go through and fix all indexes

SQL Server reindex: it should quickly go through and fix all indexes

That’s it!

 

To get hosted SQL Server visit www.zwiegnet.com/go to get started today

Related guides: Find Database Names Microsoft SQL Server | Fix Microsoft SQL Express Memory Issues

Leave a Reply

Your email address will not be published. Required fields are marked *