If you want to find a word in all your databases in an instance, you are in the right article. The below code block search …
Read More »TSQL
EOMONTH Function in SQL Server(TSQL)
You can find the last day of a month using EOMONTH function. In addition, you can use a second parameter that add a specific number …
Read More »ISDATE Function in SQL Server(TSQL)
You can check the expression is a valid date, time or datetime value using ISDATE Function. This function’s return type is int. Before using this …
Read More »GETDATE, GETUTCDATE, SYSDATETIME and SYSUTCDATETIME Functions in SQL Server(TSQL)
I will explain GETDATE, GETUTCDATE, SYSDATETIME and SYSUTCDATETIME functions in this article. GETDATE Function in SQL Server(TSQL): We can obtain current database timestamp as …
Read More »DAY, MONTH and YEAR Functions in SQL Server(TSQL)
We can find the day using DAY function, month using MONTH function and year using YEAR function from a date. It takes the date() …
Read More »How To Convert Gregorian Date to Hijri Date or Hijri Date to Gregorian Date
A friend ask to me to conversion about gregorian date to hijri date or hijri date to gregorian date. I will explan this conversions in …
Read More »DATEFROMPARTS, DATETIMEFROMPARTS, DATETIME2FROMPARTS, SMALLDATETIMEFROMPARTS Function in SQL Server(TSQL)
We can get a date by combining the values such as year, month and day with the help of DATEFROMPARTS, DATETIMEFROMPARTS, DATETIME2FROMPARTS, SMALLDATETIMEFROMPARTS functions. …
Read More »DATEDIFF and DATEDIFF_BIG Functions in SQL Server(TSQL)
We can find the difference between the two dates using the following dateparts with the DATEDIFF function. The return data type is int. If …
Read More »DATEADD Function in SQL Server(TSQL)
With the DATEADD function we can add or remove a datepart to a date. Below is a list of the dateparts we can add. …
Read More »SET DATEFIRST Statement and @@DATEFIRST Function in SQL Server(TSQL)
We can set the first day of the week for a session with SET DATEFIRST Statement. We can query the first day of the …
Read More »