Pivoting with SSRS?
Hi Guys
I am very new to SSRS/SQL
I have been cracking my head over this but still can't find a solution. I would like to present it in a pivot kind of way.
This is what I have:
Cust.Type | CUSTDOC | Cr.Date | Ln.Num | Qty | Due.Date
Local | CORD0001 | 14-May-14 | 8 | 33 | 16-May-14
Local | CDSP0001 | 15-May-14 | 5 | 25 | 16-May-14
Local | CINV0001 | 16-May-14 | 5 | 25 | 16-May-14
Local | CDSP0001/1 | 19-May-14 | 2 | 5 | 19-May-14
Local | CINV0001/1 | 19-May-14 | 2 | 5 | 19-May-14
Local | CDSP0001/2 | 25-May-14 | 1 | 3 | 25-May-14
Local | CINV0001/2 | 25-May-14 | 1 | 3 | 25-May-14
Local | SINV2234 |
Local | CRED8384 |
Int | CORD0002 | 30-Jun-14 | 5 | 15 | 12-Jul-14
Int | CDSP0002 | 11-Jul-14 | 5 | 15 | 12-Jul-14
I would like to arrange it by order number
Cust.Type | Order Number | Order.Date | Order.Due | C.Disp | Disp.Due | etc.
Local | 0001 | 14-May-14 | 16-May-14 | 15-May-14| 16-May-14 | etc.
I am using SSRS2012 Express.
Can someone give me a hand here?
Thanks H
If you want to do this in SSRS, you need to use a matrix container
then configure it as below
RowGroup
Fields!CustType.value
SUBSTRING(Fields!CUSTDOC.value,5,Len(Fields!CUSTDOC.value))
Column Group
Left(Fields!CUSTDOC.value,4)
and add below for data expression after adding required number of columns inside data portion
=MAX(Fields!CrDate.Value)
=MAX(Fields!DueDate.Value)..
If you want to do this in sql do like below
SELECT CustType,STUFF(CUSTDOC,1,4,''),
MAX(CASE WHEN LEFT(CUSTDOC,4) = 'CORD' THEN CrDate END) AS OrderDate,
MAX(CASE WHEN LEFT(CUSTDOC,4) = 'CORD' THEN DueDate END) AS DueDate,
MAX(CASE WHEN LEFT(CUSTDOC,4) = 'CDISP' THEN CrDate END) AS CDIsp,
MAX(CASE WHEN LEFT(CUSTDOC,4) = 'CDISP' THEN DueDate END) AS DispDueDate,
FROM Table
GROUP BY CustType,STUFF(CUSTDOC,1,4,'')
and add a table container in report and add data fields as is from the dataset
Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs
Similar Messages
-
Performance with SSRS on Sharepoint
Hi,
Environment: Sharepoint 2010, SSRS deployed in Share Point integrated mode.
Problem: Performance of page load with ssrs reports
I have a Share Point page which displays 10 SSRS report, SSRS reports only contains 1 graph each. SSRS graph are displayed on sharepoint using a custom Web part. Report url is passed to webpart and it renders the report. Sharepoint page act as an dashboard.
Data points:
Sharepoint page takes 1 sec to load without any SSRS report on it. So I guess everything is fine from SharePoint configuration perspective
With 1 report on page, load time is 6sec
With 2 reports on page, load time is 8 sec
With 3 reports on page, load time is 12 sec
With all 10 reports, load time is 22 sec
SSRS reports are very small and none of the proc used inside them takes more than 2 sec to pull data. Though reports take ,
5-6 sec when opened from report library.
I have checked all my system parameter CPU,Memory, network, all are fine.
I have tried to load custom webparts asynchronously using
AsyncRendering="True",
the page header loads in 1 sec but report loading happens sequencely(one after one) and still take 22 sec to complete page load. During 22 sec loaded reports are visible in grey and become active after complete page load.
What steps can be taken to improve page load time.
TIA
Rahul Kumar, MCTS, India, http://sqlserversolutions.blogspot.com/Hi,
In SharePoint Server 2010, there are certain limits that are by design and cannot be exceeded, including page.
You can take a look at the documentation below about
SharePoint Server 2010 capacity management: Software boundaries and limits:
http://technet.microsoft.com/en-us/library/cc262787(v=office.14).aspx#Page
As your test result suggests, when there are many reports display in one page, the performance would be affected significantly.
A workaround is that we can optimize the report processing to shorten the time of page loading.
The documentation below will provide some
Design Tips for Optimizing Report Processing:
http://technet.microsoft.com/en-us/library/bb522806(v=sql.105).aspx#Tips
Another suggestion is that you can try to split the reports into different pages based on the real business need and perform page redirection for a better performance.
Thanks
Patrick Liang
Forum Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
[email protected]
Patrick Liang
TechNet Community Support -
Hi all,
I am facing some issue with ssrs expression.
I used below expression to show sum of budget.
=Sum( CDbl(Fields!Budget.Value))
When I preview the report it shows #Error in that textbox.
Please help me to fix this one , I am not getting where its breaking..
Thanks
RohitHi Rohit,
According to your description, you want to sum the [EstimatedCostField] with an expression.
In your scenario, since the [EstimatedCostField] is budget which you want to perform sum calculation, you should specify the sum expression like below:
=Sum(CDbl(Fields!EstimatedCostField.Value))
If issue persists, please run the report in the BIDS then check the warning message in output to see the detail information about the #Error. Besides, please also share the report design for our analysis.
If you have any question, please feel free to ask.
Best regards,
Qiuyun Yu
Qiuyun Yu
TechNet Community Support -
Windows Integrated Security with SSRS, Sharepoint 2013 and SSAS over http
I have the following setup and problem:
Sharepoint 2013 with SSRS in Sharepoint integrated mode
SSAS 2012 SP1 with http access (IIS + msmdpump) enabled on the same box as SSAS
Every component I have tried works fine with this (PerformancePoint, .bism connections, SSIS packages etc.), connecting over http using Kerberos and windows integrated authentication.
SSRS (.rsds) connections in Sharepoint fail a connection test when using the same http connection string + Windows integrated authentication which works for everything else. The error is: "Unsupported data format: -> Microsoft.ReportingServices.DataExtensions.AdomdTestConnectionException:
Unsupported data format:"
SQL server profiler shows that the windows username is reaching the SSAS server is all cases.
Kerberos delegation is set up for SSAS and is working.
Switching the .rsds connection to saved credentials (same user as I tried with Windows integrated auth) works fine and SQL server profile logs look the same as the Windows integrated case.
So, everything seems to work with Kerberos + http apart from SSRS ... any idea welcome. I did read that SSPI is not supported for http connections but then again, there are sites which give examples of exactly such connection strings. I can't find any
mention of this case or exact problem anywhere ...For information, this was fixed by applying the .NET 4.5.1 patch as advised by MS support. Now http connections from integrated mode SSRS work ok.
-
Hi all Thanks in Advance
I need help in Pivoting Data
SELECT ID,MONTH,COUNT FROM TABLE_PIVOT ORDER BY ID,MONTH
ID MONTH COUNT
10 10/01/2009 60
10 11/01/2009 80
10 12/01/2009 78
10 01/01/2010 81
10 02/01/2010 73
10 03/01/2010 84
10 04/01/2010 100
10 05/01/2010 107
10 06/01/2010 90
10 07/01/2010 0
10 08/01/2010 0
10 09/01/2010 73
20 10/01/2010 71
20 11/01/2010 76
20 12/01/2010 79
20 01/01/2011 79
20 02/01/2011 81
20 03/01/2011 88
20 04/01/2011 97
20 05/01/2011 87
20 06/01/2011 97I tried to pivot with below query
SELECT ID,
SUM(DECODE(to_char(month,'MM'),'01',count,0)) " Jan",
SUM(DECODE(to_char(month,'MMYY'),'02',count,0)) Feb,
SUM(DECODE(to_char(month,'MM'),'03',count,0)) Mar,
SUM(DECODE(to_char(month,'MM'),'04',count,0)) Apr,
SUM(DECODE(to_char(month,'MM'),'05',count,0)) May,
SUM(DECODE(to_char(month,'MM'),'06',count,0)) June,
SUM(DECODE(to_char(month,'MM'),'07',count,0)) July,
SUM(DECODE(to_char(month,'MM'),'08',count,0)) August,
SUM(DECODE(to_char(month,'MM'),'09',count,0)) September,
SUM(DECODE(to_char(month,'MM'),'10',count,0)) October,
SUM(DECODE(to_char(month,'MM'),'11',count,0)) November,
SUM(DECODE(to_char(MONTH,'MM'),'12',count,0)) December
FROM Table_PIVOT
GROUP BY ID
ORDER BY ID
ID Jan FEB MAR APR MAY JUNE JULY AUGUST SEPTEMBER OCTOBER NOVEMBER DECEMBER
10 81 0 84 100 107 90 0 0 73 60 80 78
20 79 0 88 97 87 97 0 0 0 71 76 79I want output to display the column names with Month and Year like below
ID Oct-2009 Nov-2009 Dec-2009 Jan-2010 Feb-2010 ................... OCT-2010 NOV-2010 DEC-2010 JAN-2011 FEB-2011 ......
10 60 80 78 81 73 ...................
20 71 76 79 79 81
CREATE TABLE "TABLE_PIVOT"
( "ID" NUMBER,
"MONTH" DATE,
"COUNT" NUMBER
Insert into TABLE_PIVOT (ID,MONTH,COUNT) values (10,to_timestamp('10/01/2009','MM/DD/YYYY'),60);
Insert into TABLE_PIVOT (ID,MONTH,COUNT) values (10,to_timestamp('11/01/2009','MM/DD/YYYY'),80);
Insert into TABLE_PIVOT (ID,MONTH,COUNT) values (10,to_timestamp('12/01/2009','MM/DD/YYYY'),78);
Insert into TABLE_PIVOT (ID,MONTH,COUNT) values (10,to_timestamp('01/01/2010','MM/DD/YYYY'),81);
Insert into TABLE_PIVOT (ID,MONTH,COUNT) values (10,to_timestamp('02/01/2010','MM/DD/YYYY'),73);
Insert into TABLE_PIVOT (ID,MONTH,COUNT) values (10,to_timestamp('03/01/2010','MM/DD/YYYY'),84);
Insert into TABLE_PIVOT (ID,MONTH,COUNT) values (10,to_timestamp('04/01/2010','MM/DD/YYYY'),100);
Insert into TABLE_PIVOT (ID,MONTH,COUNT) values (10,to_timestamp('05/01/2010','MM/DD/YYYY'),107);
Insert into TABLE_PIVOT (ID,MONTH,COUNT) values (10,to_timestamp('06/01/2010','MM/DD/YYYY'),90);
Insert into TABLE_PIVOT (ID,MONTH,COUNT) values (10,to_timestamp('07/01/2010','MM/DD/YYYY'),0);
Insert into TABLE_PIVOT (ID,MONTH,COUNT) values (10,to_timestamp('08/01/2010','MM/DD/YYYY'),0);
Insert into TABLE_PIVOT (ID,MONTH,COUNT) values (10,to_timestamp('09/01/2010','MM/DD/YYYY'),73);
Insert into TABLE_PIVOT (ID,MONTH,COUNT) values (20,to_timestamp('10/01/2010','MM/DD/YYYY'),71);
Insert into TABLE_PIVOT (ID,MONTH,COUNT) values (20,to_timestamp('11/01/2010','MM/DD/YYYY'),76);
Insert into TABLE_PIVOT (ID,MONTH,COUNT) values (20,to_timestamp('12/01/2010','MM/DD/YYYY'),79);
Insert into TABLE_PIVOT (ID,MONTH,COUNT) values (20,to_timestamp('01/01/2011','MM/DD/YYYY'),79);
Insert into TABLE_PIVOT (ID,MONTH,COUNT) values (20,to_timestamp('02/01/2011','MM/DD/YYYY'),81);
Insert into TABLE_PIVOT (ID,MONTH,COUNT) values (20,to_timestamp('03/01/2011','MM/DD/YYYY'),88);
Insert into TABLE_PIVOT (ID,MONTH,COUNT) values (20,to_timestamp('04/01/2011','MM/DD/YYYY'),97);
Insert into TABLE_PIVOT (ID,MONTH,COUNT) values (20,to_timestamp('05/01/2011','MM/DD/YYYY'),87);
Insert into TABLE_PIVOT (ID,MONTH,COUNT) values (20,to_timestamp('06/01/2011','MM/DD/YYYY'),97);
COMMIT;Hi,
user1849 wrote:
Any Sample code is appreciated
I didn't see any solution for following one in your linklI think Centinul was specifically referring to:
Help for a query to add columns
but other links from
SQL and PL/SQL FAQ
may help you more.
>
Re: How to pipeline a function with a dynamic number of columns?
Posted: May 9, 2006 2:58 PM in response to: Billy Verreynne Reply
Interesting stuff! It's going to take me awhile to digest it.
For what it's worth, I was trying to build a pivoting function that would take a MYTABLE table like this:
YEAR CITY X Y
2000 BAL 95 96
2000 BOS 101 101
2001 BAL 92 94
2001 BOS 101 101
2002 BAL 98 98
2002 BOS 98 99
2003 BAL 95 96
2003 BOS 105 104
and allow me to do something like:
CREATE VIEW MYPIVOT
AS
SELECT *
FROM TABLE (PIVOT(MYTABLE, [with other params]))
and get the following view MYPIVOT on the table:
YEAR BOS_X BOS_Y BAL_X BAL_Y
2000 101 101 95 96
2001 101 101 92 94
2002 98 99 98 98
2003 105 104 95 96
Where the number of distinct CITY values will vary over time. I am able to build the query I need dynamically, but since the CITY data values in the original table change, the columns are not necessarily static from invocation to invocation. Therefore I didn't want to just create a view using the dynamic SQL once, because it may need to be created next time I need to access the view. I wanted to be able to access the pivoted data on demand.A pipelined function is your best bet for that.
I couldn't do was be able to execute the query and treat it as a pipelined function, hence my original question.Sorry, I don't understand.
I'll dig into the code above to see if it does what I wanted, but if someone has a better suggestion on how to approach this, I'd be interested in hearing it.A completely different approach is String Aggregation , where you would get output like this:
YEAR TXT
BOS_X BOS_Y BAL_X BAL_Y
2000 101 101 95 96
2001 101 101 92 94
2002 98 99 98 98
2003 105 104 95 96Note that this output contains 6 rows and 2 columns. On the first row, year is NULL and txt=' BOS_X BOS_Y BAL_X BAL_Y'. You can do this is pure, static SQL, without knowing the number of cities in advance. -
How to import weather data without using SSIS; only with SSRS
I am trying to develop a chart showing the weather data using SSRS. I do not have SSIS.
Is there a free web service that you can offer me? Also a brief step by step guide on how to provision it would be nice.
I am currently looking into http://graphical.weather.gov but have no idea how to use it with SSRS.
Please advise,
ThanksI have created such a Report using Yahoo weather web Service and wrote a blog including downloadable example; it's in German, but you could use an online translator:
http://olafhelper.over-blog.de/article-der-aktuelle-wetter-ssrs-bericht-73766985.html
Olaf Helper
[ Blog] [ Xing] [ MVP] -
PIVOT with multiple columns to add and multiple levels of grouping
Hi friends,
I got a table with the columns in the form of:
CRITERIA_A,
CRITERIA_B,
CRITERIA_C,
AMOUNT_A,
AMOUNT_B,
AMOUNT_C,
AMOUNT_D
Any way to design a pivot to present the table reflecting:
Sums of Amount_A, Amount_B, Amount_C, Amount_D
For Rows reflecting grouping levels on:
Criteria_B, Criteria_C
and Columns breakup for:
Criteria_A?
An example like:
Criteria_A1
Criteria_A2
Criteria_A3
Criteria_A4
Row Labels
Sum of Amount_A
Sum of Amount_B
Sum of Amount_C
Sum of Amount_D
Sum of Amount_A
Sum of Amount_B
Sum of Amount_C
Sum of Amount_D
Sum of Amount_A
Sum of Amount_B
Sum of Amount_C
Sum of Amount_D
Sum of Amount_A
Criteria_B3
94
107
36
127
84
132
41
176
24
16
67
29
38
Criteria_C1
24
25
5
49
14
66
5
49
24
16
67
29
Criteria_C2
70
82
31
78
38
Criteria_C3
38
41
31
78
Criteria_C4
32
25
5
49
Criteria_B1
56
142
78
26
32
25
67
8
24
Criteria_C2
24
66
26
8
32
25
67
8
Criteria_C3
32
76
52
18
Criteria_C4
24
Criteria_B2
162
309
264
81
132
230
155
124
14
25
52
8
38
Criteria_C1
38
76
26
8
62
98
98
66
14
25
52
8
38
Criteria_C2
86
157
186
44
70
132
57
58
Criteria_C3
38
76
52
29
Criteria_B4
100
148
130
116
56
142
93
57
46
Criteria_C1
24
66
67
49
32
Criteria_C2
32
76
26
8
14
Criteria_C3
76
82
78
67
Criteria_C4
24
66
52
49
Grand Total
312
558
378
234
348
535
393
424
94
183
212
94
146
Thanx in advance, Best Regards, Faraz A QureshiSounds like this to me if in T-SQL query
(best guess based on what you posted)
SELECT
CRITERIA_B,
CRITERIA_C,
SUM(CASE WHEN CRITERIA_A = 'Critera_A1' THEN AMOUNT_A ELSE 0 END) AS CRITERIA_A1_AMOUNT_A,
SUM(CASE WHEN CRITERIA_A = 'Critera_A1' THEN AMOUNT_B ELSE 0 END) AS CRITERIA_A1_AMOUNT_B,
SUM(CASE WHEN CRITERIA_A = 'Critera_A1' THEN AMOUNT_C ELSE 0 END) AS CRITERIA_A1_AMOUNT_C,
SUM(CASE WHEN CRITERIA_A = 'Critera_A2' THEN AMOUNT_A ELSE 0 END) AS CRITERIA_A2_AMOUNT_A,
SUM(CASE WHEN CRITERIA_A = 'Critera_A2' THEN AMOUNT_B ELSE 0 END) AS CRITERIA_A2_AMOUNT_B,
SUM(CASE WHEN CRITERIA_A = 'Critera_A2' THEN AMOUNT_C ELSE 0 END) AS CRITERIA_A2_AMOUNT_C,
SUM(CASE WHEN CRITERIA_A = 'Critera_AN' THEN AMOUNT_A ELSE 0 END) AS CRITERIA_AN_AMOUNT_A,
SUM(CASE WHEN CRITERIA_A = 'Critera_AN' THEN AMOUNT_B ELSE 0 END) AS CRITERIA_AN_AMOUNT_B,
SUM(CASE WHEN CRITERIA_A = 'Critera_AN' THEN AMOUNT_C ELSE 0 END) AS CRITERIA_AN_AMOUNT_C,
FROM Table
GROUP BY CRITERIA_B,
CRITERIA_C
to make it dynamic see
http://beyondrelational.com/modules/2/blogs/70/posts/10791/dynamic-crosstab-with-multiple-pivot-columns.aspx
However it would be much easier to build this in SSRS reports using matrix if you can use it.
In that case just bring data as is
then add a matrix to report
Add column grouping on Criteria A and Row grouping on Criteria B and then Criteria C .
In data portion add three columns with expressions as
=SUM(Fields!Amount_A.Value)
=SUM(Fields!Amount_B.Value)
=SUM(Fields!Amount_C.Value)
then you will get exact format what you're asking for
Please Mark This As Answer if it solved your issue
Please Vote This As Helpful if it helps to solve your issue
Visakh
My Wiki User Page
My MSDN Page
My Personal Blog
My Facebook Page -
Sharepoint foundation 2010 integrate it with ssrs
hello,
I am integrating sql server and sharepoint foundation 2010 server both are installed in different pc,
First i have installed sql server in machine 1 ,
second i installed sharepoint foundation 2010 in machine 2
with complete mode,
third i installed sharepoint foundation 2010 in
machine 1 for minimal installation with complete mode,
and integrated ssrs.
Its working fine.
But i need to know whether we can install sharepoint foundation 2010 standalone mode in
machine 1 which is a sql server.
I hope this topic might be help full to many people's.
thanks
regards
krishnakumarHi krishnakumar,
The Short Answer: YES
The Long Answer: The report server instance cannot use the SQL Server Express Edition for its database. However, the SQL Server Express Edition instance that is installed by the SharePoint product or technology can exist side-by-side with other Database
Engine editions that you might also install. For more information about edition requirements for the report server database, see
Creating a Report Server Database.
Reference:
http://technet.microsoft.com/en-us/library/bb677368(v=sql.105).aspx
Cheers,
-Ivan -
How to Handle Dynamic Pivoting with a single SQL?
I was searching for a single SQL who can dynamically understands the pivoting members in the data, I saw several ways of doing Pivoting depending on the version, some are really hard to understand but just two options upto now seams to be flexable enough to do dynamic pivoting, right?
1- For this option you have to write PL/SQL block to build up the dynamic single SQL query, I also find this approach very easy to understand. :)
http://asktom.oracle.com/pls/asktom/f?p=100:11:0::NO::P11_QUESTION_ID:766825833740
2- 11.1 's PIVOT new feature with PIVOT XML and ANY clause, a SINGLE SQL and easy to understand but returns XMLTYPE data, another step to parse to produce the report is needed.
http://www.oracle-developer.net/display.php?id=506
Below is a 10g Model Clause example, but here instead of pivoting by A1-A2-A3 staticly I want to have these values by a distinc subquery for example;
create table test(id varchar2(2), des varchar2(4), t number);
INSERT INTO test values('A','a1',12);
INSERT INTO test values('A','a2',3);
INSERT INTO test values('A','a3',1);
INSERT INTO test values('B','a1',10);
INSERT INTO test values('B','a2',23);
INSERT INTO test values('C','a3',45);
commit;
SELECT * FROM test;
ID DES T
A a1 12
A a2 3
A a3 1
B a1 10
B a2 23
C a3 45
select distinct i, A1, A2, A3
from test c
model
ignore nav
dimension by(c.id i,c.des d)
measures(c.t t, 0 A1, 0 A2, 0 A3)
rules(
A1[any,any] = t[cv(i),d = 'a1'],
A2[any,any] = t[cv(i),d = 'a2'],
A3[any,any] = t[cv(i),d = 'a3']
I A1 A2 A3
C 0 0 45
B 10 23 0
A 12 3 1 Any advice is appreciated, thank you.Hi,
You can do dynamic SQL in SQL*Plus, also.
[Thid thread|http://forums.oracle.com/forums/thread.jspa?messageID=2744039�] shows how to pivot a table with a dynamic number of columns. -
Outlook 2013 with SSRS charts in MHTML displays wrong image in email
Hi,
I've posted this question already to the SQL Server group and the SQL Team confirms this is potentially an issue with Outlook 2013 and image cache changes between 2010 and 2013. Please see the more detailed post here for more information: https://social.msdn.microsoft.com/Forums/sqlserver/en-US/e34516c5-53cd-4792-bc6d-4cb6e41e63cf/ssrs-2012-with-mthml-subscriptions-graphs-and-outlook-cache-issues?forum=sqlreportingservices
In short, when changing between emails that display charts from SSRS distributed via MHTML, Outlook 2013 will display the wrong graph from its image cache. This issue does NOT happen when opening the email in a browser by using the "View in Browser"
option from the Information ribbon in the email.
The issue began after upgrading from Outlook 2010 to 2013 so it would appear that the image cache algorithm has changed. We need a resolution to stop this from happening that does not include turning off cached exchange mode. I've tried changes
in the Trust center by turning off the viewers but that doesn't fix anything.
We are using Office 365 and Outlook 2013 x64 SP1.
Has anyone else experienced this or found a workaround for the issue? This is what it looks like when clicking between emails and then opening in the browser.
Thanks,
KevinOutlook uses Word as an email editor. That's why you may see the difference between the browser and Outlook inspectors. See the following series of articles for more information:
Word 2007 HTML and CSS Rendering Capabilities in Outlook 2007 (Part 1 of 2)
Word 2007 HTML and CSS Rendering Capabilities in Outlook 2007 (Part 2 of 2) -
How can I use web service call for edit a report with SSRS in Java Struts2 web application
Hello im new in SSRS technologie and I would like make web service call at my SSRS server. Is sombody can help me ?
- What API should I import in my project ? I use Maven can I found this API on Maven repository ?
- I would like have an sample of code which initialize the ReportingService, do the call and process result.
We use the SQL Server ReportingService 2008 R2 and currently we made HTTP call like this : http://<ssr_server>/ReportServer/Pages/ReportViewer.aspx?%2fSSRS_OMB%2fMyReport&rs:Command=Render&MyParam=<value>
RegardsHi ombinte,
SQL Server Reporting Services provides access to the full functionality of the report server through the Report Server Web service. Because the Report Server Web service is an XML Web service which uses Simple Object Access Protocol (SOAP) over Hypertext Transfer
Protocol (HTTP), any SOAP-aware application or development tool can communicate with the SSRS web service.
There are three primary ways to develop Reporting Services applications based on the Web service, please see:
Develop applications using Microsoft Visual Studio and the Microsoft .NET Framework SDK.
Develop applications using the rs utility (RS.exe), the Reporting Services script environment.
Develop applications using any SOAP-enabled set of development tools.
For more information about Report Server Web Service, you can refer to the following document:
http://technet.microsoft.com/en-us/library/ms152787.aspx
Hope this helps.
Thanks,
Katherine Xiong
Katherine Xiong
TechNet Community Support -
Error while upgrading web application with SSRS from 2010 to 2013
I am trying to upgrade a site collection which has SSRS reports in it. When I run Test-SPContentDatabase
with database of SP2010 and the new web application of 2013 I obtain the errors:
Category : MissingWebPart
Error : True
UpgradeBlocking : False
Message : WebPart class [ab6d9dad-e23c-ce4f-ff98-f6575a1ccf4c] (class [
Microsoft.ReportingServices.SharePoint.UI.WebParts.ReportView
erWebPart] from assembly
[Microsoft.ReportingServices.SharePoint.UI.WebParts,
Version=10.0.0.0, Culture=neutral,
PublicKeyToken=89845dcd8080cc91]) is referenced [6] times in
the database [Areas_10100], but is not installed on the
current farm. Please install any feature/solution which
contains this web part.
Remedy : One or more web parts are referenced in the database
[Areas_10100], but are not installed on the current farm.
Please install any feature or solution which contains these
web parts.
Locations :
Category : MissingAssembly
Error : True
UpgradeBlocking : False
Message : Assembly
[Microsoft.ReportingServices.SharePoint.UI.ServerPages,
Version=10.50.0.0, Culture=neutral,
PublicKeyToken=89845dcd8080cc91] is referenced in the
database [Areas_10100], but is not installed on the current
farm. Please install any feature/solution which contains
this assembly.
Remedy : One or more assemblies are referenced in the database
[Areas_10100], but are not installed on the current farm.
Please install any feature or solution which contains these
assemblies.
Locations :
SSRS are configured in both farms (2010 and 2013). In 2010 farm is SSRS 2008 R2. In the environment of 2013 farm is SSRS 2012.
Any idea?Similar Thread:
http://social.technet.microsoft.com/Forums/sharepoint/en-US/68cc3179-8ed8-4435-b645-11f79f8bdc1f/upgrade-test-testspcontentdatabase-reporting-services-error?forum=sharepointadmin
This post is my own opinion and does not necessarily reflect the opinion or view of Slalom. -
Using Sharepoint 2013 with SSRS native mode !
Hi there !
We have 2 servers A & B. A is Sharepoint server and on B we have installed SSRS in native mode. Server C is database. We are not looking to use SharePoint Integration mode but We are planning to use native mode only !
We are looking for a way to make A & B talk as how a report hosted on B will show up on A since its not in integrated mode?
Can you please let us know of the proper steps to deploy this?
Thanks in Advance !the "integration" between SP and SSRS native mode is basically an IFrame.
you should be able to find the RS native mode integration solution file (which is just two webparts, the report manager web part, and report viewer web part) somewhere on the SQL server / media... should still work with SP2013.
Keep in mind that SharePoint's authentication will be COMPLETELY INDEPENDENT AND UNUSED when accessing the reports... an iFrame is just another web request made by the browser.
Scott Brickey
MCTS, MCPD, MCITP
www.sbrickey.com
Strategic Data Systems - for all your SharePoint needs -
SharePoint 2013 with SSRS 2008R2
Can I use SharePoint 2013 to display reports from SQL Server 2008 R2 reporting services?
I could not find this combination in the Supported Combinations of SharePoint and Reporting Services Server and Add-in (SQL Server 2012) (https://msdn.microsoft.com/en-us/library/gg492257(v=sql.110).aspx)
Are there any workarounds to this in case its not possible to use it.
Thanks in advance for your help!As you know from the link it is not a supported combination within SharePoint.
There is nothing to stop you redirecting users to the native ssrs report url if you want/need to stay with SQL2008R2.
The report definition used by SQL Server 2008 R2/2012 and 2014 all support the same rdl schema(s).
http://technet.microsoft.com/en-us/library/dd207009.aspx
http://blogs.technet.com/b/sammykailini/archive/2013/02/09/issues-and-benefits-implementing-sharepoint-2013-using-sql-server-2008-r2-vs-sql-server-2012-sp1.aspx
Jon -
Stored Proc with SSRS multi value parameter gives " Must Declare scalar Varaiable @StateID
Hi All,
I have one stored proc with @fromDate , @Todate and multivalue input
parameter@StateID of type integer.
When I run below stored proc via SSRS by selecting multiple values thru multiValue parameter into @StateID...it gives error saying "Must Declare scalar variable @StateID"
Not sure what is wrong with the input parameters.
ID is Integer type in all the 3 tables - dbo.EastCities, dbo.WestCities , dbo.Country
I need help fixing this "Must Declare scalar variable @StateID" error
This is the UDF split() I am using..
Function:
CREATE FUNCTION dbo.SplitStateID
( @List VARCHAR(MAX))
RETURNS TABLE
AS
RETURN
( SELECT DISTINCT [Value] = CONVERT(INT, LTRIM(RTRIM(CONVERT( VARCHAR(12),SUBSTRING(@List, Number, CHARINDEX(',', @List + ',', Number) - Number))))
FROM dbo.Numbers
WHERE Number <= CONVERT(INT, LEN(@List))AND SUBSTRING(',' + @List, Number, 1) = ',' );
GO
SELECT [Value] FROM dbo.SplitStateID('10,30,50');
Also, I have created dbo.Numbers table which is used in udf..
reference url -- >
http://sqlblog.com/blogs/aaron_bertrand/archive/2009/08/01/processing-a-list-of-integers-my-approach.aspx
SET NOCOUNT ON;
DECLARE @UpperLimit INT;
SET @UpperLimit = 10000;
WITH n AS(
SELECT rn = ROW_NUMBER() OVER (ORDER BY s1.[object_id])
FROM sys.objects AS s1
CROSS JOIN sys.objects AS s2
CROSS JOIN sys.objects AS s3)
SELECT [Number] = rn - 1
INTO dbo.Numbers FROM n
WHERE rn <= @UpperLimit + 1;
CREATE UNIQUE CLUSTERED INDEX n ON dbo.Numbers([Number]);
Stored procedure:
Create Procedure dbo.CountrySelection
( @FromDate Date, @ToDate Date, @StateID Int)
AS
BEGIN
set nocount on;
SELECT * INTO #EastCities
FROM (
SELECT ID,Description from dbo.EastCities
Where ID IN (SELECT Value from dbo.SplitStateID(@StateID))
) AS A
SELECT * INTO #WestCities
FROM (
SELECT ID,Description from dbo.WestCities
Where ID IN (SELECT Value from dbo.SplitStateID(@StateID))
) AS B
SELECT * INTO #Country
FROM (
SELECT ID , Description, State,Country From dbo.Country
) AS C
SELECT EC.ID AS East, WC.ID AS West , EC.Description AS EastDesc, WC.Description AS WestDesc, CT.State, CT.Country
FROM #Country CT
LEFT JOIN #EastCities EC ON CT.ID=EC.ID
LEFT JOIN #WestCities WC ON CT.ID=WC.ID
DROP TABLE #EastCities
DROP TABLE #WestCities
DROP TABLE #Country
END
Above 3 temp tables are joined by #Country.ID key
It works fine when single value is passed in @StateID
Exec dbo.CountrySelection '01/01/2010','02/01/2010',10
It fails when multi value passed into @StateID
Exec dbo.CountrySelection '01/01/2010','02/01/2010','10,30,40'
SSRS error log shows "Must declare scalar variable @StateID"
Need help in fixing this issue.
Thanks,
RH
sqlVisakh,
I changed @StateID date type to varchar(max) and still I get this error.
System.Data.SqlClient.SqlException: Must declare the scalar variable "@StateID".
at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)
I am running this SO in SSRS quert Type =Text
Actually sp created on db2 database and due to some limitations I am running(via SSRS) this from different db1 database data source within the same db server. When I run this sp from SSRS query designer(edit query designer button) and pass
multivalue parameters to @StateID as 10 , 20 it works and gives expected resultset.
Thanks,
RH
sql
Maybe you are looking for
-
Flash animation wont appear in my web site?
Hi, I have created a flash animation to put ion my website that I'm building using dreamweaver. When I preview it the animation appears and works fine, but when I upload it and go to my site then the animation doesn't even appear on the page. My si
-
I am done with Verizon after 13 years.
When my husband started his new job it required him to provide his own cell phone with no allowance from his company. I had our usage reviewed and all the plans were explained to me. When I realized we were cutting it close I inquired about upping
-
JDeveloper fails to connect after enabling SSL Listen Port
Hi, When I activate SSL on port 8002 (SSL Listen Port Enabled) for my soa_server in weblogic console, JDeveloper fails to connect to the server when deploying. Soa server lookup takes a long time an ends in an error failed to connect to <server>:8002
-
How to make my exported movie bigger?
When I export my finished project as a QuickTime, the video canvas becomes REALLY small for some reason. Also, there is a huge black border around the entire video. Is there a format that will prevent that?
-
I would like to replace my retina display
I would like to replace my retina display because of image retention. Is it possible to replace it?