Wednesday, 23 April 2014

How to find Last Day of Any Month?


  • Last Day of Previous MonthSELECT DATEADD(s,-1,DATEADD(mmDATEDIFF(m,0,GETDATE()),0))
  • Last Day of Current MonthSELECT DATEADD(s,-1,DATEADD(mmDATEDIFF(m,0,GETDATE())+1,0))
  • Last Day of Next MonthSELECT DATEADD(s,-1,DATEADD(mmDATEDIFF(m,0,GETDATE())+2,0))

How to improve applications performance which is hosted in cloud ?

Improving the performance of an application hosted in Microsoft Azure involves a combination of optimizing your application code, leveraging...