Category: SQL Server

Catching SQL Server System Object Changes

Let's say you get your hands on a brand new version of SQL Server that you haven't played with before, and you want to know what system objects have changed - DMVs, DMFs, system stored procs, yadda yadda yadda. Sure, you could read the documentation - but ain't nobody got time for that, and they're probably leaving out the juicy stuff, right? Here's what I do (thanks to improvement suggestions from Kendra):

Read more about Catching SQL Server System Object Changes 4 comments — Join the discussion

An Introduction to SQL Server IO for Developers (video)

Developers frequently make a big mistake: they tune out on discussions of storage performance and IO. Don't fall into this trap! Understanding how storage impacts SQL Server performance helps you tune the right parts of your code and focus on what really matters. In this 30 minute video, Microsoft Certified Master Kendra Little demonstrates why developers need to understand the IO impact on writes and reads in SQL Server. She'll show you how simple configuration changes can sometimes save hundreds of hours of developer time.

Read more about An Introduction to SQL Server IO for Developers (video) 2 comments — Join the discussion

Six Scary SQL Surprises

In the Happy Database movies, SQL Server is benign and friendly, with no scary surprises lurking around the next corner. In these movies:

People work together
No-one but the DBA can make changes to production
People tell us in advance when they want to change something
When query performance degrades, we're notified about it
Third Party vendors only deploy good changes
Deployment scripts always work perfectly

Read more about Six Scary SQL Surprises 1 comment — Join the discussion
Performance Tuning

What’s Better: Disabling vs. Dropping Indexes?

In order to improve your applications and your databases, they will need to change over time. The structure of the database changes, the structure of the tables change, the data in the tables change, the application changes, the queries against the data change. Indexes that once helped performance now just bloat your database and cause extra work for inserts, updates, and deletes.

Read more about What’s Better: Disabling vs. Dropping Indexes? 52 comments — Join the discussion
T-SQL & Development

7 Things Developers Should Know About SQL Server

Hi.  I'm a former developer who's moved into database administration, and here's what I wish somebody would have told me when I got started.
7. SQL functions rarely perform well.
Good developers like to reuse code by putting it into functions, and then calling those functions from multiple places.  That's a great practice in the app tier, but it has huge performance drawbacks in the database tier.

Read more about 7 Things Developers Should Know About SQL Server 164 comments — Join the discussion

Best Practices + Table Partitioning: Merging Boundary Points

One of the many best practices for SQL Server's table partitioning feature is to create "extra" empty partitions around your data. This is explained in SQL Server Books Online in the page on altering a Partition Function: Always keep empty partitions at both ends of the partition range to guarantee that the partition split (before…

Read more about Best Practices + Table Partitioning: Merging Boundary Points Be the first to comment

The Okapis of SQL Server Indexes

They are elusive and hard to spot in the wild, but they exist: rare index options that can enhance the performance of your queries. If you have a solid knowledge of index basics and want to add to your collection, this is the session for you! In this 30-minute video, Jes will show you how filtered indexes, compressed indexes, and indexed views work and can improve performance.

Read more about The Okapis of SQL Server Indexes 11 comments — Join the discussion

SQL Server Table Partitioning Tutorial: Videos and Scripts

There's a secret to learning about SQL Server's table partitioning feature: you need to get your hands on some code and really play with it in a test environment.

In this tutorial, Kendra will walk you through test scripts that set up a sample table partitioning environment. These scripts demonstrate gotchas to look out for and the cool features that can dramatically change your database's performance.

Read more about SQL Server Table Partitioning Tutorial: Videos and Scripts 70 comments — Join the discussion

When a Query Isn’t Quite a Query

Databases exist to store data and answer questions about that data. The way we ask questions has to change based on the database itself - SQL changes between different RDBMS vendors. Things get even stranger when you venture outside the RDBMS world and start storing your data in Hive. Even though Hive Query Language (HiveQL) looks like SQL, there are some subtle but important differences to querying that first timers will want to keep in mind.

Read more about When a Query Isn’t Quite a Query 2 comments — Join the discussion

Choosing the Right SQL Server Version: It’s Trickier than You’d Think

It's finally time-- you've been given the thumbs up to upgrade to SQL Server 2012. You've selected your SQL Server Edition and worked out your licensing agreement. You've sized new hardware in production and sketched out your migration plan. You're ready to install developer edition in the test environment. You grab your installation media and...…

Read more about Choosing the Right SQL Server Version: It’s Trickier than You’d Think 39 comments — Join the discussion