Script for SQL Server Agent jobs

The below script is useful in finding the important information about the jobs in your SQL Server like who is the owner of your job, if you have set any notification email or not if it set then to which Emailid the mail will be sent to, when it was created and when was the […]

SQL Agent Job for databases in availability group

When we have SQL Server job running for databases in Always-On there could be need of running a specific job on Primary database only. In such cases we are required to create the job on every server and add the logic that it runs only on the Primary server. The below template can be used […]

Reading data from Extended Event

As we all know XEvents is a very strong tool or utility from SQL Server, it provides way more information than the tried and tested Traces. Extended Events was introduced way back in SQL Server 2008, but I was never able to use it just because of all the XML involved. No matter how much […]

Elastic Pools: How to implement it?

This is a part of a Series “Stairway to being an Azure SQL DBA“, in which I am planning to cover everything related to working as an Azure SQL DBA. Once you know what it is an Elastic Pool and have decided to implement it, the first thing to create is a SQL Server resource, […]

DTU vs vCore in Azure SQL Database

This is a part of a Series “Stairway to being an Azure SQL DBA“, in which I am planning to cover everything related to working as an Azure SQL DBA. When creating an Azure SQL Database, which as you might already know is a PaaS service, (if you don’t know what it is I’ll suggest […]

SQL Server: IaaS vs PaaS

This is a part of a Series “Stairway to being an Azure SQL DBA“, in which I am planning to cover everything related to working as an Azure SQL DBA. Starting with a diagram that you must have seen multiple times before. When talking about above picture and considering we are specifically concentrating on SQL […]