Quantcast
Channel: Answers for "How to store Historical dates in SQL Server ?"
Browsing all 4 articles
Browse latest View live

Answer by busynovadad

We store them in a dimension in our data warehouse as key value of "yyyymmdd", and then split the columns as date pieces. So, any row would have KeyVal Year Month Day 20130308 2013 03 08 20130307 2013...

View Article



Answer by Blackhawk-17

SQL Server 2008 introduced the **DATE** datatype. It's a 3 byte hit with a format of YYYY-MM-DD. You can store dates from 0001-01-01 to 9999-12-31.

View Article

Answer by busynovadad

We store them in a dimension in our data warehouse as key value of "yyyymmdd", and then split the columns as date pieces. So, any row would have KeyVal Year Month Day 20130308 2013 03 08 20130307 2013...

View Article

Answer by Blackhawk-17

SQL Server 2008 introduced the **DATE** datatype. It's a 3 byte hit with a format of YYYY-MM-DD. You can store dates from 0001-01-01 to 9999-12-31.

View Article
Browsing all 4 articles
Browse latest View live


Latest Images