Norb Home Page Norb Online Store Tools for SQL Server Download Tools for SQL Server Customer Support Our Happy Customers Contact Us
SQL Defrag Studio SQL Defrag Studio Home Performance Features Questions Gallery Specification Download Buy
boxtop
In-depth questions Ask the database experts Let's take a look at index fragmentation The solution doesn't get easier than this Get Download
Got a question about SQL Defrag Studio we haven't answered?
Please email our support team.
FAQs About SQL Defrag Studio What is Database Fragmentation?
From time to time, depending on how your data is used, you will need to reorganize the indexes on your tables. Indexes don't maintain their fill factor and become fragmented and user queries will suffer the effects of reduced performance.

The tables in your database become fragmented when data modifications are made, such as inserts, updates and deletes. These changes to your tables are not usually made equally among the rows, so the page fullness will vary according to the characteristics of the data, creating hot spots within your indexes.

Fragmentation happens when the logical order of the pages does not match the physical order of the pages, or when pages that are logically sequential are not located on the same extent. This means your indexes become less efficient and queries will take longer to return results to your users.

FAQs About SQL Defrag Studio How Does Fragmentation Affect My Databases?
When you run queries that scan part or all of a table, if you have fragmentation on that table, it causes additional page reads, slowing down parallel data scanning and reducing the performance and speed of your database.

For example, for SQL Server to retrieve all the pages of a fragmented table in their logical order, the disk drive's heads have to jump around on the physical disk, rather than performing just contiguous read-only operations. This 'latency' causes decreased performance on your database and frustration and complaints from your users. Using SQL Defrag Studio on a regular basis removes fragmentation and makes your databases run faster.

FAQs About SQL Defrag Studio Why is Fragmentation a Problem?
When fragmentation is present, and particularly if the fragmentation is heavy, perhaps on a table with data that is constantly being modified, users will find the performance of the table is lower than it should be and queries will be slower.

With internal fragmentation, if SQL Server needs to insert a new row on a full page, it will allocate a new page and split the full page so that half the rows are on one page and the other half on the other page.

Splitting can be an expensive I/O operation and leads to external defragmentation because more often than not, the new page will not be stored contiguous with the original page which has been split. The longer SQL Server takes in splitting pages, or jumping around the disk to return query results, the longer your users must wait.

This is how SQL Defrag Studio can help. By using the built-in scheduler you can plan defragmentation jobs to take place on heavily used tables as often as you need, and at times when users will not be affected.

FAQs About SQL Defrag Studio What is Defragmentation?
User modifications, such as inserts and deletes on the data in your tables, create pages splits. Performance will be lost as it takes SQL Server longer to return results of queries as these splits mean your indexes become less effective. Defragmentation is the process of putting your table indexes back in order and removing the page splits, so queries run at the speed you would expect and your users are not kept waiting.

Defragmentation should be a major part of your database maintenance plan to make sure frequently modified tables are regularly defragmented to keep them running at optimum speed. SQL Defrag Studio enables you to regularly defragment your database tables at times when your users are not using the database by creating scheduled defrag jobs. This keeps your databases performing at their optimum speed and your users will benefit from faster data access.

FAQs About SQL Defrag Studio What is SQL Defrag Studio?
SQL Defrag Studio is a defragmentation tool designed specifically for Microsoft SQL Server.

SQL Defrag Studio allows you to view all the indexes in a database, see how heavily fragmented each index is, and choose whether to defragment one index, a selection of indexes or all indexes.

And you won't have to write a single line of T-SQL either!

FAQs About SQL Defrag Studio Why Do I Need SQL Defrag Studio?
Because faster servers save you money.

Slow databases mean your customers have to wait. Frustrated customers mean lost business. And every employee's time is money, so if they're waiting for data from your database, your business is burning money. Therefore defragmenting your database on a regular basis saves you money.

Running SQL Defrag Studio regularly can save your company money by making your databases run faster. In these days of cost cutting and budget watching, SQL Defrag Studio can speed up your databases at a fraction of the cost of an expensive server upgrade. And you can schedule SQL Defrag Studio to run defragmentation jobs on your databases at a time when it will have zero impact on your users.

FAQs About SQL Defrag Studio What Does SQL Defrag Studio Do?
SQL Defrag Studio allows you to perform an analysis of, and then see the index health of all the tables in one database simultaneously, something you cannot easily do using SQL Server's T-SQL. Using T-SQL to defragment your tables means you have to run the code over and over again for every table in the database and every database on every server.

Using SQL Defrag Studio means you can select only those tables you want to defrag and it will carry out the defragmentation in one go. This means you do not have to manually write the code to analyze every table, or write a cursor to defragment them. SQL Defrag Studio automates the whole process, quickly and simply.

SQL Defrag Studio also analyzes the information for each table to prioritize those with heavy fragmentation. The color coded graphical display will show you at a single glance both problem tables and those needing less attention to help you with your defragmentation plan, which is especially important for larger databases.

FAQs About SQL Defrag Studio Is SQL Defrag Studio Safe to Use on My Live/Production Databases?
Yes.

Please be aware that you should always check with the data owner before defragmenting any database, as the process can be very disk intensive and will almost always affect performance to a noticeable degree on even lightly used production servers containing any significant amount of data.

Norb Technologies therefore recommends that you schedule or manually run defragmentation jobs outside of normal business hours, or at some other time when you will not impact upon users' ability to work.

Whilst your data should always be safe when using SQL Defrag Studio, as with any structural change to a database, Norb Technologies always recommends that you perform a backup before running any defrag job with SQL Defrag Studio. We also recommend you defrag your hard disk before running SQL Defrag Studio defragmentation jobs.

FAQs About SQL Defrag Studio Does SQL Defrag Studio Defragment System Tables?
No.

SQL Defrag Studio does not defragment any of the system tables, either in the master database or the system tables in user databases.

FAQs About SQL Defrag Studio At What Time of Day Should I Defragment?
We recommend that your defrag jobs take place during periods of low database usage. It is always best to avoid core business hours, especially if you have large database tables that are heavily fragmented through high usage.

Furthermore we suggest that you allow plenty of time for defragmentation so that SQL Defrag Studio can perform the operation thoroughly and completely. If you select the option to run a Full re-index then users will be unable to access data in tables which have clustered indexes as SQL Defrag Studio will create an exclusive lock on the tables.

You can quickly and easily set up defragmentation jobs to run overnight with SQL Defrag Studio's built-in scheduler.

FAQs About SQL Defrag Studio Will Users Be Locked Out of the Database During Defragmentation?
When you run defragmentation in SQL Defrag Studio you have the option of performing either an Online Re-index or a Full Re-index. If you choose to run the Online Re-index then SQL Server will not hold any long-term locks that cause blocks on running queries or updates, so users will still have access to the data.

If you decide to run the Full Re-index, which takes longer to do but is more thorough, then SQL Server will take an exclusive lock on tables with clustered indexes, but only a shared lock on non-clustered indexes. With an exclusive lock, your users have no access to the data, but with a shared lock users will be able to see the data but not make modifications.

FAQs About SQL Defrag Studio How Long Does Defragmentation Take?
Defragmentation time depends on how many databases you have, how many tables there are in each database and the size of each table. It will also vary according to the hardware on which the database is running, and how it is configured.

If you have a lot of modifications, such as record deletes or updates, then fragmentation is likely to be higher and may take longer on these tables.

After using SQL Defrag Studio on a regular basis you will soon learn how long it needs to perform defragmentation so that time slots can be allocated as part of your regular performance tuning plan.

FAQs About SQL Defrag Studio How Often Do I Need to Use SQL Defrag Studio?
Maintaining indexes still requires DBA intervention for the optimal performance of your database servers. How often do you have to maintain these indexes? That depends (like everything else in a database) on your system and how it is used. This is still an art and requires some practice, testing and careful notes over time.

Once you have built the indexes there is still work to be done. As your data sets grow over time, SQL Server will continue to rebuild indexes and move data around as efficiently as possible. This happens in a number of ways, but the result is that you will need to perform maintenance on your indexes over time despite all of the automatic functionality built into SQL Server.

So, how often you use SQL Defrag Studio depends on how often your databases become slow due to fragmentation. This is something you will need to work out for your individual server set-up, but we recommend you make the most of SQL Defrag Studio's ability to analyze all the tables in a chosen database and highlight those with high fragmentation.

This will probably guide you towards tables with heavy activity (inserts, updates and deletes) that are more often likely to suffer the slowness caused by fragmentation. This means you can use SQL Defrag Studio's scheduler to perform defragmentation as often as you need on selected tables in your database.

FAQs About SQL Defrag Studio Should I Defrag My Hard Disk Too?
Definitely!

This should be run before you use SQL Defrag Studio to defragment your database tables. Defragmenting your hard disk drive is always a good idea, but especially when the drive stores database files. From our experience it is easy to neglect this area when addressing database performance problems, as it is often assumed that databases are sized correctly when they are first created, or never grow. In reality, many databases are created using SQL Server's default settings which means that the .mdf file(s) in which the database is stored is continually being extended.

A hard disk defragmenter will re-arrange the file(s) which contain your database, so that they can be read with the minimum number of I/O operations, which in turn returns the maximum benefit from SQL Defrag Studio.

Here's an important tip to remember: to gain the best performance from SQL Defrag Studio, it is important that you always run disk defragmentation operations first.

The reason behind this is simple. If you defragment your database first and then defragment your hard disk, the order of the clustered index pages on disk will be changed as a natural side effect of the disk defragmentation process. This effectively undoes the index defragmentation performed by SQL Defrag Studio, meaning that you will have to run SQL Defrag Studio again.

Whilst none of this will harm your data, it will certainly require more time and effort, particularly on large databases, so is worth remembering before you start.

Top of Page


boxtop

boxtop
Performance Performance Features Features Questions Questions Gallery Galley
Super-charge your SQL Servers
and discover high peformance.
Read about the special features and
benefits of using SQL Defrag Studio.
In-depth questions to help you
understand index fragmentation.
Take the visual tour around this
gorgeous looking tool.
Performance Features and Benefits In-Depth Questions Picture Gallery
boxtop
boxtop
Products Help & Support Purchasing Partners Norb Technologies Community
SQL Defrag Studio 2009
SQL Enterprise Monitor 2009
TFS Accelerator 2009 Downloads
Live Web Chat
Raise Support Ticket
Online Store
My Account
Purchasing FAQs
MyLittleTools
Software Resellers
Software Partners
News
Contact Us
Happy Customers
Press Releases
Green Policy
SQL Server Club
Facebook
Twitter
boxtop
boxtop boxtop boxtop boxtop
Follow @NorbTech on Twitter Follow us on Twitter
@NorbTech
SQL Server Club Blogs SQL Server Club Blogs
www.sqlserverclub.net
Join us on Faceboook Join Our Facebook Group
Norb Facebook Group
Join us on Faceboook Get News as it Happens
SQL Server Club RSS
boxtop boxtop boxtop boxtop
© Copyright Norb Technologies 1999 - 2010 | Privacy Policy | Home