C. S. John Lam's profileBI BuilderBlogListsGuestbookMore Tools Help

C. S. John Lam

Occupation
Location
Interests
* I enjoy my work ...

The best technology to work with is SQL Analysis Services

* I enjoy the place I live ...

The best place in the Earth is the summer in Texas

* Life is good. Be happy ...

Remark: The postings are provided "AS IS" with no warranties, and confers no rights.
There are no music lists on this space.
March 29

Timeout MDX queries after 30 seconds in SSIS Execute SQL Task

Many of us use the Execute SQL task in SSIS to creating warm cache for the MDX queries. If you do the same and find that some of your MDX queries are timing out after 30 seconds. You may want to go back to check what "connection type" are used in the tasks. If you are using ADO connection type like the screen shot below, change it to OLE DB connection. ADO has a command timeout default to 30 seconds. Changing the connection type to OLE DB instead of ADO can avoid this 30 seconds timeout issue.

 

image

Microsoft SQL Server 2008 Report Builder 2.0 RTM is available for download

Microsoft SQL Server 2008 Report Builder 2.0 RTM (build 10.00.1600.60) is released on Microsoft Download Center as stand-alone installer
 
March 24

A popular runtime error on 64bit: "Class not registered"

SQL Server 2005 SSIS and BIDS

Few days ago, one of my clients contacted me that he ran into the following error when he attempted to run his “Slowly Changing Dimension” (SCD) task in SSIS package. He was curious whether or not the error was SCD related.

image

Error: 0xC0202009 at LoadChangingDim, Connection manager "Excel Connection Manager": SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80040154.

An OLE DB record is available. Source: "Microsoft OLE DB Service Components" Hresult: 0x80040154 Description: "Class not registered".

Error: 0xC020801C at Loading SCD, Data without keys [163]: SSIS Error Code DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER. The AcquireConnection method call to the connection manager "Excel Connection Manager" failed with error code 0xC0202009. There may be error messages posted before this with more information on why the AcquireConnection method call failed.

Error: 0xC0047017 at Loading SCD, DTS.Pipeline: component "Data without keys" (163) failed validation and returned error code 0xC020801C.

Error: 0xC004700C at Loading SCD, DTS.Pipeline: One or more component failed validation.

Error: 0xC0024107 at Loading SCD: There were errors during task validation.

SSIS package "LoadChangingDim.dtsx" finished: Failure.

This error had nothing to do with SSIS’s SCD implementation. The failing step (color red in the screen shot above) actually was outside the SCD task. The user was testing his package on a 64 bit machine. He was attempting to direct incorrect data to an Excel file as part of the package workflow. However, Office Excel (including most of the office products) does not have 64bit provider and hence the error above on Excel connection.

To correct the issue, once he changed the setting “Run64bitRuntime” from True to False in the project properties dialog page, the error was gone.

image

For more about this common issue: see http://technet.microsoft.com/en-us/library/ms141766.aspx

March 13

Building a Composite Key Parent-Child Dimension

Version: SQL Server 2005 Analysis Services

One user has a business requirement to create a parent-child dimension with composite key but he could not find any example to show him how. He has a schema similar to the one below (we modified the Foodmart 2000 database to show a “how to” example). Any attempt to build a composite key parent-child dimension via the wizard, the following warning is seen:

  • Warning: The dimension Wizard does not support the creation of composite key parent-child dimensions. To set the parent-child relation on this table, use Dimension Editor

clip_image002

To build one to fit the user’s requirement, here are the steps we used:

  1. Make sure the relationship between the fact table and the dimension table is properly set.

clip_image004

  1. First build a regular dimension using the Dimension Wizard. Select all the composite key columns. In this example, the columns we selected are region_id and employee_id.

clip_image006

  1. Follow the wizard to the end. (You will find that the option to make this a parent-child dimension is greyed out). A warning is seen: The dimension Wizard does not support the creation of composite key parent-child dimensions. To set the parent-child relation on this table, use Dimension Editor

clip_image008

  1. Inside Dimension Editor, make sure that the key columns for the key attribute (in here is Employee attribute) contains 2 columns just like the picture below:

clip_image010

clip_image012

  1. Create a new attribute from the key employee_id again:
clip_image014

 

  1. Name this new attribute as “Employees”. Toggle the Usage property of this attribute to “Parent” (default: Regular). Modify the key columns to include the key columns (child columns) join back to their parent columns. Make sure the order of the key columns here are matching with the order of the key columns in key attribute Employee such as region_id --> report_to_region_id, and employee_id --> supervisor_id.

clip_image016

clip_image018

  1. Save the dimension. Done.

 

BI Builder

Thanks for visiting!
Please wait...
Sorry, the comment you entered is too long. Please shorten it.
You didn't enter anything. Please try again.
Sorry, we can't add your comment right now. Please try again later.
To add a comment, you need permission from your parent. Ask for permission
Your parent has turned off comments.
Sorry, we can't delete your comment right now. Please try again later.
You've exceeded the maximum number of comments that can be left in one day. Please try again in 24 hours.
Your account has had the ability to leave comments disabled because our systems indicate that you may be spamming other users. If you believe that your account has been disabled in error please contact Windows Live support.
Complete the security check below to finish leaving your comment.
The characters you type in the security check must match the characters in the picture or audio.