Welcome to MSDN Blogs Sign in | Join | Help

Restarting...

After a long gap I will shortly start sharing my experiences around different technologies -> SQL server, Powershell, .Net. Hence the change in the Title of the blog!

 --Mandar

Windows Instant File Initialization

When a file is created or grows larger, that file is initialized by dumping zeros before the file gets used. This can affect performance, especially when you are performing backups/restores, create database, etc.

SQL Server 2005 now supports Windows Instant File Initialization which skips zeroing out data pages that can reduce the time when performing the above operations.

You must run SQL Server Service account under a Windows Account and assign "SE_MANAGE_VOLUME_NAME" special privilege to that account. This privilege is assigned to the Windows Administrators group by default. If you have system admin rights on the box, you can assign this privilege by adding the Windows account to the "Perform Volume Maintenance Tasks" security policy.

Windows Instant File Initialization is currently supported on Windows XP and Windows 2003 O/S and is applicable for data files only.

I saw this feature in Kimberly Tripp's talk at Techready and noticed huge performance gain in creation of large databases. More about it at Database File Initialization .

Database engine Tuning Advisor (DTA)

Database Engine Tuning Advisor in SQL Server 2005 replaces ITW (Index Tuning Wizard). Database Tuning Advisor has much improved and provides very good recommendations. Physical design structures now include: Clustered Indexes, Non-clustered indexes, Indexed views and Partitioning
 
It now has two interfaces one GUI and the other one Command line interface called DTA.exe which allows you to use DTA functionality in applications and scripts.
 
DTA can be used to fine-tune both SQL Server 2000 & SQL Server 2005 databases. Note:-Some of the SQL 2000 options are not supported.. please refer to BOL for more information.
 
Some of the new features included with DTA for fine-tuning SQL Server 2000 are:
 
  1. You can control how much time the Database Engine Tuning Advisor spends analyzing a workload. The quality of the recommendations improves as the amount of time increases.
  2. You can include workloads with: User-defined functions, batches that reference temporary tables, statements in triggers.
  3. Tune across multiple databases: You can tune a workload that involves multiple databases.
  4. Tuning log: Database Engine Tuning Advisor writes to the tuning log all events that it cannot tune and provides a message that gives a reason why the event could not be tuned. You can view the log during the tuning session to determine whether Database Engine Tuning Advisor can tune the events in your workload.
  5. What-if analysis: The Database Engine Tuning Advisor user-specified configuration feature supports what-if analysis. The user-specified feature allows you to specify a configuration of existing and hypothetical physical design structures in an XML input file. Then you can use Database Engine Tuning Advisor to evaluate the effects of these physical design structures without incurring the overhead of implementing the configuration before you begin tuning.
  6. More control over tuning options: Database Engine Tuning Advisor allows you to specify a greater variety of tuning options. For example, you can specify that Database Engine Tuning Advisor consider adding nonclustered indexes or keep all existing clustered indexes when it generates a recommendation.
  7. XML support: Database Engine Tuning Advisor can take an XML file as input or generate recommendations in XML.
 
Tune SQL Server 2005 using DTA:
If you want to tune SQL Server 2005 databases, Database Engine Tuning Advisor provides the following new tuning features in addition to those that are listed for SQL Server 2000 above:
 
  1. Partitioning recommendations: Database Engine Tuning Advisor can also recommend partitioning when appropriate to improve performance and manageability of large tables.
  2. Supports using a test server to reduce the production server tuning load: Database Engine Tuning Advisor tunes a database on a production server by offloading most of the tuning load onto a test server. It does this by using the production server hardware configuration information and without actually copying the data from the production server to the test server. Database Engine Tuning Advisor does not copy actual data from the production server to the test server. Instead, it only copies the metadata and necessary statistics.
  3. In addition to members of the sysadmin fixed server role, members of the db_owners fixed database role can use Database Engine Tuning Advisor to tune databases that they own.

My Tech-Ed sessions

I had a wonderful experience presenting this time at Tech-Ed India 2006. I presented two sessions: SQL Internals: Core Database Engine Changes in SQL Server 2005 and Getting the Best out of your SQL Box: Performance Tuning SQL Server 2005. It was so wonderful to talk on core topics of SQL server 2005. I presented at Pune (100+ attendees for my session) and Hyderabad (200+ attendees). My colleagues Arvind and Deepak presented in other cities: - Delhi, Mumbai, Chennai and Bangalore.
 
The feedback from the participants was excellent, encouraging me to present in many such sessions and sharing lot of such information by blogging and writing in forums. We had a wonderful Q&A session, especially at Hyderabad. I was asked for the presentations and scripts used during the sessions, the same should be available @ Tech-Ed site shortly or I will be posting them here in sometime. (*** I have modified this post and I have attached my TechEd ppts.***)
 
I will be posting more often now and will be sharing lot of info on SQL server!!
 
SQL server 2005 rocks!!!
 
--Mandar
 
Posted by Mandar Inamdar | 4 Comments

Attachment(s): TechEd Ppts.zip

Hello World!

It’s yet another Hello World!!

 

I am Mandar Inamdar and I work for Microsoft as a Consultant in MCS. I have total 9+ years of IT experience and within Microsoft for last 2 years, I have spent most of my time mastering skills on SQL server. I am thrilled with the arrival of SQL server 2005. These days I am busy with the customers helping them migrate on SQL server 2005! I have been involved in several SQL server performance tuning exercises, troubleshooting of SQL server with different customers in India.. Apart from that I have delivered numerous workshops on SQL server 2005 for Admin, Developers spanning from basic to advanced level including High Availability, Disaster Recovery, Performance monitoring, tuning, etc...

 

I will be speaking at TechEd 2006 in India and details will follow in my next blog!!!

 

--Mandar

 

 
Page view tracker