How to format a number with commas in SQL Server?
There are couple of different ways to format a number with commas in SQL Server. Let see them in detail.
There are couple of different ways to format a number with commas in SQL Server. Let see them in detail.
While cursors can be useful in certain scenarios, they also come with both advantages and disadvantages. Let’s explore the advantages and disadvantages of cursors.
IIF and CHOOSE are two logical functions in SQL Server used for different purposes. Here we will see the competition of IIF vs CHOOSE.
Here is one another simple way to calculate median using the PERCENTILE_CONT function introduced in SQL Server 2012.
Here is a simple tip on how to drop a temporary or temp table if it exists using the DIY in 2016 or higher versions of SQL Server.
Here is a simple tip to convert the datetime value to a specific formatted date like YYYY-MM-DD in SQL Server 2012 and higher.
Here is the simple technique to get only the date part of GetDate() in SQL Server.
Here is the simple straightforward way to find the last day of the month in SQL Server using the built-in date function EOMONTH.
Here is a simple script to find the first day of the month in SQL Server without using varchar conversion. This method returns the result in datetime format.
Here is a simple SQL Server tip on getting the week number of month using DATEPART, DATEADD and EOMONTH functions.
Let us see the major differences between IIF vs CASE. IIF is a logical function and CASE is a language expression.
How to trace errors and exceptions using profiler in SQL Server? Using SQL Server profiler is the easiest way to capture the errors and exceptions occurring in the SQL Server database.
How to launch SQL Server profiler in windows workstation? Here is the easiest option and step by step instruction for launching SQL Server profiler.
How to save the collected profiler trace to a table in SQL Server? Here are the steps for saving profiler trace results to a table for further analysis.
Monitoring specific table using profiler in SQL Server? Here is a simple trick to capture and monitor all the queries and stored procedures executed against a table.
What are filters in SQL Server profiler trace and how to use them to capture various events? Here I have explained using filters in profiler trace and when to use them.
How to capture a stored procedure and the parameter values passed to it every time it is executed? Here is a method for capturing stored procedure’s parameter values using SQL Server Profiler.
How to capture only the SQL Server stored procedures using profiler? Using SQL Server profiler trace to trap all the stored procedures executed against a database.
How to use SQL Server profiler to capture and debug the queries executed from inside the stored Procedure? Here is the step by step instruction for debugging queries inside stored procedure using profiler.
Here is the T-SQL query to find index fragmentation in SQL Server database. This query will list all the indexes in the database and the the fragmentation level in percent.