Solved

SQL report 'Disk Usage by Tables' Data and Indexes

Posted on 2013-11-16
3
463 Views
Last Modified: 2013-11-19
In the SQL report 'Disk Usage by Tables', there are two columns, data and Indexes.
Does the number on Indexes column decrease after rebuilding index?

When I searched online about rebuilding index, for SQL 2008 standard, indexing is 'offline'. Does it mean that, if I want to schedule rebuilding index, I have to schedule to take database offline before indexing or will be done as a part of the maintenance plan for rebuilding index?

When I ran rebuilding index in the past, I didn't have to schedule to take offline the database, but applications can't access database. I wonder if it's just ok to schedule a maintenance plan without talking database offline first.

Also, when I test reorganizing index, to end users, it's the same effect, applications can't access database. But articles in internet say, reorganizing index is 'online' operation. I wonder what's the  difference to the view of end users if both operation makes database hung.
0
Comment
Question by:crcsupport
  • 2
3 Comments
 
LVL 25

Assisted Solution

by:jogos
jogos earned 334 total points
ID: 39654469
The space used by an index will be better used, less fragmentation,  not necessary decrease.

If you use the online -option with your index rebuild the index maintenance has does not paralize your db, the process itself takes more time but your though
http://www.mssqltips.com/sqlservertip/2361/rebuilding-sql-server-indexes-using-the-online-option/
0
 
LVL 69

Assisted Solution

by:Scott Pletcher
Scott Pletcher earned 166 total points
ID: 39656609
>> indexing is 'offline'.  Does it mean that, if I want to schedule rebuilding index, I have to schedule to take database offline before indexing or will be done as a part of the maintenance plan for rebuilding index? ... I didn't have to schedule to take offline the database, but applications can't access database. <<

Neither.  You don't have to take the database offline and the entire db is not inaccessible.

The index currently being rebuilt is unavailable; the table on which that index is built will also be unavailable for DELETE, INSERT and/or UPDATE, at least.


Maintenance plans are terrible inefficient and can cause more performance issues because they always rebuild every index, even in the index is not fragmented at all.  You should move to using a script that checks fragmentation levels and selectively rebuilds only the indexes that need it.
0
 
LVL 25

Accepted Solution

by:
jogos earned 334 total points
ID: 39660323
A link to a solution that let you have more control on which indexes or fragmentation levels you want to target
http://ola.hallengren.com/
0

Featured Post

[Webinar] Disaster Recovery and Cloud Management

Learn from Unigma and CloudBerry industry veterans which providers are best for certain use cases and how to lower cloud costs, how to grow your Managed Services practice in IaaS clouds, and how to utilize public cloud for Disaster Recovery

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
Ever wondered why sometimes your SQL Server is slow or unresponsive with connections spiking up but by the time you go in, all is well? The following article will show you how to install and configure a SQL job that will send you email alerts includ…
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
Using examples as well as descriptions, and references to Books Online, show the different Recovery Models available in SQL Server and explain, as well as show how full, differential and transaction log backups are performed

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now