Quantcast
Channel: LearnSQL – Sarabpreet Singh Anand
Browsing all 29 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

Understanding, Analysing and Troubleshooting Deadlocks – Part2

In First Part Understanding, Analysing and Troubleshooting Deadlocks – Part1 we discussed what is Deadlock, How SQL Server engine behaves when a deadlock is encountered, how a victim is identified and...

View Article



Image may be NSFW.
Clik here to view.

Understanding, Analysing and Troubleshooting Deadlocks – Part3

In First Part Understanding, Analysing and Troubleshooting Deadlocks – Part1 we discussed what is Deadlock, How SQL Server engine behaves when a deadlock is encountered, how a victim is identified and...

View Article

Image may be NSFW.
Clik here to view.

What do you mean by Principals? (with respect to SQL Server)

Principals are entities who can request access on SQL Server Resources on different levels, in other words the entities to whom you can grant Right \permission can be referred to as Principals. Every...

View Article

Image may be NSFW.
Clik here to view.

What do you mean by Execution Context & Context Switching? Part-1

Execution context is maintained by the login that is connected or executing the query, then it checks the permissions of the login against the currently requested query whether the login has the...

View Article

Image may be NSFW.
Clik here to view.

What do you mean by Execution Context & Context Switching? Part-2

In first part we discussed, what is Execution Context, different types of Tokens available and what all information goes into a token? We can explicitly change the execution context of the SQL Server...

View Article


Image may be NSFW.
Clik here to view.

Read Before you even think of Installing SQLServer 2014 CTP1

SQL Server 2014 CTP1 is out with lots of cool & exciting features, if you’ve not yet downloaded it, you can get it from below mentioned link:...

View Article

Image may be NSFW.
Clik here to view.

Using Covering Index

A Non Clustered Index which contains all columns which are referred by a Query (in Select, Where or Join) is called Covering Index. In other words When all columns which are required to satisfy the...

View Article

Image may be NSFW.
Clik here to view.

What is Checkpoint in SQL Server?

Checkpoint is an internal process that writes all dirty pages (modified pages) from Buffer Cache to Physical disk, apart from this it also writes the log records from log buffer to physical file....

View Article


Image may be NSFW.
Clik here to view.

Find Users with DBOwner Database role

Scenario: Auditors need a list of Users who have DBOwner Database role on any of the database which are hosted on Tier 1 Servers. Giving this information was Very easy for few servers where the DBCount...

View Article


Image may be NSFW.
Clik here to view.

SQL Tip-10 | SQL Server Database Backup to Cloud (Microsoft Azure)

This feature can help you leverage the power of Cloud with your SQL instance and taking your backups directly on Cloud. Backup to URL is not new to SQL 2014, it was first introduced in SQL Server 2012...

View Article

Image may be NSFW.
Clik here to view.

SQL Tip-11 | Using SQL Server Backup to Windows Azure Tool

As you know there are so many cool benefits of using Windows Azure Storage Account, everybody want to use it to get advantage. Last month i blogged about “SQL DB Backup to URL\Cloud” feature which was...

View Article

SQL Tip-12 | Using SQL Server Backup to Windows Azure Tool – Part2

In last part we discussed the installation, configuration and usage of the SQL Server Backup to windows azure tool. In this part we’ll discuss some internals of this tool and how to restore the backups...

View Article

Error while opening SQL Server Configuration Manager – Fixed

Hi Friends, Today I again experienced the same old frustrating error while opening SQL Server Configuration Manager on one of the SQL Servers. Refer the screenshot below. The error says:  Cannot...

View Article


Find Jobs scheduled to run during a specific time range

Hi Friends, Today I was going to raise a change which was related to SAN Migration for one of our production servers. The affected server will not be available for almost 3 hours. I prepared the plan...

View Article

Trace Flag 2371 to Control Auto update Statistics threshold and behaviour in...

Hi Friends, As you already know, the auto update statistics feature of SQL Server relies on number of rows changed or updated to determine if statistics update is needed.  The statistics of a table...

View Article


Calculate Number of Leaves – excluding weekends

Hi Friends, Sometime back I was answering questions on TechNet Forum when I saw an interesting and genuine problem. The user wanted to calculate the number of leaves taken by an employee excluding...

View Article

SQL Server AWE Enabled Option | Deprecated

Like we already know, Windows-based applications can use Windows AWE (Address Windowing Extensions) APIs to allocate and to map physical memory into the process address space. AWE allow 32-bit...

View Article


Memory Shortage for all 32 Bit SQL Server 2012 Instances

Hi Friends, As you all know AWE has been deprecated and not available from SQL Server 2012 (Find details here), as a result when you upgrade from SQL Server 2008 R2 to the next version of SQL...

View Article

Which trigger will be triggered first?

Hi Friends, Yesterday I was working on a specific requirement of a client to create DDL trigger for a Database to log & validate certain things. While doing so I discovered there were already two...

View Article

Memory Configuration Changes | SQL Server 2012

Hi Friends, There are a few changes in SQL Server 2012 in Memory Manger, and a DBA should be aware of such changes before upgrading or installation of SQL 2012 Instance on production. In Earlier...

View Article
Browsing all 29 articles
Browse latest View live




Latest Images