10.11.2012 Views

Expert Cube Development with Microsoft SQL Server 2008

Expert Cube Development with Microsoft SQL Server 2008

Expert Cube Development with Microsoft SQL Server 2008

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Usage of schemas<br />

The data warehouse is normally divided into subject areas. The meaning of a<br />

subject area really depends on the specific needs of the solution. Typical subject<br />

areas include:<br />

•<br />

•<br />

•<br />

•<br />

•<br />

Sales<br />

Accounts<br />

Warehouses<br />

Suppliers<br />

Personnel and staff management<br />

[ 33 ]<br />

Chapter 1<br />

Clearly, this list is far from complete and is different for every business. <strong>SQL</strong> <strong>Server</strong><br />

2005 and <strong>2008</strong> provide schemas to arrange tables and – in our experience – the<br />

usage of schemas to assign database objects to subject areas leads to a very clear<br />

database structure.<br />

Some tables will inevitably have no place at all in any subject area, but we can<br />

always define a "COMMON" subject area to hold all these tables.<br />

Naming conventions<br />

A clear and consistent naming convention is good practice for any kind of relational<br />

database and a data mart is no different. As well as making the structure more<br />

readable, it will help us when we come to build our cube because BI <strong>Development</strong><br />

Studio will be able to work out automatically which columns in our dimension and<br />

fact tables should join to each other if they have the same names.<br />

Views versus the Data Source View<br />

The Data Source View (DSV) is one of the places where we can create an interface<br />

between Analysis Services and the underlying relational model. In the DSV we<br />

can specify joins between tables, we can create named queries and calculations to<br />

provide the equivalent of views and derived columns. It's very convenient for the<br />

cube developer to open up the DSV in BI <strong>Development</strong> Studio and make these kind<br />

of changes.<br />

This is all well and good, but nevertheless our opinion about the DSV is clear: it is<br />

almost too powerful and, using its features, we risk turning a clean, elegant structure<br />

into a mess. It is certainly true that there is the need for an interface between the<br />

relational model of the database and the final star schema, but we don't think it's a<br />

good idea to use the DSV for this purpose.<br />

Download at Boykma.Com

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!