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

Dynamic external images pulling from server2 based on query result ...and more!

$
0
0

Someone point me in the right direction please. I'm struggling on this one.

I sell items that have cad drawings associated to them. I want my user to be able to pull up, or inline view the unique drawing to the item. 

so my table would look like 

Item#     Product            Drawing

100             Toy               {Toy Drawing jpg}

200             Hammer        {Hammer Drawing jpg}

300             Microphone    {Microphone Drawing jpg}   

Or could look like

Item#     Product            Drawing

100             Toy               Click to View Drawing

200             Hammer       Click to View Drawing

300             Microphone    Click to View Drawing


My drawings are stored on a file server and are named based on the Item#. My ERP system requires the drawings all have the same prefix "4" and suffix "5p" on every drawing.  

so you can find the drawing for Toy  \\server2\folder1\41005p.jpg

the drawing for Hammer \\server2\folder1\42005p.jpg

the drawing for Microphone \\server2\folder1\43005p.jpg

I feel like I should be able to do this but am getting nowhere. 

Anyone able to point me in the right direction?

Running SSRS 2012


Thank you ALL.




Displaying subreport breaks Main Page formatting in some sections

$
0
0

I have a report built using SQL Server 2014 that has a subreport at the end of the Main report (Last section of the Tablix). If the Tablix row that the subreport resides is set to NOT visible, the Main report displays fine. However, if the Tablix row is set to visible, other Tablix rows above format differently (page in the middle of sections), so the report will go from 2 pages to 6 with a lot of dead space. I have tried shrinking the subreport page size to be smaller than the page format of the main report. I have verified all Page breaks have been turned off and even disabled the keep together options. Yet the problem exists.  Why would the addition of the subreport to the Tablix cause other sections to perform in this way?  The subreport itself displays fine, it just messes up other parts of the Main report. Is there anything I can check to correct this problem or is this a bug with SSRS?


Lou Davis Software Engineer E2B Teknologies

SSRS report can display all value in "Preview", but can't in "browser" partially

$
0
0

I would like to develop the SSRS report.

It can display all value in "Preview", but can't in "browser" partially.

Could anyone help for the issue?

Thanks so much.

Regards,
Anderson

How can I discover which SSRS reports have an "embedded data source"?

$
0
0

How can I discover which SSRS reports have an "embedded data source"?

When the following script that lists report names and data sources shows a data source that is NULL is that a report that has an "embedded data source"?

--List the reports with the number of executions and time last run, including datasources.
SELECT c.Name,
       COUNT(*) AS TimesRun,
       MAX(l.TimeStart) AS [LastRun],
(
    SELECT SUBSTRING(
                    (
                        SELECT CAST(', ' AS VARCHAR(MAX))+CAST(c1.Name AS VARCHAR(MAX))
                        FROM [Catalog] AS c
                        INNER JOIN [DataSource] AS d ON c.ItemID = d.ItemID
                        INNER JOIN [Catalog] c1 ON d.Link = c1.ItemID
                        WHERE c.Type = 2
                              AND c.ItemId = l.ReportId
                        FOR XML PATH('')
                    ), 3, 10000000) AS list
) AS DataSources
FROM [ExecutionLog](NOLOCK) AS l
INNER JOIN [Catalog](NOLOCK) AS c ON l.ReportID = C.ItemID
WHERE c.Type = 2 -- Only show reports 1=folder, 2=Report, 3=Resource, 4=Linked Report, 5=Data Source
GROUP BY l.ReportId,
         c.Name
ORDER BY DataSources

How can I programmatically discover which SSRS reports have an "embedded data source"?

$
0
0

How can I programmatically discover which SSRS reports have an "embedded data source"?

When the following script that lists report names and data sources shows a data source that is NULL is that a report that has an "embedded data source"?

--List the reports with the number of executions and time last run, including datasources.
SELECT c.Name,
       COUNT(*) AS TimesRun,
       MAX(l.TimeStart) AS [LastRun],
(
    SELECT SUBSTRING(
                    (
                        SELECT CAST(', ' AS VARCHAR(MAX))+CAST(c1.Name AS VARCHAR(MAX))
                        FROM [Catalog] AS c
                        INNER JOIN [DataSource] AS d ON c.ItemID = d.ItemID
                        INNER JOIN [Catalog] c1 ON d.Link = c1.ItemID
                        WHERE c.Type = 2
                              AND c.ItemId = l.ReportId
                        FOR XML PATH('')
                    ), 3, 10000000) AS list
) AS DataSources
FROM [ExecutionLog](NOLOCK) AS l
INNER JOIN [Catalog](NOLOCK) AS c ON l.ReportID = C.ItemID
WHERE c.Type = 2 -- Only show reports 1=folder, 2=Report, 3=Resource, 4=Linked Report, 5=Data Source
GROUP BY l.ReportId,
         c.Name
ORDER BY DataSources


Configure Data Source in report builder to point to SQL Server on Amazon Web Services?

$
0
0
How do you configure the Data Source in report builder to point to SQL Server on Amazon Web Services?  I managed to get it to work with PowerBi but not sure about how to do that with report builder or if it's even possible?

RS 2017. Description is truncated in List view and not shown in Tile view

$
0
0

We just upgraded to RS 2017. We have detailed descriptions on our reports. In list view, they are truncated. In tile view they are not displayed. Our users rely on the descriptions. How can we make the entire description visible in tile and list view?

Thanks,


Linda


Subreport prevents tablix headers from repeating

$
0
0

We are trying to repeat a Job Number on the top of every SSRS report page. I've tried numerous with only partial success.

In the core report, we have the column headers repeat and the report works great.

The initial problem occurred when a subreport would span multiple pages then the page header would not print.



In an attempt to work around the issue, we set a variable and print the variable in the report header.

The following code is applied in the body of the report.
=Code.SetValue("JobNum", Fields!JobNum.Value)

The result is then applied in the header using the following code.
=Code.GetValue("JobNum")

I break on the jobnum group.

Unfortunately, the variable is not properly set / in sync with the body.  See below.

The first page looks good.

The second page is out of sync.


Is there a solutions to this problem?


David Bemenderfer


ssrs 2012 report display issue

$
0
0

In a new ssrs 2012 report, I am having problem the report displaying the data from a sql server 2016 report. Basically I wrote a query in t-sql 2012, and I am obtaining the results I want to see when I run the query in Sql server management studio.

 However when I run the report, I am not getting the  data results I am expecting see. I know the problem is the data being displayed in the report since I placed the selected data from a date field called ‘enddate’ in a textbox field. The field in the database is in type smalldatetime and nulls are allowed.

When I run the ssrs 2012, the data being is ‘null’. In the sql listed below the field call

ImpactAidEmployment.enddate’ 

Can you tell me what I can do to s'olve the problem?

Here is the sql:

--debug

--DECLARE @endYear SMALLINT = 2016

--DECLARE @calendarID INT = (SELECT calendarid FROM OPS.dbo.Calendar WHERE name LIKE '%central h%' AND endYear = @endYear AND summerSchool = 0) --6153

--end debug

 

 

SELECT DISTINCT Common.identityID, Common.personID, Common.structureID, Common.enrollmentID, Common.calendarID, Common.startYear, Common.endYear,

                Common.schoolID, Common.schoolType, Common.schoolName, Common.studentNumber, Common.grade, Common.gradeSeq,

                Common.fullName, Common.firstName, Common.middleName, Common.lastName, Common.suffix, Common.gender, Common.birthdate, Common.hispanicEthnicity,

                Common.raceid1, Common.raceid2, Common.raceid3, Common.raceid4, Common.raceid5, Common.homeLanguage,  COPPA.COPPAyesno

           ,Case when (GuardianMilitary2.guardianFirstName is null) or (GuardianMilitary2.guardianLastName is null)

                     then ltrim(substring(coalesce(GuardianMilitary.guardianFirstName,'') + ' ' + coalesce(GuardianMilitary.guardianLastName,''),1,55))

                     else ltrim(substring(coalesce(GuardianMilitary.guardianFirstName,'') + ' ' + coalesce(GuardianMilitary.guardianLastName,'') + ', ' + coalesce(GuardianMilitary2.guardianFirstName,'') + ' ' + coalesce(GuardianMilitary2.guardianLastName,''),1,55))

           end as GuardiansNames

          ,ImpactAidEmployment.startdate,ImpactAidEmployment.enddate 

FROM CampusOps.dbo.vSaFIGetCommonStudentInfo AS Common

 

LEFT JOIN (SELECT personID, value AS COPPAyesno --Census > People > Demographics custom tab

             FROM OPS.dbo.CustomStudent WITH (NOLOCK)

                     WHERE attributeID = 3781) AS COPPA

  ON COPPA.personID = Common.personID

JOIN ops.dbo.RelatedPair RelatedPair

     on RelatedPair.personid1 = Common.personID

LEFT JOIN ops.dbo.ImpactAidEmployment ImpactAidEmployment

     on ImpactAidEmployment.personID =  RelatedPair.personid2

                   and ImpactAidEmployment.startdate is not null

LEFT JOIN OPS.dbo.v_GuardianMilitaryConnections GuardianMilitary  -- contains guardian information that is needed

         on GuardianMilitary.personID = Common.personID and GuardianMilitary.guardianStatus like '%Active Duty%'

LEFT JOIN OPS.dbo.v_GuardianMilitaryConnections GuardianMilitary2  -- contains guardian information that is needed

        on GuardianMilitary2.personID = GuardianMilitary.personID

              and (GuardianMilitary2.guardianPersonID<> GuardianMilitary.guardianPersonID)

              and GuardianMilitary2.guardianStatus like '%Active Duty%'

 

WHERE Common.calendarID = @calendarID

  AND Common.personID = @personID

AND Common.serviceType in (@serviceType)

 

ica.

 


Fetch SSRS embedded data sources connection string

$
0
0

how to fetch SSRS embedded data sources connection string  from SQL Query,

below one capture Shared Data-source connection string,


-- Connection strings of all SSRS Shared Datasources
;WITH XMLNAMESPACES  -- XML namespace def must be the first in with clause.
    (DEFAULT 'http://schemas.microsoft.com/sqlserver/reporting/2006/03/reportdatasource'
            ,'http://schemas.microsoft.com/SQLServer/reporting/reportdesigner'
     AS rd)
,SDS AS
    (SELECT SDS.name AS SharedDsName
           ,SDS.[Path]
           ,CONVERT(xml, CONVERT(varbinary(max), content)) AS DEF
     FROM dbo.[Catalog] AS SDS
     WHERE SDS.Type = 5)     -- 5 = Shared Datasource


SELECT CON.[Path]
      ,CON.SharedDsName
      ,CON.ConnString
FROM
    (SELECT SDS.[Path]
           ,SDS.SharedDsName
           ,DSN.value('ConnectString[1]', 'varchar(150)') AS ConnString
     FROM SDS
          CROSS APPLY 
          SDS.DEF.nodes('/DataSourceDefinition') AS R(DSN)
     ) AS CON

ORDER BY CON.[Path]
        ,CON.SharedDsName; 

Do you rdlc bugs?

$
0
0

Question 1, rdlc textbox print line spacing No matter how many settings are invalid how to solve?
Question 2, rdlc textbox placeholder set to interpret HTML markup as a style still can not display the page table, how to solve?

问题 1, rdlc 文本框打印行间距无论有设置多少均无效如何解决?
问题 2, rdlc 文本框占位符,设置成将 HTML 标记作为一种样式仍然不能显示网页表格样式, 如何解决?

SSRS Time Settings

$
0
0

HI,

I want to retain the same timestamp which i am getting through my stored procedure to SSRS report also.

Its in UTC format. How can I achieve that?

Adding or Customising parameter in SQL report builder

$
0
0

Hi All,

I am new at using the SQL report builder. 

I have built a report with a parameter showing rows that linked to the parameter value selected.

I now want to add a 'View All' option to the current parameter, but not sure how.

Please help!

Thanks

Fox

Series values are not correct

$
0
0

Hi All,

I have one chart in which the groups are calculated in stack bar chart with their respective values.

And below is the dataset for the above result

Now, I have Series group on SeriesGrpNm field, in the values i have used Sum(SeriesGrpAmt) and category group on Rpt_Month field.

Proble: I think the resultset need to display per the y-axis values in order of SeriesGrpAmt for the Category right?

I mean to say that Suppose Income variance has value 1963.84 which should be displayed at the lower bottom of the chart column currently which is coming on the top of the chart column. 

I dont what I am doing wrong here..

Help must be appreciated



Dilip Patil..

Run report in xx hours/days after the 2nd Tuesday

$
0
0

Hi all

I use SSRS for reports subscription and want to run a report on a schedule. In my case I need to execute a report on a monthly basis in 8 hours after each 2nd Tuesday (MS Patch Tuesday) 11PM. Another words, a report should be executed at 7AM each Wednesday after the 2nd Tuesday.

It looks simple but the problem is that after the 2nd Tuesday there could be either the 2nd or the 3rd Wednesday (if a current month starts at Wednesday like on May 2019).

My idea is to use a shared schedule, but I can't find a way how to configure it to count 8 hours after each 2nd Tuesday. It could be better the hours number could be defined by user as a parameter in Subscription Scedule UI - this way I will need to select a created Shared Schedule and put 8 hrs as a parameter value.

Any suggestions please?


OK



Report taking a long time to load in BIDS preview.

$
0
0

Hi I have a report which looks at a single table, that has 16 million rows.

The report has 4 parameters all of which can be null. When I click on the preview tab the report displays the loading(green circle going around) and eventually I get the msg 'System.OutOfMemoryException' was thrown.

I can run the SQL in Management Studio without a problem and query completes between 1 and 3 seconds depending on which parameters have values other than null.



porting over database changes to sql reporting services to avoid breaking reports

$
0
0

When database changes are made (tables and column names renamed or eliminated), my shop struggles with broke reports which we react to after deployment. There is no established practice to fix the reports to reflect the changes before going live with the database changes.  I gotta believe the disconnect is a very common challenge.

I have the databases set up as SQL Server Database projects in VS and have them committed to GIT. The reporting services files (rdl files) are in GIT as well. Googled everywhere to see if a database project can be connected to no avail.  

Whenever a database object is changed (renamed a column for example) in a database project, I am looking for an efficient way to fix the references to the renamed column in the SQL server reporting services project.

Version of the report server is not valid

$
0
0

Hi ,

my report database is throwing an error like below after a failback from Azure VM.  it used to work before the failover.  This server is in AlwaysON with one of the azure server. After we failed back from Azure vm , this problem started. Can someone please help . 

Error:

Microsoft.ReportingServices.Library.InvalidReportServerDatabaseException: The version of the report server database is either in a format that is not valid, or it cannot be read. The found version is '165'. The expected version is '163'.;

Version Info:

Microsoft SQL Server 2014 (SP2-CU17) (KB4491540) - 12.0.5632.1 (X64) 
Apr  1 2019 22:02:03 
Copyright (c) Microsoft Corporation
Enterprise Edition (64-bit) on Windows NT 6.3 <X64> (Build 9600: ) (Hypervisor)

Issue while using the Data Driven Subscriptions in SSRS

$
0
0

We have created some SSRS reports and when we try to schedule using Data Driven option, it is throwing the error "Data driven subscriptions cannot be created because the report or shared dataset has user profile dependencies and cannot run unattended". Find the image.

Your help is much appreciated !

Thanks

Aditya



Help with SSRS Grouping

$
0
0

I am working on moving some Crystal Reports to SSRS, and while I am no SSRS guru I can hold my own. But I am having difficulty figuring out if SSRS can pull off a report I am trying to build. To simplify things we have a table that has QueueIndex which is a unique identifier, my SQL that I use for the SSRS and Crystal Report does an ORDER BY on QueueIndex.

The report should GROUP BY the product and Length. The report is supposed to Output the product, length, and quantity which is a count of the QueueIndex for that product and length.

So when the report runs it needs to lists the products in order of the QueueIndex and provide a count for each Product and Length along with the total of those, and then move to the following product and length in the next row, if there is a change. The same Product and Length can appear later in the report with a different count for that set.

So far all I am able to really achieve

Example:

This is how the report SHOULD look when complete:

<style type="text/css">&lt;!--td {border: 1px solid #ccc;}br {mso-data-placement:same-cell;}--&gt;</style>
Product Length Quantity
6 9'0" 6
6 8'0" 12
6 6'0" 3
6 17'0" 1
T 16'0" 3
6 16'0" 4
6 18'0" 6
6 16'0" 3
6 8'0" 1
6 16'0" 4

Here is the test data from the table:

<style type="text/css">&lt;!--td {border: 1px solid #ccc;}br {mso-data-placement:same-cell;}--&gt;</style>
QueueIndex Length Product
1 108 6
2 108 6
3 108 6
4 108 6
5 108 6
6 108 6
7 96 6
8 96 6
9 96 6
10 96 6
11 96 6
12 96 6
13 96 6
14 96 6
15 96 6
16 96 6
17 96 6
18 96 6
19 72 6
20 72 6
21 72 6
22 204 6
23 192 T
24 192 T
25 192 T
26 192 6
27 192 6
28 192 6
29 192 6
30 216 6
31 216 6
32 216 6
33 216 6
34 216 6
35 216 6
36 192 6
37 192 6
38 192 6
39 96 6
40 192 6
41 192 6
42 192 6
43 192 6
44 108 6
45 108 6
46 108 6
47 108 6
48 108 6
49 108 6


Viewing all 20764 articles
Browse latest View live


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