14 + 1 new functions in SQL Server 2012
We always need sophisticated function in any programming language. SQL Server does have lot of built-in functions that helps database developers. In Denali CTP3, we have got new 14 built-in functions...
View ArticleIS(Numeric, Date, NULL) Functions in SQL Server
Data validation is an important task for developers to make sure that they are getting correct data for processing. This is per-validation step to avoid unnecessary error from the system. SQL Server...
View ArticleRow – Count Vs Count_Big (T-SQL) – SQL Server
Counting number of items in a table is the greatest invention by the developers to look for any change in the table. For instance, ETL developers run this command to compare the row count of a table...
View ArticleSQUARE – Math Functions
SQUARE () function returns the square of a float expression given in the function argument. The return type of this function is float. is a geometry symbol to denotes square. Syntax SQUARE ( float...
View ArticleGet the nesting level value from procedure using @@NestLevel – SQL Server
@@NestLevel : This function returns the current nesting level value of the procedure such as stored procedure and function. It returns an integer value. The initial value of this function is 0 and the...
View ArticleType_ID and Type_Name – SQL Server
Type_ID() : This function returns the SQL Sever data type id for the given type name. You can refer my previous blog post for the data type list. This function returns an integer value for type id. We...
View ArticleRetrieve Full-Text Search service property information – SQL Server 2012
Full-Text Search : This is an additional component given in the SQL Server engine. We have to install and setup this environment to use this feature for any business. Full-Text Search allows a business...
View ArticleSQL SERVER 2012 – CHOOSE() a Logical Function @SQLSERVER
CHOOSE() : It is a new logical function introduced in SQL Server 2012 version. This function holds a list of values and returns a value based on the location index number. Usage CHOOSE ( index, val_1,...
View ArticleSQL SERVER 2012 – Convert an Expression to Specific Data Type using PARSE...
Parse : This conversion function is used to compute the expression and return the output to the desired data type. But, this function is in SQL Server 2012 and onwards. Parse function suitable for data...
View ArticleSQL SERVER – Cursor System Functions @@CURSOR_ROWS
@@CURSOR_ROWS is the cursor system functions in SQL Server that are used to check the current status or row count. This is useful when we are working with one or more cursors in the procedures. We have...
View ArticleSQL SERVER – Working with the session context information – CONTEXT_INFO
Context Information is a binary value of size up to 128 bytes that can be set for a session and referenced in multiple batches, stored procedures, triggers, or user-defined functions executing on the...
View ArticleSQL SERVER – Obtain ERROR_STATE code for troubleshooting
ERROR_STATE: This function returns the error state number of an error occurred inside the try..catch block. This state number is different from @@ERROR number. Error State will differ for a same error...
View ArticleDECODE – Function – Oracle
The word decode triggers our mind to think of a mysterious task. But, in this context, it is a function in DBMS Oracle to perform a search task. Functional usage: DECODE compares expression to each...
View Article