SQL Server – Reason for stored procedure not returning any data
Following could be reason(s): 1) Multiple Exit Point in the stored procedure. We may have RETURN statement before stored procedure…
Wiring Intelligence, Driving Innovation
Following could be reason(s): 1) Multiple Exit Point in the stored procedure. We may have RETURN statement before stored procedure…
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…
Below is an example to capture Server(s) status whether it is online or offline. We are using XP_CMDSHELL extended stored…
To achieve the requirment of loading data from Source table to Target table with ensuring it will pull only data…
We can use a stored procedure/T-SQL statements having linked server & DB name as variables to get the data dynamically…
The error message “String or binary data would be truncated” tells we are trying to put a longer string into…
If we are using ar eport parameter which is duplicate values. you can remove duplicate records by using T-SQL DISTINCT…