How To Find Leap Year In SQL Server?
We have to use our own logic to find whether the given year is leap or not. Here I have gone through couple of methods to find the the leap year in SQL Server.
We have to use our own logic to find whether the given year is leap or not. Here I have gone through couple of methods to find the the leap year 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.
Here is the simple tip to get the week number of the year In SQL Server using an in-built function.
Quick tip for getting the name of month In SQL Server for a specific date or current date.
Let us see the major differences between IIF vs CASE. IIF is a logical function and CASE is a language expression.
Simple step by step illustration for collecting poor performing queries or batches and store them for further analysis in SQL Server using Extended Events.
How to collect poor performing queries or batches and store them in a database table for further analysis in SQL Server using MSSQL Profiler?
Is it a good practice to use VARCHAR(MAX) instead of VARCHAR(N)? We will see the answer and the reason for it in this article.
VARCHAR(MAX) vs VARCHAR(N). Comparing the differences, advantages and disadvantages between VARCHAR(MAX) and VARCHAR(N).
How to extract only the numbers from string value In SQL Server? Here is a function which extract the sets of numbers from alpha numeric strings.
Which Is Better SET or SELECT? In this article you will see the major differences of SELECT vs SET and the comparison between them in table from.
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.