Solved

SQL report 'Disk Usage by Tables' Data and Indexes

Posted on 2013-11-16
3
462 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:ScottPletcher
ScottPletcher 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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
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…
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
Via a live example, show how to set up a backup for SQL Server using a Maintenance Plan and how to schedule the job into SQL Server Agent.

747 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

13 Experts available now in Live!

Get 1:1 Help Now