Quantcast
Channel: SQL Server Reporting Services, Power View forum
Viewing all 10045 articles
Browse latest View live

Update table only if value is not null/empty?

$
0
0

I have a stored procedure that has two input parameters: @FirstName, @Lastname and @EmployeeId.

My UPDATE is simple:

UPDATE dbo.Employee
set FirstName = @FirstName,
LastName = @LastName
where EmployeeId = @EmployeeId

But let's say I just want to run this stored procedure just to update the LastName, how can I determine within the UPDATE if the parameter is null. So in this particular call, the value for @FirstName would be null:

The pseudocode would be something like this:

UPDATE dbo.Employee
set FirstName = @FirstName,
LastName = IF (@LastName is null) then LastName ELSE @Lastname
where EmployeeId = @EmployeeId
Thanks.


VM



Data Set Expressions

$
0
0

Hi

I am using Visual Studio 2008 BIDS and need help with a couple of expressions.

I have a data set as show in 1st image below

Image 2 shows a typical output from this Data Set

I need to produce the following information on the report.

TOTAL:     ="£"& Sum(Fields!ChargeAmount.Value,"Charges")    - this works as required

I then need to show the RENT part on its own on separate line

RENT:        This should show in this case £220.18 from an expression

I then need to show the Total of all the remaining charges on another line

SERVICE:  In this case this should show the sum of all charges excluding RENT.

In this example there are 4 service charges but this may be any number of charges depending on Tenancy Number chosen. However every single Tenancy Number will always have a RENT amount and Charge Description of RENT.

I have bee trying loads of combinations to get this to work but with no success. Any help will be much appreciated.

Thanks

John

Why does this generate an error in SSMS 2012?

$
0
0

PRINT 'Hello';GO

SSMS insists on:

PRINT 'Hello';

GO

i.e. two lines.

Thanks!


-A

Cannot read the next data row for the data set

$
0
0

Hi,

My report runs fine when I view in VS, data shows fine when I run the query in the data window, but when I publish it to the server, I get the above error. I am running SQL server 2005 RTM and I have re-deployed the entire solution.

Any ideas?

Performance in SSRS

$
0
0

Hi i has a Report which pulls 900 records from a 5 million Data set.

Actually i have tuned my Stored Procedure.While running the Sp against SQL SERVER Database it was taking only few sec(4) but when i run that Report which uses that SP it was taking almost 45 sec to show up the data on report manager.

In this case how can i tune in Report Manger.Why the both times are different?

Excel Power View does now show map upon re-open Excel

$
0
0

Hello All - Have Excel 2013, I am retrieving data from a SQL Server into PowerPivot or just an Excel Sheet.  From the data I insert a PowerView tab (sheet) and based on my data create a map.  It works great, I save my excel file but when I reopen the Excel file and go to my PowerView tab (sheet) I have a blank screen.   The only way so far I am able to get the map back is to go and insert another PowerView tab.  As soon as I insert the second PowerView tab, then my map on the first PowerView tab will appears.  If I save it again and come back I have the same issue.

I think the map is using Silverlight to show the map but not sure.  Anyone had or having this issue?

Thank you.

p.s. I hope I post this in the right forum!  

SQL2008R2 Reporting Services: Subscribing Report to multiple email list from table

$
0
0

Hi,

I need to subscribe one report from SSRS to different set of people. EMail list is dynamic and will come from a database table.

Could somebody help us please.

InternalCatalogException in Reporting Services 2008 - no reports rendering

$
0
0

Hi all,

We've had an unexpected outage on two of our reporting services server overnight and we're hoping someone can point us in the right direction.  We have a Windows Server 2008 machine running about 5 instances of reporting services in standalone, non-IIS mode.

Two of these instances have started hitting exceptions when rendering any reports.  I include an excerpt from the log below.

The first evidence of a problem in the log is an InternalCatalogException, of which I can find many unrelated hits when searching the forums so I don't think this is specific enough to trace.  I do note a reference to "segmentedChunkStore" in the text which seems like a better clue.

I've eliminated the idea of a machine/OS issue due to several instances not affected by this problem.  There is some possibly related info which may help:

-This machine is a HyperV VM which has been moved between hosts within the last few weeks. In the process, all Report Server databases were backed up and restored at the new site.
- It uses a Custom Authentication extension authored by us.
- Within the last few days, users of three RS instances advised that a role permission they had prior to the move (Consume Reports Task) was no longer granted.  I had to re-grant this to the role.  The two RS instances now experiencing the InternalCatalogException issue raised an error at the time about not being able to find a group when I granted the task.  I added the group, granted again, and it granted without error so I thought nothing more of it.
- These two RS instances have been working fine since the HyperV host move right up until last night.
- The machine had several Windows Updates queued up which were installed last night.  Since completion of the updates and subsequent reboot, these two Reporting Services instances now raise this InternalCatalogException error when trying to render any reports from Report Manager, Report Server, or previous from Report Viewer.

At this point, I'm suspecting some sort of data corruption has occurred in the ReportServer databases, initially causing the loss of the Consume Reports permission and, after a reboot, these exeptions. But any suggestions on how to troubleshoot further greatly appreciated. Here is the excerpt from the log.

library!ReportServer_0-1!8d4!09/19/2012-20:55:53:: Call to GetItemTypeAction(/Risk Manager/Dashboard Module/Medsys/IncConseqCountYTD).
library!ReportServer_0-1!12f0!09/19/2012-20:55:53:: Call to GetItemTypeAction(/Risk Manager/Dashboard Module/Medsys/IncCount13Months).
library!ReportServer_0-1!f98!09/19/2012-20:55:53:: Call to GetItemTypeAction(/Risk Manager/Dashboard Module/Medsys/my30DayActionList).
library!ReportServer_0-1!10c0!09/19/2012-20:55:53:: Call to GetItemTypeAction(/Risk Manager/Dashboard Module/Medsys/org30DayStatusPanel).
library!ReportServer_0-1!830!09/19/2012-20:55:54:: i INFO: RenderForNewSession('/Risk Manager/Dashboard Module/Medsys/org30DayStatusPanel')
library!ReportServer_0-1!830!09/19/2012-20:55:54:: e ERROR: Throwing Microsoft.ReportingServices.Diagnostics.Utilities.InternalCatalogException: An internal error occurred on the report server. See the error log for more details.,segmentedChunkStore;
 Info: Microsoft.ReportingServices.Diagnostics.Utilities.InternalCatalogException: An internal error occurred on the report server. See the error log for more details.
library!ReportServer_0-1!830!09/19/2012-20:55:55:: i INFO: Exception InternalCatalogException dumped to: C:\Program Files\Microsoft SQL Server\MSRS10.TESTIMPACRS\Reporting Services\Logfiles flags= ReferencedMemory, AllThreads, SendToWatson
chunks!ReportServer_0-1!830!09/19/2012-20:55:55:: w WARN: Rolling back shared chunk transaction for snapshot '49663ae9-6692-4ea2-8a5d-210de4729653', Permanent=False.
library!ReportServer_0-1!830!09/19/2012-20:55:55:: w WARN: Microsoft.ReportingServices.Diagnostics.Utilities.InternalCatalogException: An internal error occurred on the report server. See the error log for more details.
library!ReportServer_0-1!ff8!09/19/2012-20:55:55:: i INFO: RenderForNewSession('/Risk Manager/Dashboard Module/Medsys/my30DayStatusPanel')
library!ReportServer_0-1!8d4!09/19/2012-20:55:55:: i INFO: RenderForNewSession('/Risk Manager/Dashboard Module/Medsys/triCountPanel')
library!ReportServer_0-1!8d4!09/19/2012-20:55:55:: e ERROR: Throwing Microsoft.ReportingServices.Diagnostics.Utilities.InternalCatalogException: An internal error occurred on the report server. See the error log for more details., segmentedChunkStore;
 Info: Microsoft.ReportingServices.Diagnostics.Utilities.InternalCatalogException: An internal error occurred on the report server. See the error log for more details.
library!ReportServer_0-1!ff8!09/19/2012-20:55:55:: e ERROR: Throwing Microsoft.ReportingServices.Diagnostics.Utilities.InternalCatalogException: An internal error occurred on the report server. See the error log for more details., segmentedChunkStore;
 Info: Microsoft.ReportingServices.Diagnostics.Utilities.InternalCatalogException: An internal error occurred on the report server. See the error log for more details.
chunks!ReportServer_0-1!ff8!09/19/2012-20:55:55:: w WARN: Rolling back shared chunk transaction for snapshot '68d6456c-1ed0-46eb-8bec-37b04f94065a', Permanent=False.
library!ReportServer_0-1!ff8!09/19/2012-20:55:55:: w WARN: Microsoft.ReportingServices.Diagnostics.Utilities.InternalCatalogException: An internal error occurred on the report server. See the error log for more details.
library!ReportServer_0-1!8d4!09/19/2012-20:55:56:: i INFO: Exception InternalCatalogException dumped to: C:\Program Files\Microsoft SQL Server\MSRS10.TESTIMPACRS\Reporting Services\Logfiles flags= ReferencedMemory, AllThreads, SendToWatson
chunks!ReportServer_0-1!8d4!09/19/2012-20:55:56:: w WARN: Rolling back shared chunk transaction for snapshot '464d6ec5-f256-4633-97d9-792c700931a0', Permanent=False.
library!ReportServer_0-1!8d4!09/19/2012-20:55:56:: w WARN: Microsoft.ReportingServices.Diagnostics.Utilities.InternalCatalogException: An internal error occurred on the report server. See the error log for more details.
library!ReportServer_0-1!b90!09/19/2012-20:55:56:: i INFO: RenderForNewSession('/Risk Manager/Dashboard Module/Medsys/my30DayActionList')
library!ReportServer_0-1!b90!09/19/2012-20:55:56:: e ERROR: Throwing Microsoft.ReportingServices.Diagnostics.Utilities.InternalCatalogException: An internal error occurred on the report server. See the error log for more details., segmentedChunkStore;
 Info: Microsoft.ReportingServices.Diagnostics.Utilities.InternalCatalogException: An internal error occurred on the report server. See the error log for more details.
library!ReportServer_0-1!1598!09/19/2012-20:55:57:: i INFO: RenderForNewSession('/Risk Manager/Dashboard Module/Medsys/IncCount13Months')
library!ReportServer_0-1!b90!09/19/2012-20:55:57:: i INFO: Exception InternalCatalogException dumped to: C:\Program Files\Microsoft SQL Server\MSRS10.TESTIMPACRS\Reporting Services\Logfiles flags= ReferencedMemory, AllThreads, SendToWatson
chunks!ReportServer_0-1!b90!09/19/2012-20:55:57:: w WARN: Rolling back shared chunk transaction for snapshot '94bb87a7-bece-454e-b418-78b18b9eacb1', Permanent=False.
library!ReportServer_0-1!b90!09/19/2012-20:55:57:: w WARN: Microsoft.ReportingServices.Diagnostics.Utilities.InternalCatalogException: An internal error occurred on the report server. See the error log for more details.
library!ReportServer_0-1!8d4!09/19/2012-20:55:57:: i INFO: RenderForNewSession('/Risk Manager/Dashboard Module/Medsys/IncConseqCountYTD')
library!ReportServer_0-1!1598!09/19/2012-20:55:57:: e ERROR: Throwing Microsoft.ReportingServices.Diagnostics.Utilities.InternalCatalogException: An internal error occurred on the report server. See the error log for more details., segmentedChunkStore;
 Info: Microsoft.ReportingServices.Diagnostics.Utilities.InternalCatalogException: An internal error occurred on the report server. See the error log for more details.
library!ReportServer_0-1!8d4!09/19/2012-20:55:58:: e ERROR: Throwing Microsoft.ReportingServices.Diagnostics.Utilities.InternalCatalogException: An internal error occurred on the report server. See the error log for more details., segmentedChunkStore;
 Info: Microsoft.ReportingServices.Diagnostics.Utilities.InternalCatalogException: An internal error occurred on the report server. See the error log for more details.
chunks!ReportServer_0-1!8d4!09/19/2012-20:55:58:: w WARN: Rolling back shared chunk transaction for snapshot 'e254656f-6c22-49e6-b473-5ed986e0a730', Permanent=False.
library!ReportServer_0-1!8d4!09/19/2012-20:55:58:: w WARN: Microsoft.ReportingServices.Diagnostics.Utilities.InternalCatalogException: An internal error occurred on the report server. See the error log for more details.
library!ReportServer_0-1!1598!09/19/2012-20:55:58:: i INFO: Exception InternalCatalogException dumped to: C:\Program Files\Microsoft SQL Server\MSRS10.TESTIMPACRS\Reporting Services\Logfiles flags= ReferencedMemory, AllThreads, SendToWatson
chunks!ReportServer_0-1!1598!09/19/2012-20:55:58:: w WARN: Rolling back shared chunk transaction for snapshot 'e15cc0b9-c8b1-446a-a3bf-da2ceba6273d', Permanent=False.
library!ReportServer_0-1!1598!09/19/2012-20:55:58:: w WARN: Microsoft.ReportingServices.Diagnostics.Utilities.InternalCatalogException: An internal error occurred on the report server. See the error log for more details.
library!WindowsService_0!14a0!09/19/2012-21:01:07:: i INFO: Call to CleanBatch()
library!WindowsService_0!14a0!09/19/2012-21:01:13:: i INFO: Cleaned 0 batch records, 0 policies, 0 sessions, 0 cache entries, 0 snapshots, 0 chunks, 0 running jobs, 0 persisted streams, 0 segments, 0 segment mappings.

Regards,

Michael



Export to Excel Error in SQL Server 2014 Report Builder/Viewer

$
0
0

Hi,

I am using the 2014 version of ReportViewer in a WinForm to display an RDL report.
The report was originally created in Report Builder 2.0 (SQL 2008 R2), but has since been edited in Report Builder 3.0 (SQL 2014).
The report loads and displays OK, and even exports to Word and PDF. But when exporting to Excel and then opening the Excel document, the following error occurs:

"We found a problem with some content in <filename>. Do you want us to try and recover as much as we can? If you trust the source of this workbook, click Yes."

If you click Yes, then a second message appears:

"Removed Part: /xl/styles.xml part.  (Styles)
Repaired Records: Cell information from /xl/worksheets/sheet1.xml part"

The Excel document then opens, and the data is there, but there is no formatting (no border columns, colours, bolds etc.)

The three interesting things are:

- When exported from SQL 2008 R2 Report Builder 3.0, which exports to .xsl instead of .xslx, it works
- A brand new report created in 2014 Report Builder 3.0 exports to .xslx great
- In Report Builder 2014, I stripped everything back and removed all rows and columns so the original table in the report only has one empty row and column it the export still errors - it is only by removing the original table and creating a brand new table that export works OK

It appears to be a problem with the tablix, but ideally we don't want to have to recreate our reports from scratch to fix this issue.

Has anyone come across an issue like this before, and know of any potential resolutions to it?

Thank you.


How to Identify the count , If multiple parameters are passed using Pipe Delimited string

$
0
0

Hi,

We are passing Pipe delimited string to the parameter and I want to know how many values we are passing to the parameter.

Here is the example

Parameter.Grant: 24|34|54|67

I am using below expression, but it is not giving the right values. Please let me know if  I am missing anything or is it possible.

=iif(parameters!Grant.Count>1,"Multiple value selected",parameters!Grant.Value)

ssrs subscriptions

$
0
0
I did a report,Subscription Name, Last Run Time, Report Name and Location columns. Please add a parameter to determine what kinds of subscriptions are viewed – Data Driven versus Standard.pls tell me anyone how can i do these

Pivot in SSRS

$
0
0

Hi ,

 I am using SSRS 2008 R2. I have come across this requirement of pivoting the report. Can anybody please help me on how to pivot in ssrs??

The report format is given below

Policyno                -  20004567

Policy holder name -  A&A exports

startdate               -  20140501

renewal date         -  20141231


Tablix headers not repeating in SSRS 2008

$
0
0

I have created a new report & add a table to it. When I select "Tablix Properties" and check on Columns Headers -> "Repeat Cheader columns on each page" the header columns do not repeat on each page. I also tried "Repeat header rows on each page". "Add page break before" seems to work ok. I am using VS 2008 9.0.30729.1 SP

I also tried deploying but it still does not work on the deployed version.

 

Interestingly, reports migrated from 2005 & unchanged seem to be ok.

 

Any ideas? Am I not setting soemthign up properly?

 

Join SharePoint list and SQL Query Datasets

$
0
0


Hi

I would like to create report which contains information from SP list dataset and SQL table dataset.

Both datasets has a common field which is “StaffNo.” Therefore in my report I would like to see:

StaffNo(either dataset) | StaffName(SQL DataSet) | StaffHours(SP List Dataset)

I found some similar thread below:

http://social.msdn.microsoft.com/Forums/en/sqlreportingservices/thread/c7580044-4896-4d20-9259-3ea1a5cc4824

However I am still not sure what is the be the best practice.

Many thanks





Regards, Marcin (Please mark as helpful or answered if it helps)

SSRS - Zoom and Print control are not visible in IE11, Firefox and Chrome. Works in older versions of IE

$
0
0

It seems the features are disabled when using any of the above because of compatibility issues with scripting/ActiveX not being properly supported by the FireFox and Chrome.

I believe the control determines the browser you are using is not IE and will not render the controls to prevent unexpected behavior because if the lack of ActiveX support. This can be seen when you compare the HTML of a page using IE8 and that of either IE11, FF, Chrome you'll see that the HTML for a zoom drop down control will show up in the IE8 browser and not in the others.

As for IE11 it presents itself as a Mozilla browser. eg: "User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko"so when the control see's this it wont generate any of the controls believing the browser can't support it, even though IE11 should certainly be capable of doing so. I wanted to know if this is correct and if this is a bug?

Browser Support for ReportViewer"The ReportViewer Web server control is used to embed report functionality in an ASP.NET Web application. The type of browser used to view the application determines the kind of functionality that you can provide in a report. Use the table provided in this topic to find out which of the supported browsers are subject to report functionality restrictions."

The page mentions that the following wont be supported by other browsers The following features are not supported in third-party browsers:

  • Document map
  • Searching within the report
  • Zoom
  • Fixed table headers
  • The progress indicator for report processing (a green spinning wheel) is not available for server reports, or for locally processed reports that are configured for asynchronous processing.

<rsweb:ReportViewer 
ID
="ReportViewer1" runat="server" Visible="true" Height="100%" 
ShowZoomControl
="True" ShowPrintButton="True"Width="100%" ProcessingMode="Remote" ShowCredentialPrompts="False" 
ShowParameterPrompts
="False"DocumentMapCollapsed="False" ShowBackButton="True" ShowRefreshButton="False" 
InteractivityPostBackMode="AlwaysSynchronous"ShowExportControls="False" BackColor="#c4dcfb" AsyncRendering="false" 
WaitMessageFont-Names="Verdana" WaitMessageFont-Size="14pt"
SplitterBackColor="#C4DCFB" ShowDocumentMapButton="True" DocumentMapWidth="20%"></rsweb:ReportViewer>




Issue with custom auth cookies in SSRS2012

$
0
0

My SSRS webservice url is currently 

http://devsql3:80/ReportServer

My cookies have a domain so I dont think the SOAP proxy passes them correctly since devsql3 has no domain.

How do I change my webservice url

from:

http://devsql3:80/ReportServer 

to:

http://devsql3.acme.com:80/ReportServer

thanks


input string was not in correct format

$
0
0

hello,

ideally i use tsql for my code, I am trying to use ssrs in buiding a bar chart and one of my rows as to values 0 and na, so i was trying it like this

=Count(Fields!failedcolumn.Value=0) 

but the i am having the error


'input string was not in correct format'

all i want it to do is to count only the row that has a value of 0 in that column,

please any help or pointer to help document

cheers


Replace

$
0
0

Is it possible to create a "Replace and Look up" statement in one field?

I created the following:

=Lookup(Fields!Account_Number.Value,Fields!Account_Number.Value, Fields!Task_Notes.Value, "TaskingResponse")

I want to replace results "Not Acute" with "denied"

I tried the follwoing and it did not work

=Lookup(Fields!Account_Number.Value,Fields!Account_Number.Value, Fields!Task_Notes.Value, "TaskingResponse" & replace (Fields!Task_Notes.Value,"Not Acute","Denied")

Thank you

Issue with parameter/filter - trying to display null rows

$
0
0

This is how my data looks in the database

Order_ID -----   Vendor
ID123             NULL
ID234             ABC
ID456             NULL
ID001             CDE


I want to create an SSRS report with a filter for vendors
 *All Vendors should be checked off by default
 *Users should be able to select multiple vendors

So I started by creating the VendorDataSet, the query looks like

 SELECT VendorName
 FROM Vendor
 WHERE Active = 1

*This query will return all active vendors stored in my vendor table

  Then, I created my parameter @prmVendor and it looks like:
 -Data Type: Text
-Allow blank value("")
-Allow multiples values

Available Values:
-Dataset: Vendor
-Value field: vendor_name
-Label field: vendor_name

The main query of the report looks like

Select Order_ID, Vendor
FROM Order
LEFT JOIN Vendors
 ON Order.VendorID = Vendor.ID
WHERE Vendor IN (@prmVendor)
So at this point it does what is supposed to do except - that when I run the query with all the vendors selected,
the query will only return the ones with vendors populated.

Order_ID -----   Vendor
ID234             ABC
ID001             CDE


I've tried adding the following to my VendorDataSet:

 SELECT VendorName
 FROM Vendor
 WHERE Active = 1
 UNION ALL
 SELECT ''  -- I've also tried SELECT NULL

 But when I run the report and look at the list of vendor displayed - it won't show the empty row in the vendor drop down filter
thus, my main query will ignore the orders with no vendors.

 Any ideas on how to fix this issue?

      

-Alan

SSRS Table/Row Header does not repeat on every page when exported to PDF

$
0
0

Hi, I have a SSRS Report in which the rows are grouped and the Tablix has a Table/Row header. I wanted the header to repeat on every page for a group because sometimes the data from the group would be more than one page.
                               To achieve this
                               - I went to Advance mode by clicking the arrow next to column group
                               - Selected the Header Static column from Row Group
                               - Changed the following properties
                                                - KeepWithGroup: After
                                                - RepeatOnNewPage: True
                                                - The header columns are set to not grow.

The problem only occurs when the nested grouped data in one of the columns goes over a page. The following pages don't have any header.

So half of the time the header row repeats but when the nested grouped data extends over one page the header does not show. Problem only occurs when rendered to pdf.
I found this line "Headings are repeated on each page only if there is sufficient room" in SQL 2008 version. But I could not find it in later versions of sql server. So does that mean it is fixed

Viewing all 10045 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>