@@DATEFIRST – Configuration function
What is @@DATEFIRST it is one of the configuration functions returns first day of the week (tinyint) . The U.S. English default is 7, Sunday Syntax: SELECT @@DATEFIRST The language setting affects the...
View Article@@OPTIONS — Configuration Function
What is @@OPTIONS ? Returns information about the current SET options Why it is used? SQL Server offers many built in Configuration functions and one of these functions, @@OPTIONS which allows you to...
View Article@@LOCK_TIMEOUT — Configuration Function
What is @@LOCK_TIMEOUT ? Returns the current lock time-out setting in milliseconds for the current session Syntax now lets change the default value of...
View ArticleASCII() , CHAR() — String Functions
Before we go ahead about these functions first I will introduce little bit about ASCII ASCII stands for American Standard Code for Information Interchange. Computers can only understand numbers, so an...
View ArticleSystem Functions – $partition
Returns the partition number into which a set of partitioning column values would be mapped for any specified partition function. Syntax [ database_name. ]...
View ArticleLen() and Datalength()
In this post we will go through two scalar functions Len() is one of the string functions Datalength is one of the Data type functions so what does Len() do , it returns(int) the number of characters...
View ArticleISDATE() Date time function in SQL Server
What is ISDATE(Expression) ? Returns 1 if the expression is a valid date, time, or datetime value; otherwise, 0. Expression can be any character string , less than 4000 characters but it should not be...
View Article