Wednesday, December 31, 2008

How to Join the Results of Multiple MDX Queries on Date Demension

I need to get a datasest and combines multiple MDX query's results. I know using stored procedure can probably solve the problem. But I don't have write access to the Cubes.

Solution:
.......Still working on it......

Monday, December 29, 2008

Use IN Statement for Multivalue Parameters

When use IN statement in the WHERE clause for multivalue parameters, the parameters needs to be in parentathes. E.g.

a.[Microsoft_VSTS_Common_Priority] IN (@Priority)

Friday, December 12, 2008

SQL: Removes the Time Portion of a DateTime Value

I encountered a situation that I need to get only the Date portion of a Datetime value. After some digging, I found a post that has exactly what I want. A SQL expression, dateadd(dd,0, datediff(dd,0,@DateTime)), was used to give just the date portion. I'm not quite sure about why it did the trick. But it worked for me.

The original post is at:
http://weblogs.sqlteam.com/jeffs/archive/2007/01/02/56079.aspx