Member Login
  • Products
    • Qure Suite
    • Qure Analyzer
    • Qure Optimizer
  • Downloads
    • Qure Analyzer (Free)
    • Qure Optimizer (Free Trial)
  • Support
    • Contact Support
    • Frequently Asked Questions
    • Limitations and Known Issues
  • Resources
    • SQL Server Articles
    • Whitepapers
    • Videos and Tutorials
    • Attend an Online Demo
    • inTune eMagazine
    • SQL Server Tuning Blog
  • Learn More
    • About Workload Tuning
    • SQL Server Tuning
    • SQL Server Performance
    • SQL Server Performance Tuning
    • Tips
  • Company
    • About DBSophic
    • Management
    • Partners
    • News
    • Success Stories
    • Customer Testimonials
    • Selected Customers
  • Contact Us
Subscribe to blog

SQL Server Tuning Blog

By SQL Server MVP Ami Levin

Subscribe to feed Latest Entries

Qure Analyzer V1.5 Beta Available

Posted by Ami Levin
Ami Levin
My name is Ami Levin, and I've been working with SQL Server for over 15 years. I
User is currently offline
on Tuesday, 15 May 2012
in SQL Server Tuning

About a year ago, we launched Qure Analyzer V1.0 (previously called Qure Workload Analyzer). Since then, we had thousands of downloads and received a lot of great feedback from the community. We did not rest... Your feedback and bug reports kept us busy improving, fixing and enhancing Qure Analyzer to keep its position as the best workload analysis tool available for SQL Server.

...
Tags: Announcements, Qure Analyzer
Hits: 404 0 Comments Continue reading

Variable Size Data Types and Memory Grants

Posted by Ami Levin
Ami Levin
Ami has not set their biography yet
User is currently offline
on Tuesday, 08 May 2012
in SQL Server Tuning

Yesterday, at our 118th Israeli SQL Server User Group Meeting, Adi Cohn delivered a session on common performance pitfalls. One of the issues he mentioned is something every DBA and database designer should be aware of. Many applications use overly large size limit for their variable data types. The reasoning in many cases is simply "Why not?" If you have a variable size column and you made the choice to use one of the VAR data types anyway, why limit the size? Even if you expect to have up to 300 characters in the 'comments' column for example, what is wrong with defining it as 3,000? it's just metadata, right? Wrong...

Although physically, storage will be exactly the same if you define your VARCHAR as 300 or 3,000, it can still make a huge impact on performance. SQL Server needs to estimate the work space that is required for each query and allocate it before the query begins to execute. For variable type columns, the estimation is that the data size will be 1/2 of the max size defined for the column. So if you have a column that is defined as 300 bytes, the allocation estimation will be 150 but for 3,000 - the estimate will be 1,500. On systems that experience memory pressure, this can make a huge difference in performance as your queries will wait for memory allocations, potentially significantly hurting performance in addition to the fact that needless memory will be allocated that could serve SQL Server for much more useful purposes.

...
Tags: common pitfalls, common pitfalls, data types, Performance
Hits: 31 0 Comments Continue reading

Index rebuilds and statistics updates

Posted by Ami Levin
Ami Levin
My name is Ami Levin, and I've been working with SQL Server for over 15 years. I
User is currently offline
on Wednesday, 25 April 2012
in SQL Server Tuning

An interesting discussion came up lately on the MVP private forums regarding index rebuilds, recompilation and statistics updates. Although the debate spanned too many aspects for me to cover here in this short post, I think that one important point should be emphasized as it might be making you do redundant work or even worse - unknowingly degrade the performance of your workload.

When you rebuild an index, a full scan of all index keys is performed. SQL Server uses this opportunity not only to rebuild the index, but also to update the related statistics. What is unique about this statistics update is the fact that it is equivalent to an update with the full-scan option. The default statistics sampling uses only a small fraction of the keys in order not to load your production server. A statistics based on a full scan of the data has the potential to be more accurate, therefore provide the query optimizer with better information, allowing it in turn to produce better performing execution plans for your workload queries. Also remember that a statistics update flushes all plans that use it from the procedure cache forcing a recompilation of the related queries.

...
Tags: Maintenance, Performance, Statistics
Hits: 285 0 Comments Continue reading

What’s new in SQL Server 2012 installation – T-SQL Tuesday #029

Posted by Ami Levin
Ami Levin
My name is Ami Levin, and I've been working with SQL Server for over 15 years. I
User is currently offline
on Tuesday, 10 April 2012
in SQL Server Tuning

TSQL2sDay logo
SQL Server 2012 brings with it so many new features and enhancements that it is futile to try and sum it up. Many articles and blog posts have been and will be written on the shiny new HA/DR, T-SQL, Columnstore and batch processing and numerous others. In this short post, I want to draw your attention to some less ‘shiny’ work that will affect your first interaction with SQL Server 2012 – the installation process.

...
Tags: SQL Server 2012, TSQL2sDay
Hits: 295 0 Comments Continue reading

And the New iPad Goes To...

Posted by Inbal
Inbal
Inbal has not set their biography yet
User is currently offline
on Tuesday, 03 April 2012
in SQL Server Tuning

We would like to thank everyone who participated in the Qure Analyzer New iPad raffle. We have received a lot of great entries, but unfortunately there can only be two winners.

And the winners are:

...
Tags: Untagged
Hits: 156 0 Comments Continue reading

SQL Server 2012 RTM has been officially announced!

Posted by Ami Levin
Ami Levin
My name is Ami Levin, and I've been working with SQL Server for over 15 years. I
User is currently offline
on Wednesday, 07 March 2012
in SQL Server Tuning

The long expected announcement has finally come...

Partners and customers can already download the evaluation version, GA to begin ~ April 1st.

...
Tags: Announcements, RTM, SQL Server 2012
Hits: 250 0 Comments Continue reading

Want to Win an iPad 3?

Posted by Inbal
Inbal
Inbal has not set their biography yet
User is currently offline
on Thursday, 01 March 2012
in SQL Server Tuning

A big thank-you to the thousands of SQL Server professionals that have downloaded Qure Analyzer, our free tool for analyzing and comparing trace files. Every day we hear of really cool Qure Analyzer success stories. But we’d love to hear more – and we’re giving away a brand new iPad3 (yes, THREE) in the process!

So tell us how Qure Analyzer has helped you, and you’ll be entered into the March 31st raffle.

...
Tags: iPad, Qure Analyzer
Recent comment in this post Show all comments
  • Inbal says #
    Just to clarify, we are raffling off the new iPad (regardless of the fact it isn't called iPad 3). We've received some really nic...
Hits: 764 1 Comment Continue reading

Miss the MVP Summit

Posted by Ami Levin
Ami Levin
My name is Ami Levin, and I've been working with SQL Server for over 15 years. I
User is currently offline
on Sunday, 26 February 2012
in SQL Server Tuning

This week, Microsoft is hosting the annual MVP Summit in Redmond - http://www.2012mvpsummit.com/. It's an amazing event where MVPs from all over the world and from all award categories join Microsoft staff for in-depth product and technology sessions, meet the program managers and do a lot of networking and even more so FUN!

I've been fortunate to attend two summits in the past, but this year I won't be going. I've been doing too much travelling recently and I'm coming the US at the end of March to speak at SQL Connections! I will deliver a session about "Physical Join Operators" and on the way back to Israel, I'll stop in London to deliver a session on "Clusters vs. Heaps" in SQL Bits X. Both events are official SQL Server 2012 Launch events in the US and UK respectively.

...
Tags: MVP
Hits: 304 0 Comments Continue reading

The Hidden Menace of CREATE INDEX

Posted by Ami Levin
Ami Levin
My name is Ami Levin, and I've been working with SQL Server for over 15 years. I
User is currently offline
on Thursday, 26 January 2012
in SQL Server Tuning

Are you experiencing performance bottlenecks? Is this query taking forever to complete? Most DBAs would start their resolution attempts with one of SQL Server’s most powerful features – Indexes. Indexes are such an effective mean that a small change could mean a world of a difference in performance. Most DBAs are also aware that adding indexes will cause some degradation of data modification operations as more indexes need to be updated to reflect the changes. However, few are aware that sometimes adding indexes can be a double-edged sword, with far reaching implications on performance, and not always for the best… This article will help you understand a hidden danger of adding more indexes, that can result in surprising effects on your workload. It tells a story of a production server that was brought to its knees with the addition of a single, innocent looking index.

Tags: Articles
Hits: 242 0 Comments

SQL Server Optimizer - Partial Aggregates

Posted by Ami Levin
Ami Levin
My name is Ami Levin, and I've been working with SQL Server for over 15 years. I
User is currently offline
on Thursday, 12 January 2012
in SQL Server Tuning

The SQL Server query optimizer is considered magical by many, even the top professionals. It is an extremely complicated piece of software whose intricate paths and logic are hard to perceive. In this article, the first in a series, We will try to tackle some of the query optimizer’s finer tricks to remove the magical aura and reveal the science underneath.

Tags: Articles
Hits: 255 0 Comments

Physical Join Operators in SQL Server

Posted by Ami Levin
Ami Levin
My name is Ami Levin, and I've been working with SQL Server for over 15 years. I
User is currently offline
on Wednesday, 21 December 2011
in SQL Server Tuning

Writing a query that joins several tables is easy, right? There are just a few major join types and their syntax is pretty straightforward and clear. So how come such a simple join be the source of so many headaches? Why does one query with a simple JOIN take forever and another, similar one a fraction of a second? If you’ve ever wondered what goes on under the covers and how SQL Server implements your joins, this article will help you get started.

Tags: Articles
Hits: 240 0 Comments

SQL Server Logical Reads – What do they really tell us?

Posted by Ami Levin
Ami Levin
My name is Ami Levin, and I've been working with SQL Server for over 15 years. I
User is currently offline
on Monday, 05 December 2011
in SQL Server Tuning

If you’ve ever used SQL Trace, STATISTICS IO or any other SQL Server monitoring, you should know what logical reads mean. Or do you? Logical reads server as one of the primary counters for evaluating a Query’s performance. The rule of thumb says “The lower the number of reads, the better the query performs”. I’m sure you’ve heard it before. But… did you notice that in some cases the exact opposite is true? Did you ever see a query improve dramatically in terms of duration and CPU but have it’s logical reads sky-rocket? If you want to understand the TRUE essence of logical reads and be able to tell when it is really a good indicator of performance, I highly recommend you to read this article.

Tags: Articles
Hits: 291 0 Comments

SQL Server 2012 RC0 available for download

Posted by Ami Levin
Ami Levin
My name is Ami Levin, and I've been working with SQL Server for over 15 years. I
User is currently offline
on Friday, 18 November 2011
in SQL Server Tuning

RC stands for Release Candidate, it’s a much more stable and ‘close to final’ version than the previous CTP versions.

Go get your copy from http://www.microsoft.com/download/en/details.aspx?id=28145

Tags: Announcements
Hits: 248 0 Comments

Get your SQL Server 2012 Wallpapers!

Posted by Ami Levin
Ami Levin
My name is Ami Levin, and I've been working with SQL Server for over 15 years. I
User is currently offline
on Wednesday, 16 November 2011
in SQL Server Tuning

This is soooo coooool...

...
Tags: SQL Graphics
Hits: 433 0 Comments Continue reading

SQL Server 2012 Availability Enhancements Part II

Posted by Ami Levin
Ami Levin
My name is Ami Levin, and I've been working with SQL Server for over 15 years. I
User is currently offline
on Sunday, 06 November 2011
in SQL Server Tuning

In a previous post, I’ve presented the enhancements to failover cluster instances. In the mean time, Microsoftannounced some radical changes to it’s licensing and editions scheme. In SQL Server 2012, the standard and BI editions will support basic failover clustering of up to 2 nodes.

AlwaysOn Availability Groups

...
Tags: HA/DR
Hits: 213 0 Comments Continue reading

Radical Changes in Licensing and Editions of SQL 2012

Posted by Ami Levin
Ami Levin
My name is Ami Levin, and I've been working with SQL Server for over 15 years. I
User is currently offline
on Saturday, 05 November 2011
in SQL Server Tuning

2 days ago, Microsoft announced the new licensing scheme and available editions for SQL 2012.

In a nutshell:

...
Tags: Announcements
Hits: 332 0 Comments Continue reading

SQL Server 2012 Availability Enhancements Part I

Posted by Ami Levin
Ami Levin
My name is Ami Levin, and I've been working with SQL Server for over 15 years. I
User is currently offline
on Monday, 31 October 2011
in SQL Server Tuning

Availability is one of the areas where Microsoft have felt a bit behind the competition. In this release, huge amounts of resources have been spent to catch up.

Although i’m about sum it up in 3 short paragraphs, don’t let that fool you. These are major revisions to the product and are of the highest importance. If you ever needed one of those, you’ll know it.

...
Tags: HA/DR
Hits: 272 0 Comments Continue reading

MVP Deep Dives II Project

Posted by Ami Levin
Ami Levin
My name is Ami Levin, and I've been working with SQL Server for over 15 years. I
User is currently offline
on Tuesday, 25 October 2011
in SQL Server Tuning

I’ve recently had the honor of having an article I’ve written being published in one of the most important projects of the SQL Server community IMHO, the MVP Deep Dives II book.

The original MVP Deep Dives book was published in November 2009, you can read more about the original project inthis blog post by Paul Randal, one of the forefathers of this amazing project.

...
Tags: Publications
Hits: 267 0 Comments Continue reading

SQL Server 2012 has been officially announced

Posted by Ami Levin
Ami Levin
My name is Ami Levin, and I've been working with SQL Server for over 15 years. I
User is currently offline
on Monday, 24 October 2011
in SQL Server Tuning

As you probably know already, earlier this month at the PASS Summit in Seattle, Microsoft has announced the official name for the next release of SQL Server, formerly code named “Denali”.

 

...
Tags: Announcements
Hits: 177 0 Comments Continue reading

Hello World!

Posted by Ami Levin
Ami Levin
My name is Ami Levin, and I've been working with SQL Server for over 15 years. I
User is currently offline
on Sunday, 24 July 2011
in SQL Server Tuning

A new SQL Server blog site was born today!

I hope you will find this site as beneficial and interesting at least as much as I intend to.

...
Tags: Announcements
Hits: 230 0 Comments Continue reading

Latest Posts

  • Qure Analyzer V1.5 Beta Available
    About a year ago, we launched Qure Analyzer V1.0 (previously called Qure Workload Analyzer). Si
    Read More
  • Variable Size Data Types and Memory Grants
    Yesterday, at our 118th Israeli SQL Server User Group Meeting, Adi Cohn delivered a session on commo
    Read More
  • Index rebuilds and statistics updates
    An interesting discussion came up lately on the MVP private forums regarding index rebuilds, recompi
    Read More

Tag Cloud

Announcements Articles MVP SQL Server 2012 Statistics common pitfalls Maintenance data types Qure Analyzer SQL Graphics Performance RTM HA/DR Performance Publications iPad TSQL2sDay Statistics

Blog Calendar

Loading ...
© 2011 DBSophic Ltd. All rights reserved. | Legal