Category: SQL Server

T-SQL & Development

Windowing Function Examples for SQL Server

Aggregations and grouping can be a pain in the rear for the novice SQL developer. Way back in 2003, the ANSI/ISO standards people figured this out and added windows and ranking functions to the standard. In 2005, Microsoft added a few of these functions (ROW_NUMBER(), RANK(), DENSE_RANK(), and NTILE()) as well as the OVER() clause…

Read more about Windowing Function Examples for SQL Server 13 comments — Join the discussion

SQL Server 2012 CTP3 is Here! Five Things to Know About the Next Version of SQL Server

SQL Server Denali CTP3 is here, and today I'm excited to be able to talk about this new public preview of the next version of SQL Server.  CTP1 came out back in November 2010, and CTP2 wasn't released to the public, so this is your first chance in several months to see progress.  Here's what you want to know:

Read more about SQL Server 2012 CTP3 is Here! Five Things to Know About the Next Version of SQL Server 237 comments — Join the discussion

Microsoft Atlanta: Cloud-Based SQL Server Monitoring

Microsoft Atlanta is a new cloud-based SQL Server monitoring tool.  Companies can deploy an agent on their SQL Server 2008 and 2008 R2 instances, and the agent will communicate up to Microsoft's servers in the cloud (through a secure gateway also installed inside the company's network.)  Microsoft aggregates the data, analyzes it looking for problems, and displays it back to IT users like database administrators through a web-based dashboard.

Read more about Microsoft Atlanta: Cloud-Based SQL Server Monitoring 14 comments — Join the discussion

How to Use sp_WhoIsActive to Find Slow SQL Server Queries

SQL Server database administrators need to be able to quickly find out what queries and stored procedures are running slow.  Microsoft includes sp_who and sp_who2 in SQL Server 2005 and 2008, but there's a much better tool, and it's completely free.

In this five minute tutorial video, I explain how to use sp_WhoIsActive from Adam Machanic (Blog - @AdamMachanic):

Read more about How to Use sp_WhoIsActive to Find Slow SQL Server Queries Be the first to comment

The Top 10 Developer Mistakes That Won’t Scale

Microsoft records TechEd sessions, and you can watch the recording of mine.  Here's the abstract:

You’ve heard it before: “It worked fine on my machine, but the users say it’s too slow.” Don’t blame the developers: they’re using SQL Server features that look great on paper, but in reality, they won’t scale up to production loads. Learn to recognize these common mistakes before they go into production and be armed with alternatives.

Read more about The Top 10 Developer Mistakes That Won’t Scale 29 comments — Join the discussion

Book Week: The Economics of Writing a Book

This week I'm focusing on books and the book business.  Today I'll be covering the money thing for authors, and tomorrow I'll be reviewing a book I like for both the content and the business.  Enjoy!

Now that I'm holding a physical copy of our book in my hand, the pain of the experience has started to fade, and I can write about it with an open mind.

Read more about Book Week: The Economics of Writing a Book 19 comments — Join the discussion

How to Use the #SQLHelp Hash Tag on Twitter or Slack

You've got questions, we've got answers.

No, not Radio Shack - Twitter and the SQLcommunity Slack.  Right now, no matter when you're reading this, there are people on Twitter who can answer quick questions for you.  Thanks to an excellent idea by Aaron Nelson (@SQLVariant), it's even easier now.  In this post, I'll show how to ask questions and how to answer them.
How to Ask #SQLHelp Questions in Slack

Read more about How to Use the #SQLHelp Hash Tag on Twitter or Slack 16 comments — Join the discussion