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.

•<br />

•<br />

•<br />

•<br />

•<br />

•<br />

Views are made up of plain text.<br />

[ 35 ]<br />

Chapter 1<br />

We can easily search for all the occurrences of a specific column, table or<br />

any kind of value using a simple text editor. We do not need any specialized<br />

development tools, nor need we to dive into unreadable XML code to have a<br />

clear view of how a specific field is used.<br />

If we need to update a view we can do it <strong>with</strong>out opening BI <strong>Development</strong><br />

Studio. This means that nearly everybody can do it, although, as it is very<br />

easy to update a view, some sort of security does need to be applied.<br />

Furthermore, as views are simple text, a source control system can handle<br />

them very easily. We can check who updated what, when they did it and<br />

what they changed very easily.<br />

Views can be updated very quickly.<br />

A view can be updated very quickly as it does not require any kind of<br />

processing, we just ALTER it and the work is done. We do not need to use<br />

an UPDATE statement if we want to make simple (and possibly temporary)<br />

changes to the data.<br />

Views can reduce the number of columns we expose.<br />

There is really no need to expose more columns to a cube than it needs.<br />

Showing more columns will only lead to confusion and a chance that the<br />

wrong column will be used for something.<br />

Views can provide default values when needed.<br />

When we have a NULLable column that contains NULL values, we can easily<br />

assign a default value to it using views. We shouldn't really have a NULLable<br />

column in a data mart, but sometimes it happens.<br />

Views can expose a star schema even if the relational model is more complex.<br />

As we've already mentioned, sometimes we end up <strong>with</strong> a relational<br />

design that is not a perfectly designed star schema. By removing unused<br />

columns, by creating joins when necessary and in general by designing the<br />

appropriate queries, we can expose to Analysis Services a star schema, even<br />

when the relational model has a more complex structure.<br />

Views are database objects.<br />

As views are database objects they inherit two important properties:<br />

° We can configure security for views, and so stop unauthorized<br />

access to data very easily.<br />

° Views can belong to a schema. If we are using schemas for the<br />

definition of subject areas, we can assign views to subject areas.<br />

This will lead to a very clean project where each object belongs<br />

to the subject area that is relevant to it.<br />

Download at Boykma.Com

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

Saved successfully!

Ooh no, something went wrong!