1.月初:select dateadd(mm,datediff(mm,0,dateadd(month,0,getdate())),0)
2.月末:select dateadd(mm,1+datediff(m,0,getdate()),0)-1