Figured it out
INSERT INTO [DimDate] ( DateKey ,DATE )SELECT number_big ,DATEADD(day, number_big, '1900-01-01') AS DATEFROM numbers_bigWHERE DATEADD(day, number_big, '1900-01-01') BETWEEN getdate() AND getdate()+50ORDER BY number_big;GO
No comments:
Post a Comment