SQL Server – How to reorganize indexes in SQL Server Database
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…
Wiring Intelligence, Driving Innovation
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…
Following could be reason(s): 1) Multiple Exit Point in the stored procedure. We may have RETURN statement before stored procedure…
Below is an example to capture Server(s) status whether it is online or offline. We are using XP_CMDSHELL extended stored…
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…
SQL Server is, by default, case insensitive, which means the word “SQL SERVER” or “sql server” will be same for…
Below is an example showing how to use Error handling as well as Transactional handling in TSQL programming. 1) When…
1. A Common Conversation about Auditing a. What was the value of this particular field ? b. How many…
1. Background MERGE is a new feature of SQL Server 2008 that provides us an efficient way to perform multiple…
In Microsoft technology platform, we can use SSIS package to consume the Web API. We need to use the script…
Error handling is an important aspect of any programming language. Like other programming languages, in T-SQL programming also, we use…