SQL Server – How to get a alert or notification if SQL Query is taking more than 5 mins
DECLARE @StartTime DATETIME DECLARE @EndTime DATETIME DECLARE @duration INT –Capture timestamp for start of execution SET @StartTime = GETDATE() –…
Wiring Intelligence, Driving Innovation
DECLARE @StartTime DATETIME DECLARE @EndTime DATETIME DECLARE @duration INT –Capture timestamp for start of execution SET @StartTime = GETDATE() –…
SQL Server always create Subscription jobs in the instance where reporting service is installed/Configured. Or we can say SQL server…
Reorganizing the indexes consists of two processes 1) Detect the fragmentation: By using the system function sys.dm_db_index_physical_stats, you can detect…
We will use sp_MSforeachdb procedure which is an undocumented procedure that allows you to run the same command against all…
For showing the data in Parent Child relationship, we need to create grouping. Let’s take an example of Product Category,…
Following could be reason(s): 1) Multiple Exit Point in the stored procedure. We may have RETURN statement before stored procedure…
The objective of this article is provide a visualization for data in tablix as well as matrix and how we…
Here is the sample Sales Report which shows Region & Year wise Sales Amount. If we want to put…
Sometimes, requirement comes to add a reference line in the line chart which will act as benchmark to measure the…
1) Web application would be hosted on 2 web servers -Web Server 1 and Web Server 2. 2) Both the…
USE MSDB; GO –Declaring Variable DECLARE @job_id UNIQUEIDENTIFIER DECLARE @Cnt INT DECLARE @Min INT –Declaring Table Variable DECLARE @SQLAgentJob (…
To do unattended tasks like if error comes need to disable the job. In this case, we need to disable…