Viewing 15 posts - 3,121 through 3,135 (of 4,085 total)
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...
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
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
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
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...
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
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
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
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...
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
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...
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
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. ...
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
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....
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
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...
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
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
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
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...
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
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...
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
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...
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
May 29, 2012 at 2:16 pm
A brief overview.
In SSIS, create an ADO recordset with the managers and then use a FOR EACH ADO enumerator container to produce the Excel file for each manager. The...
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
May 29, 2012 at 9:05 am
Jeff Moden (5/25/2012)
drew.allen (5/14/2012)
Sean Lange (5/11/2012)
themangoagent (5/11/2012)
Jeff Moden (5/10/2012)
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
May 29, 2012 at 8:37 am
Viewing 15 posts - 3,121 through 3,135 (of 4,085 total)