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

SSRS Properties greyed out in SSMS on Windows 2008

$
0
0

Hi all,

 

Have installed SQL 2008 on Windows 2008 and have come across a strange issue.

 

When connecting to the Report Server cvia SSMS to enable "My Reports" (for example) the Report Server Properties are greyed out and we cannot alter them. This occurs when logged on both locally & remotely to the Win 2008 server.

 

Interestingly, we have another (XP Pro) box with SQL 2008 on it. If we connect to the Win 2008 SQL report server from the XP machine's SSMS, then we have full control and can access and change the report server properties on the Win 2008 server. 

 

The relevant domain accounts are in the Admin group on the Win 2008 server and the XP Server so we are confused as to why we cannot edit the Win 2008 report server properties locally.

 

Any thoughts?


The underlying connection was closed: An unexpected error occurred on a send.

$
0
0

Fala ae galera.

tive problemas ao publicar meu primeiro report, exibe o seguinte erro: The underlying connection was closed: An unexpected error occurred on a send.

Configurações IIS



Subtract 100 from a converted varchar

$
0
0

I need to subtract 100 from a varchar I have converted to a decimal

SELECT        loanGeneral_Id, FormLabelDescription, InstanceSequence, AttributeUniqueName, CONVERT(Decimal(18, 2), AttributeValue) AS Price
FROM            dbo.CUSTOM_FIELD

WHERE        (FormLabelDescription = 'New Marketing Specifics') AND (AttributeUniqueName = 'Price:')

My 'Price' is returning properly as (for example) 105.56, however I need to subtract 100 from that to arrive at 5.56 as a percentage that will then be multiplied by a dollar amount. 

Thanks for any help


Gary Clements

SSRS 2017 - Row Level Security for Custom Authentication (Forms Based)

$
0
0

QUESTION: Has anyone used Row Level Security for SSRS 2017 using Custom Authentication (Forms Based) or even aware if this is possible in SSRS 2017?

USE CASE:

I am looking to incorporate SSRS 2017 as the reporting solution for a multi-tenant application, hence we have a need for using row level security (RLS).  It is a custom security model using Forms Based Authentication that leverages the security extension, so incorporating windows integration is not an option (similar to thesolution posted here).  Ideally, there would be a setting in the report (or data source) to set a session_context to be leveraged in the corresponding query, but there is nothing short of writing our own custom Data Processing Extension which theoretically would be using mirroring SQL Server processor but adding a way to set the session context when opening a connection.  Unfortunately there is no extension point that would allow this to be done and those classes are all internal.  While not impossible, it's a good amount of work and requires another maintenance component.

I have some "brute force" approaches in the queue, but ideally would like something similar to the solution that leverages windows integration.

Question about data access and subscriptions in SSRS with Row Level Security enabled on the source database

$
0
0

I've set up a Reporting Services Server 2016 in native mode. After that I migrated our SSRS 2008 Reports to the new server. While doing so I added a location based parameter/filter. The values of the parameter come from a shared dataset, that lists our company sites. This dataset represents a table in the SQL server database. Each user that queries data from that table (through accessing the shared dataset in SSRS) get's checked by a Row Level Security policy/function that looks up whether or not a user is member of a specific Active Directory group. Based on that group the parameter in the report (which is based on the dataset) shows different company sites to different people and filters the rest of the data accordingly.

My problem is the following:

I can't seem to creat subscriptions, because the data source for the shared dataset isn't set up to store the credentials of the user. But I can't store the credentials, because I need them to get the group of the user accessing the report.

Is there a solution to this?

I mean, I only need to run the subscription with some service account and configure the parameters myself, so that the user can't acces parameter values he's not allowed to see/use. But I don't think that is a configurable possilbilty. Are there other options to get subscriptions running?

Thanks in advance!

Kind regards,

Chris

EDIT:   

I opened up this suggestion Plz vote for this feature to be developed. See answer to this question-thread below.

https://connect.microsoft.com/SQLServer/feedback/details/3141155

Power BI Report Server Predefined Roles

$
0
0
I have set  up Power BI Report Server and have users that are already using it and publishing reports. I currently revisiting the roles and have a few questions after going through the predefined roles document:
 
https://docs.microsoft.com/en-us/sql/reporting-services/security/role-definitions-predefined-roles?v...
 
Report Builder Role: This role allows users to create and edit reports in Report Builder. This has a purpose in SSRS but as we are developing reports in Power BI is this role of no use? Can it just be ignored?
 
Content Manager Role: allows a user to manage report server content but it contains all of the publisher permissions. So if a user has the "Content Manager" role can they also perform all the same tasks as users with the "Publisher" role in addition to its permissions to manage report server content?
 
My Reports Role: I went and checked "Enable My Reports for each user". When I am logged on the server with a system administrator account and looking at the Power BI Report Server home page I see that a new folder "Users Folders" was created. When I look at the same home page on my PC while logged on as myself I do not see any new folders that I can use as a personal workspace. I thought this would be created automatically. How do I set it up so all users get a personal workspace?
 
For the System Users system role. It says that this role includes tasks that allow users to view basic information about the report server. If users are just viewing reports, they do not need to be added to system roles?
 
I have created a folder for some Power BI developers. They will be creating and uploading reports. I have added them to the Browser, Content Manager, My Reports, and Publisher roles. To make things simpler would they just need to be added to the Publisher and My Reports roles?

Error: Subreport could not be shown...after X number of Pages

$
0
0

I have an SSRS report with a subreport where the subreport will display at the start of the report, but then stop after a number of pages (not the same for different parameters) for the rest of the report. Both are reports that use sprocs as the basis for the report. When I run the sproc in SQL with the parameters, it works. It is like I am hitting a memory limit.

An example report has 129 pages and it works for the first 109 pages. A 12 page report works fine. I have another 770 page that stops working on Page 6. 

I have SQL Server 2016, using Report Builder 3. 

I would appreciate any assistance. 

Using indicators to compare values in a matrix

$
0
0

Hi guys,

What I want to do is have a matrix that looks something like this 

                 Jan Feb March

Person A    1 ↑2 ↑  3 ↑

Person B    2 ↑2 ↔ 2 ↔

Person C    3 ↑2 ↓ 1 ↓

So basically it checks the previous months value and uses that to determine which indicator to use ?

 

Thanks

Curt 





ERROR: Throwing Microsoft.ReportingServices.Diagnostics.Utilities.ReportServerStorageException: An error occurred within the report server database. This may be due to a connection failure, timeout or low disk condition within the database.

$
0
0

Need some help in figuring out this issue.

The report I am trying to run returns over 14 million records when I get a count directly from the SQL server but I get an error after the report runs for a while. Below is the error message. Does SSRS have a limitation on the number of records? When I look at the memory utilization, it was at 79% utilization. Below is the server setup. Am not sure what else I can do to resolve this.

Microsoft SQL Server 2008 (SP1)
Processor : Intel Xeon CPU X5355 @ 2.66 GHz (2 procs)...64 bit
Memory : 32 GB

library!WindowsService_0!152c!09/09/2010-13:47:42:: e ERROR: Throwing Microsoft.ReportingServices.Diagnostics.Utilities.ReportServerStorageException: An error occurred within the report server database.  This may be due to a connection failure, timeout or low disk condition within the database., ;
dbcleanup!WindowsService_0!152c!09/09/2010-13:47:42:: e ERROR: Sql Error in CleanOrphanedSnapshots: Microsoft.ReportingServices.Diagnostics.Utilities.ReportServerStorageException: An error occurred within the report server database.  This may be due to a connection failure, timeout or low disk condition within the database. ---> System.Data.SqlClient.SqlException: Timeout expired.  The timeout period elapsed prior to completion of the operation or the server is not responding.
   at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection)
   at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)
   at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)
   at System.Data.SqlClient.SqlDataReader.ConsumeMetaData()
   at System.Data.SqlClient.SqlDataReader.get_MetaData()
   at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString)
   at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async)
   at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result)
   at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method)
   at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method)
   at System.Data.SqlClient.SqlCommand.ExecuteReader()
   at Microsoft.ReportingServices.Library.InstrumentedSqlCommand.<ExecuteReader>b__1()
   at Microsoft.ReportingServices.Library.SqlBoundaryWithReturn`1.Invoke(Method m)
   --- End of inner exception stack trace ---
   at Microsoft.ReportingServices.Library.Storage.WrapAndThrowKnownExceptionTypes(Exception e)
   at Microsoft.ReportingServices.Library.SqlBoundaryWithReturn`1.Invoke(Method m)
   at Microsoft.ReportingServices.Library.InstrumentedSqlCommand.ExecuteReader()
   at Microsoft.ReportingServices.Library.DatabaseSessionStorage.CleanOrphanedSnapshots(Int32& chunksCleaned, Int32& mappingsCleaned, Int32& segmentsCleaned)
library!WindowsService_0!152c!09/09/2010-13:47:42:: 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.
library!WindowsService_0!152c!09/09/2010-13:47:42:: i INFO: Call to CleanBatch() ends
library!ReportServer_0-2!eb0!09/09/2010-13:50:15:: e ERROR: Throwing Microsoft.ReportingServices.Diagnostics.Utilities.ReportServerStorageException: An error occurred within the report server database.  This may be due to a connection failure, timeout or low disk condition within the database., ;
session!ReportServer_0-2!eb0!09/09/2010-13:50:15:: e ERROR: Sql Error in GetSnapshotData: Microsoft.ReportingServices.Diagnostics.Utilities.ReportServerStorageException: An error occurred within the report server database.  This may be due to a connection failure, timeout or low disk condition within the database. ---> System.Data.SqlClient.SqlException: Timeout expired.  The timeout period elapsed prior to completion of the operation or the server is not responding.
ui!ReportManager_0-1!8a4!09/09/2010-13:50:15:: Unhandled exception: Microsoft.Reporting.WebForms.ReportServerException: An error occurred within the report server database.  This may be due to a connection failure, timeout or low disk condition within the database. (rsReportServerDatabaseError) ---> Microsoft.Reporting.WebForms.ReportServerException: For more information about this error navigate to the report server on the local server machine, or enable remote errors
   --- End of inner exception stack trace ---

Hiding data label of values 0 on column chart (Report Builder 2.0)

$
0
0
I have a column chart in Report Builder 2.0 that is built by doing a count() of items. Some of the columns have a value of zero. When I turn data labels on, the data label of 0 shows. Is there any way to hide the data labels for 0 values? I'd prefer it only label the columns that have values. 

How to Add a Parameter in 2014 SSRS against an Access 2014 db

$
0
0

I have an Office 365 SharePoint Site that has an Access App.  I'm using a copy of that Apps' Access DB to run SSRS reports against.   I want to add a parameter to my report's Data Set to but can't figure out how to add it.  The normal =@Parameters that would be used  against a SQL Server DB doesn't seem to apply.

Can you define a parameter against Access tables in SSRS Data Sets?  If so how?

I tried adding a parameter to an Access Query and it works fine in Access but I if I use the Query in SSRS and reference it like you would a Function or SP, Query(@Parameter), I get an error .  If I don't put (@Parameter) I get the too few parameters expected error. 

Thanks,

Joe


View .rdl reports from windows C# application

An attempt was made to set credentials for a data source 'Lstock_Report_V' associated with the report.

$
0
0

Dear sir/madam i m getting error msg from vb code

An attempt was made to set credentials for a data source 'Lstock_Report_V' associated with the report.  Report data source settings are specified in a way that prevents credentials from being submitted to the report server. (rsDataSourceNoPrompt)

scale-out deployment is not supported in this edition of reporting services

$
0
0
Can the "scale-out deployment" option be turned off so that I can migrate SSRS databases from Enterprise edition to Standard?  After I attached databases from a SSRS 2005 Enterprise to SSRS 2012 Standard I am getting an error about scale-out deployment not supported.  Any way around this so I can migrate the databases, bringing the reports and report subscriptions to the new SSRS instance?

Lee Markum

FetchXML based SSRS report deployment error

$
0
0

Hi Guys, I am submitting a little problem I am unable to solve. Maybe it will help somebody in the future..

I am working with BIDS 2008 and Dynamics CRM 2011.

I just developed a FetchXML-based report (client requirement). Also, I usedexpressions as my dataset queries, such as:

= IIf(Parameters!strLob.Label = "Consulting","<fetch version='1.0' output-format='xml-platform' mapping='logical' distinct='true'><entity name='opportunity'><attribute name='mcs_internalreferrer' /><order attribute='mcs_internalreferrer' descending='false' /><link-entity name='mcs_lob' from='mcs_lobid' to='mcs_lobid' visible='false' alias='lob'><attribute name='mcs_name' /><!-- lob_mcs_name --><filter type='and'><condition attribute='mcs_name' operator='eq' value='Consulting' /></filter></link-entity><filter type='and'><condition attribute='mcs_internalreferrer' operator='not-null' /></filter></entity></fetch>","<fetch version='1.0' output-format='xml-platform' mapping='logical' distinct='true'><entity name='mcs_option'><attribute name='mcs_key' alias='mcs_internalreferrerValue'/><attribute name='mcs_value' alias='mcs_internalreferrer'/><filter type='and'><condition attribute='mcs_key' operator='eq' value='reports_param_na' /></filter></entity></fetch>" )

The purpose is to return a dummy value (2nd query) instead of the normal values (1st query), depending on the parameter value.

Everything works fine in Visual Studio's preview mode. I can see and use values from both queries.

But for some reason, when trying to deploy this report in Dynamics, I get anMalformed FetchXML error (details below). Indeed, when I replace the expression with a normal FetchXML value, the report deploys fine. Actually, I can put any valid FetchXML, even if it makes no sense in my reporting context, it deploys! So really the problem is the expressions, that are not recognized as valid XML.

Any Idea how I could make Dynamics accept my expression-based datasets?

Here is the error log:

Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: Command text is invalid.Detail: <OrganizationServiceFault xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/xrm/2011/Contracts"><ErrorCode>-2147220733</ErrorCode><ErrorDetails xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.Collections.Generic"><KeyValuePairOfstringanyType><d2p1:key>CallStack</d2p1:key><d2p1:value xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:string">   at Microsoft.Crm.Extensibility.VersionedPluginProxyStepBase.Execute(PipelineExecutionContext context)
   at Microsoft.Crm.Extensibility.Pipeline.Execute(PipelineExecutionContext context)
   at Microsoft.Crm.Extensibility.MessageProcessor.Execute(PipelineExecutionContext context)
   at Microsoft.Crm.Extensibility.InternalMessageDispatcher.Execute(PipelineExecutionContext context)
   at Microsoft.Crm.Extensibility.ExternalMessageDispatcher.ExecuteInternal(IInProcessOrganizationServiceFactory serviceFactory, IPlatformMessageDispatcherFactory dispatcherFactory, String messageName, String requestName, Int32 primaryObjectTypeCode, Int32 secondaryObjectTypeCode, ParameterCollection fields, CorrelationToken correlationToken, CallerOriginToken originToken, UserAuth userAuth, Guid callerId, Guid transactionContextId, Int32 invocationSource, Nullable`1 requestId, Version endpointVersion)
   at Microsoft.Crm.Extensibility.OrganizationSdkServiceInternal.ExecuteRequest(OrganizationRequest request, CorrelationToken correlationToken, CallerOriginToken callerOriginToken, WebServiceType serviceType)
   at Microsoft.Crm.Extensibility.OrganizationSdkServiceInternal.Execute(OrganizationRequest request, CorrelationToken correlationToken, CallerOriginToken callerOriginToken, WebServiceType serviceType)</d2p1:value></KeyValuePairOfstringanyType></ErrorDetails><Message>Command text is invalid.</Message><Timestamp>2013-01-29T20:45:56.0253388Z</Timestamp><InnerFault i:nil="true" /><TraceText i:nil="true" /></OrganizationServiceFault>





Repeat row within group on every page

$
0
0

Hi all,

I have a report with 2 groups:

- Pick slip header
- Pick slip lines

I display my pick slip header fields in the same columns as my detail lines (see image). 

The last row within my Pick slip header rows is a static row (see highlighted row in image) that works as a header for detail rows. 

I would like to display my static row on each page but not all rows in the header group. 

Is this possible?

Thanks for reading,

Clay

Unable to get a dataset into a table

$
0
0

Hi,

I have created a basic data set which contains text and numbers. I am trying to add the dataset into table. For some reason all the columns are not getting displayed.

Below is the screenshot:

Below is the dataset:

I am creating the table using the Table Wizard. I select the data set, add all the columns to the Values. Makes sure all are just Fields!.<ColumnName>.Value

I guess it should display the data set as its a very simple one.


Thanks, Rajiv Iyer

How to show parameter based values in the header

$
0
0

Dear All,

I have created SSRS Report and in the header i have added text boxes that show the parameters the users have selected.

My question , not sure even if this is doable. I have a start date and end date. When the user selects the values for the start and end date, the report shows the count of records in that date range. How can i show this count in the header?

Thanks

How to download a file pdf or image in Reporting Services?

$
0
0

There is a kind of scenario that users want to download the receptive brochures or training document which is stored in server as  C:/SolutionName/File  . I need to download the file .

But if i use ="javascript:void(window.open('" & "file://C:/XYZABC_Attachments/XYZABC.xlsx" & "','_blank'))" . It gives an error 

VM8623:1 Not allowed to load local resource: file:///D:/XYZABC_Attachments/XYZABC.xlsx 

But i can download the file , by hitting the URL in the  browser directly : file:///D:/XYZABC_Attachments/XYZABC.xlsx 

I have also tried using Code but it dosent help , due to issue in HTTPResponse .

Following is the code i have used for Code in Report properties:

Function DownloadFile(ByVal fname As String, ByVal forceDownload As Boolean)

        Dim Request As System.Web.HttpRequest 

Dim path As String = fname
    Dim name As String = System.IO.Path.GetFileName(path)
    Dim ext As String = System.IO.Path.GetExtension(path)
    Dim type As String = ""

    If ext IsNot Nothing Then

        Select Case ext.ToLower()
            Case ".htm", ".html"
                type = "text/HTML"
            Case ".txt"
                type = "text/plain"
            Case ".docx"
                type = "application/vnd.openxmlformats-officedocument.wordprocessingml.document"
            Case ".doc"
                type = "Application/msword"
            Case ".rtf"
                type = "application/rtf"
            Case ".png"
                type = "image/png"
            Case ".jpg", ".jpeg"
                type = "image/png"
            Case ".bmp"
                type = "image/bmp"
            Case ".gif"
                type = "image/gif"
            Case ".tif", ".tiff"
                type = "image/tiff"
            Case ".pdf"
                type = "application/pdf"
            Case ".ppt"
                type = "application/mspowerpoint"
            Case ".msg"
                type = "application/msoutlook"
            Case ".xml", ".sdxl"
                type = "application/xml"
            Case Else
                type = "application/octet-stream"
        End Select
    End If

    If forceDownload Then
        response.AppendHeader("content-disposition", "attachment; filename=" & name)
    End If

    If type <> "" Then response.ContentType = type
    response.WriteFile(path)
    response.[End]()
End Function

I have been searching options for this from quite a while . 

SSRS Reporting - Exporting To Excel

$
0
0

I am new to SSRS Reporting 2008 and most of the reports I have developed required to export to Excel. This reports are embedded into ASP.NET, developed in C#. Now there is some questions I would like to ask:

1) When I am exporting to Excel, I would like to insert some comment in the some cells in the Excel (comment like where you see a red dot in each cell in Excel, and when mouse over you can see comment of this cell)

2) Is there anyway to put a filter to the header after export to Excel?

Viewing all 10045 articles
Browse latest View live


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