One of the most common tasks that DBAs are required to perform is monitoring. This is not just a task. Monitoring is a strategy, and a good DBA should have a well-defined plan for carrying out this strategy. But I’m not here to talk about monitoring as a whole. I… Read more
I had the pleasure to speak at SQL Saturday 360 in Israel. It was such a great event! We had two tracks, one for SQL Server and one for BI. There were more than 160 people who enjoyed free training, great food, networking and fun. There was even a beer… Read more
I have been working with SQL Server for the past 17 years, and in the past few years I have been also very involved in the SQL Server community in Israel and around the world. I love SQL Server, and I also love the community around SQL Server, which is… Read more
This is a summary of the parameterization blog post series. If you read the previous posts in the series, then this summary can be a good way for you to recap what you’ve learned. If you haven’t read the previous posts yet, then this summary can also serve as a… Read more
Last week I had the honor to present a seminar at Expert Days 2014, which is an annual conference for developers organized by E4D Solutions. I suggested the title “SQL Server Developer Tips that Can Save Your Ass”, but the organizers didn’t like it, so they changed it… Read more
Sometimes you have a stored procedure that returns a rowset, and you need to insert the rowset into a temporary table in order to perform additional processing. That’s easy, right? You can simply create a temporary table and then use the INSERT-EXECUTE statement in order to insert the rowset into… Read more
This is the sixth post in the “Parameterization” series. In the previous posts I explained what parameterization is, how plan caching works in SQL Server, what parameter sniffing is, when it’s good and when it’s bad, and also some common mistakes related to parameterization and how to avoid them.
In… Read more
I presented my session – Working with Very Large Tables Like a Pro in SQL Server 2014 – in PASS Summit 2014. The session was also presented live on PASStv. I was very excited and honored to speak in front of people of the SQL Server community from all over… Read more
Here is a riddle for you…
You are requested to move a database from an old server to a new server. As a professional and experienced DBA, you prepare a checklist of actions to take, you script everything, you document your plan, and, of course, you test it before doing… Read more
This is the fifth post in my Parameterization series. In previous posts I wrote about parameter sniffing and when it is good or bad, and also about how to work around the problems associated with parameter sniffing when data is not uniformly distributed. In this post I would like… Read more
Five years ago the term “cloud” was still a buzzword, and there was a lot of uncertainty and misconception around it. I remember many DBAs, including myself, asking themselves what this revolution means for them. People asked themselves how a DBA role will look like in five years, or even… Read more
This is the fourth post in the “Parameterization” series. In the previous post I wrote about parameter sniffing, and I mentioned that this method can be a good thing in some cases, but it can also be quite a bad thing in other cases.
One case in which parameter sniffing… Read more
This is the third post in the “Parameterization” series. In the previous post I mentioned parameter sniffing. This is a very important concept in SQL Server, and it certainly deserves a dedicated post. It’s time to dive into all the juicy details about parameter sniffing…
But first, let’s begin with… Read more
This is the second post in my series on parameterization. In the first post I wrote about plan caching and about the phases that each batch goes through before execution. I ended the previous post with a query example that demonstrates the importance of parameterization. For this post I’m going… Read more
Many times, when I perform query tuning, the problem that causes the query to perform badly is related, one way or another, to parameterization.
On one hand, parameterization is a fundamental subject in the heart of the query processor. It can affect query performance dramatically. On the other hand, it… Read more
Last week I attended WPC. This is an annual event organized by Microsoft for its partners around the world. WPC stands for “Worldwide Partner Conference”, and this is exactly what it is. Last week it was held in Washington D.C, and there were 16,000 people in this event from over… Read more
Last week, I had the pleasure of attending the EBC in Redmond. If you don’t know what EBC is, that’s OK. I didn’t know either until Microsoft invited me there a couple of months ago. EBC stands for “Executive Briefing Center”. It’s a building in Redmond designated to host customer… Read more
What about when statements are sitting in your server, uncompleted and not moving, just hogging resources? Use this script for Extended Events to hunt them down.
The post Track Incomplete Statements appeared first on .
Retrieve data about size and space used for all the files in the current database with this script.
Some tips on database file size management:
- Make sure there is enough unallocated space for future growth.
- If the value of “UnallocatedSpace_Percent” is low, consider allocating more space in the next…
Well, there are many things I love about SQL Server. Otherwise, I wouldn’t spend my whole career around it, would I? I can talk about the powerful and easy-to-use client tools, or about the excellent high availability and disaster recovery features (aka “AlwaysOn”), or about the powerful ETL platform known… Read more