Viewing 15 posts - 3,121 through 3,135 (of 4,087 total)
Smash125 (6/4/2012)
...
For Quarter3 we can observe August comes first,then July and...
June 5, 2012 at 8:46 am
Adam Machanic (6/4/2012)
David Moutray (6/4/2012)
I don't know what was in the Original Poster's mind, but I heard Adam Machanic recommend putting the commas for multi-line statements at the beginning of...
June 5, 2012 at 8:32 am
You might want to look up the DATENAME() function for the month names and the DATEPART() function for the quarters. Or you might want to use a calendar table...
June 4, 2012 at 2:44 pm
This is simply no valid reason to read stored passwords. Even if it were possible, providing the capability to do so would create a huge security risk.
Drew
June 4, 2012 at 9:35 am
Unlike some MS error messages, this error is fairly self-explanatory. One of your subqueries is returning multiple values and that is not allowed. Specifically, the following subquery is...
June 4, 2012 at 9:03 am
Use tally tables to count instead of rCTEs. Jeff has a good article about this: Hidden RBAR: Counting with Recursive CTE's[/url]
Drew
June 4, 2012 at 8:41 am
If you want to display the results of the CASE expression and use it in a GROUP BY, you can use a CROSS APPLY to define and alias the CASE...
June 1, 2012 at 9:10 am
UNPIVOT will not work for your query, because it will only produce one unpivoted column per statement, and you need three. You can use a CROSS APPLY to make...
June 1, 2012 at 8:26 am
Name Queries are usually defined against the OLTP source that the OLAP cube is built on. The named query will use T-SQL, but the cube will use MDX. ...
May 30, 2012 at 1:33 pm
Use a CTE or derived table.
The CROSS APPLY isn't going to give you what you expect anyhow--which is probably why MS put in that error message in the first place....
May 30, 2012 at 12:31 pm
First, there is a separate forum for Analysis Services. You are more likely to get an answer to your question there.
The cube browser in BIDS (Visual Studio) is a...
May 30, 2012 at 9:07 am
Consider SSRS for your reports. It has built-in functionality to automatically handle these types of reports.
Drew
May 30, 2012 at 8:05 am
dwain.c (5/29/2012)
SELECT DATEADD(month, 1, '2012-02-29')
Depending on your point of view, the results this returns looks wrong, or maybe not. I...
May 30, 2012 at 7:44 am
Actually I realized that my FOR XML AUTO code didn't have the Employees node. Here is corrected code.
FOR XML AUTO
SELECT Company.Company_ID, Company.Company_Name, Employees.Placeholder, Employee.Employee_ID, Employee_Name
FROM Companies AS Company
CROSS APPLY...
May 29, 2012 at 2:33 pm
Part of the problem is that you are using FOR XML AUTO. It is usually much easier to construct the necessary XML structure using FOR XML PATH with nested...
May 29, 2012 at 2:16 pm
Viewing 15 posts - 3,121 through 3,135 (of 4,087 total)