Transact SQL Gems

July 18, 20121 Comment

New in 2012, they added OFFSET and FETCH.  This is fantastic for paging!  If you’ve ever used MySQL and wished for this in SQL Server, here you go.  Windows Azure SQL DB (SQL Azure) is 2012, by the way.

I don’t know how long this has been around, but I recently needed to generate an MD5 Hash.  The platform I was using didn’t have a function, so I just let SQL Server do the work.

SELECT CONVERT(VARCHAR(MAX), HASHBYTES( ‘MD5′,  ‘Hash Me’), 2)

 

 

 

App.netShare

One Response to “Transact SQL Gems”

  1. Hey there this is a terrific blog I just can’t wait to return and read much more.

Leave a Reply

Twitter Tweet This