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

Specify database with a parameter.

$
0
0

We have several databases that are identical except for the name and physical data.  [tables/views etc are all the same]

I want to write a report that the user can select the database with a parameter (or other method), something like:

use @carrier 
select top(2) invNumber from invoices

or

select top(2) invNumber from @carrier.dbo.invoices

Where @carrier would contain the name of the database.  [carrierX, carrierY etc]

I know the above won't work, but is there any way to accomplish the same concept?



How to sum the data labels to a total in my chart diagram?

$
0
0

Hi

I am counting order type by a field which can have 3 different values.In a stacked column chart I am displaying the count of those different values, and showing a data label with the count for each order type. See screenshot.

Now I would like to show a line based on the total of each order type. I can see that SSRS already know the number of each order type as it is shown in the labels.How do I add those numbers (shown in the labels) together and get it into a Total field?I would prefer not to alter my SQL query, if possible.



ssrs 2008: csv export keeps putting quote qualifier around my fields

$
0
0

intended output of csv and how it appears in report preview:

"abc","123"

actual output of csv:

""abc"",""123""

csv render settings used:

<Extension Name="CSVNOHEADERNOQUALIFER" Type="Microsoft.ReportingServices.Rendering.DataRenderer.CsvReport,Microsoft.ReportingServices.DataRendering"><OverrideNames><Name Language="en-US">CSV NO HEADER (comma del)</Name></OverrideNames><Configuration><DeviceInfo><NoHeader>true</NoHeader><FieldDelimiter>,</FieldDelimiter><ExcelMode>False</ExcelMode><Qualifier></Qualifier><Encoding>ASCII</Encoding></DeviceInfo></Configuration></Extension>

My understanding is the qualifier should only be triggered if a field delimiter is present in a field.  But this is not the case.  How do I use double quotes  around my fields without the csv export wrapping it in another set of double quotes?

thanks




CONVERTING MONTH NUMBER TO MONTH NAME IN REPORTING SERVICES

$
0
0
I WANT TO CONVERT THE MONTH NUMBER ENTERED AS A PARAMETER TO MONTH NAME IN A COLUMN .....HELP PLZ

install problems

$
0
0

where do I find Microsoft.ReportViewer.Common, Version=12.0.0.0?

My report viewer runs fine on my local computer, but does not run on my application server, becauseMicrosoft.ReportViewer.Common is missing


Certified Geek

SQL 2016: URL to directly access KPI

$
0
0
In the new "mobile reports" preview, is there any direct URL access to individual KPIs? Datazen used to offer this functionality. Has it been discarded in SQL 2016 Mobile Reports?

Embedding Mobile Report Content into Custom Apps - eg URL options

$
0
0

In Datazen  - it looked like you could embed content into frames etc and like SSRS you could remove things like the header bar - so that only the report was displayed 

eg Embedding Datazen Content into Custom Apps

Can you do this in the new Microsoft Mobile reports ? 

expreesion in ssrs

$
0
0

Hello I wrote an expression

="Report for the period of  "&  iif(isnothing(Parameters!start_date.Value),"Inception",Parameters!start_date.Value)&" to "&FormatDateTime( iif(isnothing(Parameters!start_date.Value),today(),Parameters!end_date.Value),dateformat.shortDate)

if I select start date and end date both then it works

Report for the period of  1/1/2016 to 3/18/2016

, if i select start date and end date null it returns

Report for the period of  3/9/2016 to 1/1/0001

Why today() become 1/1/0001

I ma new to ssrs expression please suggest.?


Native Server giving TLS error when I try to connect to it

$
0
0

Recently our SSL certificates expired and just prior to that I installed new certs provided by our security team. Today I used Reporting services Configuration Advanced to add the report server cert on the Web Service URL tab and the report manager cert on the Report Manager URL tab. I then restarted Report Manager.

Now when I click the URL in IE I get "Can't connect to web page. Turn on TLS 1.0, TLS 1.1, and TLS 1.2 in Advanced settings and try connecting again.".

I'm using IE11 to connect and the Report Server is SQL Server 2008 on a Windows 2003 Server.

I can see the above settings but can't alter them as these settings are controlled by our security team. All except TLS 1.2 are already ticked.

Thing is, I can't see why that sort of thing would have changed as it was working fine with the previous certificates. Our technical people say it can't be the certificates but I can't see what else it could be as nothing else should have changed.

Anyone got any ideas what could be causing this?


Nick Ryan MIS Programmer Analyst, ANZ Bank

cannot read the next data row SSRS error

$
0
0

Hi MSDN,

We are getting below error in one environment but the same report is throwing the expected error in another environment

Error 1:

expected error message in  uat environment(uat report server link)

cannot read the next data row for the dataset dataset1 (rsErrorReadingNextDataRow)

Divide by zero error encountered

Error 2:

error message in prd environment (prd server link)

cannot read the next data row for the dataset dataset1 (rsErrorReadingNextDataRow)

For more information about this error, navigate to the report server on the local server machine, or enable remote errors.

Question is why we are not getting diffreent error for the same report. Why we are not getting Error 1 in prd link.





Problems authenticating ReportService2010 web service when using C#

$
0
0

(Not sure exactly what forum I should but this in but here goes...)

I have SQL Server/SSRS installed on a server. 

I've added a Web Service reference to the server's ReportServer2010 in the data layer project of my MVC app.

I have a userid/password that grants me admin access to the database through SSMS. 

However when I use that in my C# code (rsObject.Credentials = new System.Net.NetworkCredential  etc) it crashes with an Unauthorized when I call a web service function.  I've tried that with and without a Domain name.

Is there some other setting in the web service that I should know about?

(For the moment I have it created as a Web Reference, not a Service Reference.  I don't know if that makes a difference.  I have little experience with either.)

Reporting services url's keep asking for authentication SSRS 2008 R2

$
0
0

Hi all.

Just setup SSRS 2008 R2 on our server, however when I try to browse to the /Reports /ReportManager url's I am asked to authenticate. Even if I try entering the local administrator account this is not accepted. Has anyone else had this problem or is there something I have missed in the setup. Note that I have this setup on a specific host header in the setup e.g. ssrs.mydomain.com/Reports

Thanks

P

ssrs 2008 modified stored procedure is not working

$
0
0

In an existing SSRS 2008 report, I added the parameter of milestonecode which is a 'text' and there can be multiple values selected. The t-sql is
the following:
SELECT DISTINCT MILESTONE_CODE as MILESTONE_CODE_VALUE, CONVERT(VARCHAR, CONVERT(INT, MILESTONE_CODE)) + ' Days' AS MILESTONE_LABEL FROM AtnLtrMilestone alm INNER JOIN AtnLtrASTU als ON alm.STULINK = als.STULINK
WHERE alm.SCHOOLNUM = @pSchoolNumber
AND alm.SCHOOLYEAR = @pSchoolYear
ORDER BY MILESTONE_CODE_VALUE;

When I change a stored procedure to using sql within the ssrs report, individual or multiple values can be selected correctly. The sql is the following:

SELECT   m.SCHOOLNUM
   ,sch.NAME
   ,m.SCHOOLYEAR
   ,m.STULINK
   ,s.permnum
   ,s.LastName
   ,s.MiddleName
   ,s.FirstName
   ,m.semester
   ,m.MILESTONE_CODE
   ,m.MILESTONE_DATE
   ,m.PRT_DECLINED_DT
   ,CONVERT(VARCHAR(10), m.PRT_DECLINED_DT, 112) AS ConvertedDate
   ,m.PRINTED
   ,m.PRT_USERID
 FROM AtnLtrMilestone m INNER JOIN AtnLtrASTU s ON m.STULINK = s.STULINK
 INNER JOIN AtnLtrASCH sch ON m.schoolnum = sch.schoolnum
 WHERE m.PRINTED IS NOT NULL
 AND (m.SCHOOLNUM = @pSchoolNumber OR @pSchoolNumber IS NULL)
 AND m.SCHOOLYEAR = @pSchoolYear
 AND cast(m.MILESTONE_CODE as int) in (@pMilestone) 
     ORDER BY CONVERT(VARCHAR(10), m.PRT_DECLINED_DT, 112) DESC, s.lastname
                 , s. firstname , s.middlename

However when I use the modified stored procedure only one first milestone value is selected. The modified stored procedure looks like
the following:

ALTER PROCEDURE [dbo].[procAtnLtrAttendanceDetailSchool]
 @pSchoolNumber varchar(3) = NULL
 ,@pSchoolYear int
 ,@pMilestone char(3)
 AS
 
BEGIN

 SELECT m.SCHOOLNUM
    ,sch.NAME
    ,m.SCHOOLYEAR
    ,m.STULINK
    ,s.permnum
    ,s.LastName
    ,s.MiddleName
    ,s.FirstName
    ,m.semester
    ,m.MILESTONE_CODE
    ,m.MILESTONE_DATE
    ,m.PRT_DECLINED_DT
    ,CONVERT(VARCHAR(10), m.PRT_DECLINED_DT, 112) AS ConvertedDate
    ,m.PRINTED
    ,m.PRT_USERID
 FROM AtnLtrMilestone m INNER JOIN AtnLtrASTU s ON m.STULINK = s.STULINK
 INNER JOIN AtnLtrASCH sch ON m.schoolnum = sch.schoolnum
 WHERE m.PRINTED IS NOT NULL
 AND (m.SCHOOLNUM = @pSchoolNumber OR @pSchoolNumber IS NULL)
 AND m.SCHOOLYEAR = @pSchoolYear
 AND m.MILESTONE_CODE in (@pMilestone) 
  ORDER BY CONVERT(VARCHAR(10), m.PRT_DECLINED_DT, 112) DESC, s.lastname , s. firstname , s.middlename
 
END
GO

Thus would you tell me what I can do to get the modified stored procedure to work instead of using the t-sql in the ssrs 2008 report?

[SSRS 2016] What is in store for the .net "Local Mode"

$
0
0
I have a lot of projects that use the rdlc type of reports to be rendered in local mode. I've installed the new Data Tools for Visual Studio 2015 Preview but I can't get ReportViewer new version or a new rdlc template for 2016 version.

Does the 2016 version still support the local mode reports with the new layout and features ??


Thanks

How to toggle visibility of a column group

$
0
0

I have a table of project time recordings that I am displaying in a matrix. The data source returns:

        ProjectName
        ColleagueName
        Date
        Time
        Cost

similar to:

I've created two row groups:

        ProjectName
        ColleagueName - which is a subgroup of ProjectName

I have one column group:

        Date

Toggling visibility of the rows at the project level is working fine. However I'd like to toggle the visibility of the "Dates"columns and I can't get this to work. If I set the visibility of the "Date" column group to "Hide", they're hidden as I want. However I'd like to be able to toggle this in the same way as I can for the "ColleagueName".

When I try this, I have to enter a report item on which to toggle. No matter which field I select, I get an error similar to:

(where the toggle item displayed depends on which report item I've selected).

Can anyone suggest how I can achieve this functionality?

Thanks.


Report Builder 3.0 crashes on launch with problem event: CLR20r3

$
0
0

Description:
  Stopped working

Problem signature:
  Problem Event Name:CLR20r3
  Problem Signature 01:msreportbuilder.exe
  Problem Signature 02:10.50.1600.1
  Problem Signature 03:4bb67a84
  Problem Signature 04:mscorlib
  Problem Signature 05:2.0.0.0
  Problem Signature 06:4e1511f4
  Problem Signature 07:41bf
  Problem Signature 08:a3
  Problem Signature 09:System.UriFormatException
  OS Version:6.1.7600.2.0.0.256.48
  Locale ID:1033

Can we build reports SSRS basic tabular reports dynamically based on the number of students in a xml?

$
0
0

I have a report which I have shown in the screenshot which shows the design time and run time snapshots.

The source of these reports would be a incoming xml document which I will query and display it on the ssrs report for each student and his attributes

My requirement is to build this entire report dynamically based on the number of students.

So say in my xml If I get n number of students I need to build n number of SSRS reports which would be separated by page breaks.( see screenshot which shows 1 report page for 1 student) I want similar report for other students appearing in the same report with page breaks.

sample xml  has 2 students coming in ( note for the report I have not built the complete xml) but  I m trying to figure out if there is a way in SSRS to build reports dynamically based on the number of students in a xml ?

<root>
<stud1>
<attr1>10</attr1>
<attr2>200</attr2>

</stud1>
<stud2>
<attr1>20</attr1>
<attr2>300</attr2>

</stud2>
</root>





Why is SSRS confused about which member is the last in the group?

$
0
0

Hi All,

I have a group footer row in my SSRS tablix as well as a tablix footer row.  Each group footer has a new page after it.  My report has about 35 different groups, so there are at least 35 pages.  The group footer row has the following Visibility criteria expression in order to make sure only a single footer row occurs on each page:

=IIF(Fields!Color.Value = Last(Fields!Color.Value, "Color_Group"), TRUE, FALSE)

The expression is working fine for the vast majority of the groups because the group footer row isn't visible on pages where the tablix footer row appears.  This is the intent.

However, two groups seem to have the Last() function somewhat confused because in each case the group footer and tablix footer appear on the same page.  Furthering my suspicion is that one of the earlier group pages doesn't show the group footer even though it isn't the last member in the group.  Not sure if this is relevant, but both of these problem groups have members that the other groups don't.

My data source is SSAS 2014.  Could the sort order of my query results be causing this?

Thanks,
Eric

Show in tablix records where codes are not present (SSRS R2)

$
0
0

Morning everyone :)

I'm after a little help...

I have a dataset in my report called coding which has lots of fields and is used in several tablix in the rest of my report.  I want to create a table which shows me patients from this dataset who haven't had certain procedures.  I have a list of codes for these....K634,K771 etc

I just don't know how to do this!

I have tried using a filter on the table using an expression =Iif(InStr("%K491%,%K492%,....Fields!FieldName.Value)>0,"Y","N")

Operator =

Value N

I've got to be careful as I can't filter my dataset as it will exclude records that are being used in other tables.

I'd be grateful for any suggestions.

Natalie xXx

Cant see mapped drive when adding existing item.

$
0
0

Hi small problem adding existing items

Opened reporting project right click reports/add existing item, when window opens I can see drives and folders on pc but no network mapped drives. we used mapped drive to our RS Dev server  to add reports to prod server before deploy.

Anyone have solution for this?

WS 2012, SQL server 2012, SQL server data tools 2010 

TIA

Viewing all 10045 articles
Browse latest View live