rka (9/2/2012)
DateKey has to be in the format YYYYMMDD
In SQL Server, that's a pretty insane requirement because that would make a character based date. Since you're using SQL Server 2008, you should either use DATETIME or DATE datatypes for such a thing.
I strongly recommmend you talk to the people that designed the table and suggest that they should probably change it.
As for actually building the table... what have you tried that's not working?
--Jeff Moden
Change is inevitable... Change for the better is not.