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

How to set a default date in parameter

$
0
0
I have a report for which i have two parameters. YTD1 and YTD2 i want to default the date in first parameter to 1/1/2012 and the second parameter gives me current date. but YTD1 i want to default a date. how can i do that? i am using ssrs 2005 version

msmustard


SSRS dynamic reports

$
0
0

Hi sir,

Please refer the following snapshot.

I have created a sub report for the parafin column however it is just showing the  first value of start time and end time i.e highlighted in the red color in the above image.I want to populate parafin values as per the individual record batch no , start time and end time i.e

If batch  starts with 'A' and start time end time is some date then only date value should be fetched.

The same scenario needs to be implemented for each record

I am having around 200 records for the same .could you please suggest the best possible way to overcome this problem.

Please help!

Thanks in advance!!

Reporting Services Database Roles

$
0
0

Hello,

I checked the database in SSMS and I found

I have several questions:

What are the Database Roles "smsdbrole_CRP" and "smsdbrole_CRPfx" referring to?

I do not see smsdbrole_RP as I saw in SQL 2015 for Reporting Services... Has it been removed? SSRS is running and working fine on one server... RS01

(RS01 host the reporting services, SQL01 host the databases, ...)

Thanks,

Dom


Security / System Center Configuration Manager Current Branch / SQL


Count Rows Per Value

$
0
0

I have a table of Accounts, each with a unique ID. Then I have a table of Transactions, each with a unique ID. Each row of the Transactions table has an Account ID, to show which particular Account it goes with. So there can be multiple rows in the Transactions table with the same Account ID, each pointing to the same Account, to indicate that the Account had multiple transactions.

Each Account can have any number (0-n) transactions.

I'm joining the Transactions table to the Account table fine, with the output showing a row for each Transaction (so there are multiple rows for some Account numbers) or, if there are no Transactions, showing null in the transaction fields:

|Account ID|Account Name|Transaction ID|Transaction Name|
---------------------------------------------------------
|acc1      |Account 1   |tran1         |Transaction 1   |
|acc1      |Account 1   |tran2         |Transaction 2   |
|acc1      |Account 1   |tran3         |Transaction 3   |
|acc2      |Account 2   |tran4         |Transaction 4   |
|acc3      |Account 3   |null          |null            |
|acc4      |Account 4   |tran5         |Transaction 5   |
|acc4      |Account 4   |tran6         |Transaction 6   |

But what I want is to get a count for the number of transactions - I don't care about any information related to each transaction; I just want to get a count of the number of transactions for each account:

|Account ID|Account Name|Number of Transactions|
------------------------------------------------
|acc1      |Account 1   |           3          |
|acc2      |Account 2   |           1          |
|acc3      |Account 3   |           0          |
|acc4      |Account 4   |           2          |

How can I get this?

SSRS formula

$
0
0

Hi,

How to convert below crystal report formula into SSRS expression

ToText(truncate({p_prn_annual_statement.rate},0),0)+','+Mid(ToText({p_prn_annual_statement.rate}-truncate({p_prn_annual_statement.rate},0),3),3,3) 


Aravinth

SSRS 2017 Cant navigate in report viewer (Next Page)

$
0
0

Hi,

We recently started using SSRS 2017 but have an issue when we are viewing a report deployed to the SSRS 2017 report server. When the report runs, it show 0/0 pages and clicking on the next page button does nothing. When I export the report to PDF I get over 100 pages.

If I use the search box to look for any text within the report, then the next and previous button becomes active and it shows the same number of pages as the exported report.

Is there a setting that we missed somewhere?  or is this a bug in SSRS 2017?


Passing Date Parameters in SSRS

$
0
0

Hi,

How can we achieve the following:

I want to display month wise data on my report.

I am trying to pass SELECT DATA FROM DB WHERE DATE_TIME BETWEEN

01-'"+Parameters!Parameter1.Value+"'-18 AND  31-'"+Parameters!Parameter1.Value+"'-18

The parameter consists of month like JAN.FEB,MAR etc

How can we achieve it? 

is there a simple redirect capability in ssrs?

$
0
0

Hi we run 2016 enterprise. Once in a while we deprecate a report and replace it with a totally revamped version whose name is different.

In different scenarios we might want to keep the old report around for a while  whether it be for post elevate parallel against the new report etc etc.  Also, in spite of portals and links from our UI, a few people keep the original link handy so they can bypass the other avenues.  More than likely, the old report gets renamed.

Is there a way in ssrs to automatically redirect folks using the old link or present them with something friendly to tell them where the new report is?  Without making a new report specifically for that purpose?

I know we have a mechanism for vanity urls that perhaps could be leveraged but i'm wondering if ssrs itself has anything like this. 


DTD is prohibited in this XML document. (System.Xml) error while accessing XML file of Form Library

$
0
0

I am getting  "DTD is prohibited in this XML document. (System.Xml)" error in SSRS report while executing xmldp query in query designer having datasource as a url of XML file of Form Library.

In sharepoint 2010, reporting services is configured to Trusted mode account.

Environment : SQL Server 2008 R2, Windows Server 2008 R2, Using NTLM.

If I upload a copy of XML file of Form Library from one Domain (say TestServer) to other Domain (say ProdServer) (or vice versa) in Shared Document then I have no issue to access xml file in SSRS report.

Any Help will be Appreciated.


Query :

<xmldp:Query xmlns:xmldp="http://schemas.microsoft.com/sqlserver/2005/02/reporting/XmlDPQuery" >

<xmldp:ElementPath IgnoreNamespaces="true">*</xmldp:ElementPath>
</xmldp:Query>

 

Detail error is as follows :

===================================

Could not generate a list of fields for the query.
Check the query syntax or click Refresh Fields on the query toolbar.
DTD is prohibited in this XML document. (Microsoft SQL Server Report Builder)

===================================

DTD is prohibited in this XML document. (System.Xml)

------------------------------
Program Location:

   at System.Xml.XmlTextReaderImpl.Throw(Exception e)
   at System.Xml.XmlTextReaderImpl.ThrowWithoutLineInfo(String res, String arg)
   at System.Xml.XmlTextReaderImpl.ParseDoctypeDecl()
   at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
   at System.Xml.XmlTextReaderImpl.Read()
   at System.Xml.XmlTextReader.Read()
   at Microsoft.ReportingServices.DataExtensions.XmlDP.Xml2TableConverter.ReadToken()
   at Microsoft.ReportingServices.DataExtensions.XmlDP.Xml2TableConverter.ReadNextToken()
   at Microsoft.ReportingServices.DataExtensions.XmlDP.Xml2TableConverter.ReadNext()
   at Microsoft.ReportingServices.DataExtensions.XmlDP.InMemoryCommand.DataReader.PrepareSchema()
   at Microsoft.ReportingServices.DataExtensions.XmlDP.InMemoryCommand.DataReader.get_FieldCount()
   at Microsoft.ReportingServices.QueryDesigners.QueryResultsGrid.GetColumnHeaders(IDataReader reader)

SSRS 2008 R2 error Cannot read the next data row for the dataset - rsErrorReadingNextDataRow

$
0
0

Hi, I am using SSRS 2008 R2 and when I run this report in BIDS works fine, when deployed to report server I get the below error. I am not doing anything complicated in the report or the stored procedure that I use as the dataset for the report. This report has 2 parameters of which one is multi-valued.

SSRS Error:

Cannot read the next data row for the dataset (rsErrorReadingNextDataRow).

Please let me know.


Ione

Job ID owned by SSRS cannot match any Subscriptions on SSRS

$
0
0

Hi, I got a problem when I try to identify SQL Agent job that runs a Reporting Services subscription. However, I found there are a few Jobs owned by SSRS cannot match any Subscription. For instance, I have 16 jobs in job agent, but I only could identify 13 of them.

Does anyone have any ideas about this situation?  Is there any way to figure it out where the unexpected job come from and trace them?

Appreciate it!!

Comparing two columns in SSRS Expression

$
0
0

Hi,

 

I have a requirement in which i need to compare two columns and return the value from one of the column based on the condition.

 

i have two date columns Expiry date and Revised expiry date. i need to check if there is a null value in revised expiry column, then i need get the value of expiry date or else i need to get revised expiry date.

See the example below:

Exp Dt    RevExpDt

01.01.12             Null                                   ---- It should display 01.01.12

01.02.12       01.05.12                              ----- it should display 01.05.12

Could anyone of us help me in this for writing the SSRS Expression.. Thanks in Advance


Balaji - BI Developer

SSRS Tab-lix Formatting

$
0
0

Hi,

I need to create the below layout in a tablix or matrix which ever is convenient:

As you can see in the above image i want to display data horizontally.

Also,I have created a SQL table to populate the data which has been seen above:

Could you please suggest the best possible way to design the specified layout in SSRS and populate the data horizontally.

It would be very helpful if you could share an example for the same!

Thanks for your support and understanding!

Microsoft SQL Server vs Report Builder versions?

$
0
0

Hello,

All reports are running fine from any remote computers.

But as I am getting an error:

when launching a Create/Edit from a Remote Server to Reporting Service Server I wonder if there is a list of corresponding versions between the two softwares:

Microsoft SQL Server & Report Builder.

For now I have 13.0.4522.0 for Microsoft SQL Server trying to work with Report Builder 14.0.609.142

Thanks,
Dom


Security / System Center Configuration Manager Current Branch / SQL



SortExpression expression error

$
0
0

Hi,

I'm getting an error when attempting to render my report that "the SortExpression" expression for the grouping "Details" refers to the field "AccountStatus". Report item expressions can only refer to fields within the current dataset scope or, if inside and aggregate, the specified dataset scope."

I changed the dataset and replaced all the fields and I know this field is no longer referenced on the report. Not sure why SSRS is erroring on this.

Thanks


Francis, MCTS: BI 2008, MCITP: BI 2008 Stay Thirsty My Friends


SSRS Data Sources and gMSA

$
0
0

I am in the process of setting up Great Plains Reporting on our new SQL16 Development Report Server, I have already copied over all our reports and wanted to change the current data sources to point to the new Developtment SQL Server where the GP databases have been restored to for testing.  In doing so we have been in the process of moving over to gMSAs anywhere possible.  The SSRS is already setup to use a gMSA on the server side and figured why not do the same for the Data Source connections themselves. 

I have attempted a few ways of doing this but cannot seem to get the credentials setup right, nor do I know if this is even an option.  I have researched and cannot find any information as to if this an option either.

Has anyone setup SSRS Data Sources using a gMSA before?  Is it even possible?

Any help is greatly appreciated!

-Kyle

External Image from Google Drive into SSRS

$
0
0

I'm trying to display some external images in my SSRS report.

The images I'm trying to show are in Google Drive. They are accessible publicly (anyone with the url can access).

But my report is not showing them. What am I missing?

Is it even possible to show images from Google drive in SSRS?

Unable to embed DIN font in PDF exported from SSRS

$
0
0

Hi Guys,

My SSRS report is using DIN font.

On exporting the SSRS report as a PDF this font is not getting embedded.

Could someone let me know how this can be achieved?

This is related to another discussion posted on this blog:

https://social.msdn.microsoft.com/Forums/sqlserver/en-US/b357c121-da94-4ad1-b81b-0a7aa23ec845/how-to-get-ttgetembeddingtype-for-font?forum=sqlreportingservices

I have gone through:

https://docs.microsoft.com/en-us/sql/reporting-services/report-builder/exporting-to-a-pdf-file-report-builder-and-ssrs?view=sql-server-2017

But, I am not sure where to find font property "TTGetEmbeddingType" in "control panel > ... > fonts".

My report uses DIN a TrueType font (for which my company has purchased a license) extensively.

This DIN font is installed on server hosting SSRS 2008R2 server (with SP3 update).

After installing SSRS service has been restarted.

Unfortunately, we can't restart the server as it is a production server.

Any help on this matter is much appreciated.

Thanks in advance.

Best Regards,

Harsha

Deleting log files?

$
0
0

I found a folder with hundreds, perhaps thousands of log files, some of them are for the same day. All of them are numbered.

This is the folder's location:

C:\Program Files\Microsoft SQL Server\MSRS13.MSSQLSERVER\Reporting Services\LogFiles

Can I delete them all?

Thanks, - MyCatAlex

SSRS

$
0
0

Hi,

Can we transpose data in SSRS?

Example :

I am having data for the columns A B C D in horizontal format

Now i want to display the same data in vertical format

Is that possible?

Viewing all 10045 articles
Browse latest View live


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