Quantcast
Channel: SQLPerformance.com » SQL optimizer
Browsing latest articles
Browse All 4 View Live

Image may be NSFW.
Clik here to view.

Best approaches for running totals – updated for SQL Server 2012

I see a lot of advice out there that says something along the lines of, "Change your cursor to a set-based operation; that will make it faster." While that can often be the case, it's not always true....

View Article



Image may be NSFW.
Clik here to view.

When the DRY principle doesn't apply : BITWISE operations in SQL Server

The "Don't Repeat Yourself" principle suggests that you should reduce repetition. This week I came across a case where DRY should be thrown out the window. There are other cases as well (for example,...

View Article

Image may be NSFW.
Clik here to view.

Conditional Order By

A common scenario in many client-server applications is allowing the end user to dictate the sort order of results. Some people want to see the lowest priced items first, some want to see the newest...

View Article

Image may be NSFW.
Clik here to view.

Performance impact of different error handling techniques

People wonder whether they should do their best to prevent exceptions, or just let the system handle them. I've seen several discussions where folks debate whether they should do whatever they can to...

View Article
Browsing latest articles
Browse All 4 View Live




Latest Images