set datefirst 1 select * from dbo.f_calendar(2010,07) 转载于:https://www.cnblogs.com/mingfeng/archive/2010/03/24/1693690.html