SELECT 32-DAY(getdate()+32-DAY(getdate()))
SQL Server 获取月份的具体天数
原文:http://www.cnblogs.com/yidengbone/p/7993306.html