Quantcast
Channel: SQLcommitted » SQL SERVER 2012
Browsing all 4 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

Sql Server 2012 function EOMONTH()

It returns the last day of the month for the given date with an optional offset. Syntax : EOMONTH ( start_date [, month_to_add ] ) It returns date type. Example 1: DECLARE @date DATETIME SET @date =...

View Article



Image may be NSFW.
Clik here to view.

SQL Server – Error handling using Throw

MS-SQL Server 2012 introduced a new way of error handling using THROW statement. Prior to SQL Server 2012 we had to use RAISEERROR for error handling. Throw statement raises an exception and transfers...

View Article

Image may be NSFW.
Clik here to view.

SQL Server – New Analytical functions in SQL Server 2012 – Lead and Lag

LAG: Using this function we can fetch the nth row before (Lag) the Current row without using self-join. It is useful when we need to compare the current row values with values in a previous row....

View Article

Image may be NSFW.
Clik here to view.

SQL Server– How to Encrypt Column Data

Encryption is one of the most secure way to protect your confidential data like Social Security Number, Date Of Birth , Patient clinical information etc. We need to encrypt certain data to meet the...

View Article
Browsing all 4 articles
Browse latest View live


Latest Images