Report Portal

How to create a time dimension in SQL Server 2005

How to create a time dimension in SQL Server 2005.

A lot of posts in the SSAS2005 newsgroup have questions regarding how to construct a time dimension.

In SSAS2005 you can generate a server time dimension but having control over this is much better and it is not that hard.

Let’s start with creating a list of dates. Jamie Thomson (http://blogs.conchango.com/jamiethomson/rss.aspx) has a TSQL solution with a new feature in SQL Server 2005 called common table expressions or CTE: s

Start management studio and the database engine. Start a new query and copy this statement:

Read more...

Tags: time dimension

 

2007-2015 VidasSoft Systems Inc.