Database Mail Setup
If you have trouble sending messages using DatabaseMail and are getting "13 error 2005-12-22 13:49:17.053 The mail could not be sent to the recipients because of the mail server failure. (Sending Mail using Account 1 (2005-12-22T13:49:16). Exception Message: Could not connect to mail server. (An established connection was aborted by the software in your host m 3640 5 NULL 2005-12-22 13:49:17.053 sa" This output came from this query SELECT * FROM msdb.dbo.sysmail_event_log
Take a look at your virus scan properties -- Prevent mass mailing worms from sending mail. I had to add DatabaseMail90.exe to the exclude list before it would let DatabaseMail mail through.
Conditional Create
I made a create script of an SSAS Cube. Can I alter the script so that it only creates the cube, if the cube doesn't exist?
- Changed type Ed Price - MSFTMicrosoft employee Thursday, August 21, 2014 7:01 PM
Default Member for Hierarchy in AS2005
Is it possible to set a default member on a hierarchy itself? The only place I see the Default Member property is for each attribute available in the dimension, and not anywhere within the hierarchy itself.
I hope I'm making sense :)
- Changed type Ed Price - MSFTMicrosoft employee Thursday, August 21, 2014 7:01 PM
Numerical Dimension
I have a dimension representing the Age of a client. I would like to create a Named Set filtering all clients whose age is upper 80.
Something like this : [Dimension].[Age].Value > 80
But this kind of expression is not valid, Is there a way to do that ?
- Changed type Ed Price - MSFTMicrosoft employee Thursday, August 21, 2014 7:02 PM
How Can I generate a rdl file from a mdx query in C#.net?
Is there some methods to generate the rdl file or reporting html page
from a given mdx query language
For instance, I have a mdx query:
select dim1.a on rows, dim2.b on columns from cub1
How can I generate the corresponding rdl file to generate report html page with C#.net??
I know that one can use xmltextwriter to write the rdl file but it is a difficult work.Is there some internal class in C#.net have some methods to generate the rdl file?
Thanks
- Changed type Ed Price - MSFTMicrosoft employee Thursday, August 21, 2014 2:37 AM
Reminder - please indicate if a reply has answered your question.
How do I indicate a post answered my question?
While reading a reply to your question you will notice a button with this Icon: . Clicking on it will mark the post as the answer to your question
Thanks!
Dan
Offiline cube creation
Hello-
I'm attempting to create an offline cube that is importable to an excel doc as a pivottable, but I've yet to find any way to do this through the SQL 2005 AS interface.
Does anyone know of a way to create such a cube through Visual Studio or the SQL management console, or is it strictly an MDX task?
Thanks,
Tristan
- Changed type Ed Price - MSFTMicrosoft employee Thursday, August 21, 2014 2:37 AM
How can I use SemiAdditive aggregations on a dimension other than Measures?
Our cubes include a dimension that needs semiadditive aggregation (inventory calculation) on some of its members. As I read the documentation (what there is of it), it seems the only way to do this is to make my dimension a parent-child dimension of type "accounts".
Unfortunately, we have several levels in this dimension, each of which needs the functionality. SSAS tell us that we can have only one attribute in the entire dimension of type Account and only one member of type AccountType. So, that eliminates the all by one level in the dimension.
we tried configuring the dimension as a parent child dimension. that seemed to work until we tried executing MDX queries in which the accounts dimensioni was crossjoined with another (any other) dimension in which case all the values except inventory were returned as Null.
I'm not sure if we're not using this properly, or this is a design feature or a bug.
Advise Pls?
- Changed type Ed Price - MSFTMicrosoft employee Thursday, August 21, 2014 2:37 AM
Creating a dummy dimension level for storing calculated members
[SQL Server 2000 question]
I have a dimension that has one hierarchical (grouping) level (call it "Group 1") and a leaf level. I want to create a member in the grouping level that will only be used to store calculated members. The obvious way I found to do this was to create a dummy record in the underlying table with both the group 1 attribute and the leaf attribute having the same value. I could then hide the dummy member at the leaf level by setting the "Hide member if" property of the leaf level within the dimension to "Parent's Name". I could then create calculated members and set their "parent" property to be the group 1 name of the dummy record. The problem with this is that when I then browse the cube data, I cannot drill down on the dummy group 1 member, despite having create a child calculated member. Can any one help?
- Changed type Ed Price - MSFTMicrosoft employee Thursday, August 21, 2014 2:38 AM
Recognition of Cube in Catalog
We have an application that uses MSADOMD classes to access Cubes in a catalog. There are total of 4 Cubes on the catalog and we coudl see all the 4 cubes when accessed through the sample MDX application. When when we access through our application which uses MSADOMD, only three Cubes are being shown.
The following method call
CubeDefs cubes =m_catalog.getCubeDefs() ;
m_Cube = cubes.getItem(new Variant(sInCubeName)) ;
returns the following error:
Item cannot be found in the collection corresponding to the requested name or ordinal
We checked the User roles setting from Analysis Services and found that there is no restriction based on User role to any of these Cubes.
What could be the reason?
- Changed type Ed Price - MSFTMicrosoft employee Thursday, August 21, 2014 2:38 AM
Is the STDEVP Function in SSAS same as STDEVP in MS Excel?
Hi,
I am struggling with implementing a Calculated Member to perform the same STDEVP() as in MS Excel, over a FACT table.
I have tried using the STDEVP() provided in the Cube designer Calculation tab, and have failed to get
STDEVP( «Set»[, «Numeric Expression»] )
working.
My FACT table looks like this
Time_Key
Customer_Key
Transacted_Amount
...
I supposed <<Numeric Expression>> should be replaced with [Measures].[Transacted Amount] (which is having SUM as aggregation).
My Time Dimension is the standard one with Year/Semester/Quarter/Month/Day.
What should go into <<Set>> for the STDEVP(), if I need the results to be sliced by different time levels and by different Customer_Key?
- Changed type Ed Price - MSFTMicrosoft employee Thursday, August 21, 2014 2:41 AM
Problem with Dimension
One of the attribute of my Dimension encounters error when I try to browse
it using the Dimension Browser. The data of this attribute comes from a derive column. One of the parent Key of the attribute has blank value, and when this will be click. The error comes out.
Error Message:
The server sent an unrecognizable response.
Additional Information
hexadecimal value 0x0F, is an invalid character. Line1 (System.Xml)
The work around I've done is to delete the rows from the table that produces blank value into my derive column. The solutions works fine, the parent key from my dimension with blank value is gone.
But there were other parent key that when click shows the same error.
When I browsed the derived column. there were values such as Ascii Character.
What should I do to solve this problem? Do I have to delete the rows with Invalid characters or are there other work around for this instead of deleting the rows?
thanks,
L@rs
- Changed type Ed Price - MSFTMicrosoft employee Thursday, August 21, 2014 2:40 AM
Incremental Data Load/Update For MOLAP Partitions
We have a Cube built on top of a Partitioned Fact Table (SS 2005) with about 100 partitions. We have 100 corresponding partitions in cube (with same partition ranges) built using "QueryBinding".
Now the nature of the data in Fact table is such that we can have Updates and Inserts happen accross all the 100 Partitions in the Fact table (with Last_Modified_Date column indentifying changed/inserted records)
In order to sych up with the changes in underlying fact table, we are planing to implement incremental updates using "Out-Of-Line" bindings.
We have not had a chance to prototype this yet, so the question (#1) is will the use of Out-Of-Line bindings such as "Select X, Y, Z From Fact_Table Where {Partiton Definintion} And {Last_Modified_Date Between Start_Time and End_Time}" work for newly INSERTED and/Or UPDATED fact records or will it result in inflated numbers corresponding to UPDATED Facts - how do we get around this without re-reading entire contents of partition.
Question (#2), can we use the proactive caching setup of MOLAP to get around this? An illustative example would be great.
Where is the value of variables in the Polling Query Stored? - is the cache persisted with the base data at some point?
Thanks in advance.
- Changed type Ed Price - MSFTMicrosoft employee Thursday, August 21, 2014 2:40 AM
New Service Broker blog
Unexpected Results with "Rolling 12 Month Sales" Calculated Member
I have a Calculated Member in my 2005 cube [2004 Sales], and it's defined as:
([Measures].[Invoice],[Invoice Date].[Invoice Year].&[2004])
Within the Cube's Browser in BI Dev Studio, I can simply add [2004 Sales] and nothing else and it appears to return the correct value.
Now I have another Calculated Member for [Rolling 12 Month Sales] and it's defined as:
SUM( LASTPERIODS (12 , [Invoice Date].[Invoice Month]), [Measures].[Invoice] )
When I simply add this calculated member and only this calculated member, the result is the same as simply adding [Measures].[Invoice] to the browser. When I add something from the Invoice Date dimension, the [Rolling 12 Month Sales] then takes on different values, but I don't think they're correct. Or I could be interpreting the results wrong?
In any event, I would like to be able to simply add the [Rolling 12 Month Sales] calculated member and get the right results without the need to bring any dimensions into play, if possible. I hope that made sense.
This calculated member is supposed to mimic in SQL (when executed in December 2005):
SELECT SUM(Invoice)
FROM Sales S
INNER JOIN [Invoice Date] IDT
on S.[Invoice Date_key] = IDT.[Invoice Date_key]
WHERE
[Invoice Date] >= '2004-12-01' AND [Invoice Date] <= '2004-11'30'
- Changed type Ed Price - MSFTMicrosoft employee Thursday, August 21, 2014 2:40 AM
SSMS presentation of IS Packages...
Thanks.
ANN: Version 2 of Reporting Services Scripter now available
Download Version 2 of Reporting Services Scripter
An updated version of Reporting Services Scripter is now available (Build 2.0.0.0). This major release adds full support for SQL Server Reporting Services 2005 both as a script source and deployment target (from both SQL 2005 and SQL 2000). It also adds a resizable user interface (a popular request!) and a new operating mode - Transfer mode. In this mode, scripts are still generated however they are automatically deployed to the selected target server. Please see the readme for full details of changes in this release. And yes, it's still completely free!
LastMonth and LastQuarter
I'm trying to create two timerelated calculted members:
LM : LastMonth - if current month is November I would like to have October
LQ : LastQuarter - if current month is November (Quarter4) I would like to have Quarter3
Any good hints somebody? ParallelPeriod ?
- Changed type Ed Price - MSFTMicrosoft employee Thursday, August 21, 2014 2:40 AM
Time Dimension: LastNonEmpty or Max?
There are two FKs/Relationships from DIM_Customer to DIM_Time:
1. Created_Time_Key (indicating when the customer account was created)
2. Referred_by_Time_Key (indicating when the customer was referred by another customer, can be NULL if this is not a referred customer).
The requirement is to retrieve the Last Referral Date at a multi-level Customer Groups. Customer Groups is implemented by a Hierarchy in DIM_Customer.
I have managed to retrieve the MAX Referred_by_Time_Key at different customer group hierarchy level. However, for reporting front-end, what I need is to display is the Last_Referred_by_Date. Conceptually, it is so easy to understand that I just need to lookup that in DIM_Time and display the Date accordingly. But how is this implemented in Analysis Services?
I have tried to add a Measure from DIM_Time.Date source column and apply Max or LastNonEmpty with it. But I keep getting a looping error and the project cannot be deployed properly.
I have also tried to add the DIM_Time.Date as an attribute related to DIM_Customer.Referred_by_Time_Key. However, I am not able to then perform aggregation since it is a Dimension attribute.
I have a feeling that this is supposed to be simple to implement and I am on the wrong track of things.
Any advice please?
thanks.
- Changed type Ed Price - MSFTMicrosoft employee Thursday, August 21, 2014 6:53 PM
Deploy a Analysis Project Error: File already exists
Dear experts,
Whenever I want to deploy a analysis project, the Deployment always failed with the following error:
"The following system error occurred: File already exists. "
This error always shows even I only create a new data source and then deploy it.
What's going on..
- Changed type Ed Price - MSFTMicrosoft employee Thursday, August 21, 2014 6:53 PM