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

Visual Studio 2017: How to configure to deploy to both 2008 and 2017 Report Server environments?

$
0
0

Hi All,

Recently we converted a large reporting environment (1000+ reports) from SSRS2008 to SSRS2017.  For a period of time, I need to support both environments, building, deploying, and configuring reports for both SSRS versions.

I am trying to use Visual Studio 2017 with SSDT installed.  The environment works great and I am able to deploy to both versions of SSRS.  The problem I am running into is how to configure multiple deployment environments and quickly switch between environments.

Ideally, I would like to create two configuration environments:  SSRS_2008 and SSRS_2017.  I would like to quickly switch between these target configurations by clicking on the menu ribbon (Solution Configurations)/(Solution Platforms) dropdown menu. 

My Report.sln has 60+ projects with 5-50 Report_xxx.rdl files. Today I have to configure each OutputPath, TargetServerUrl, and TargetServerVersion property manually before I build and deploy.

How do I configure my environment to quickly switch between the two environments without having to tediously go through each project each time I want to Build and Deploy? 

It looks like I should be able to do this, but some how I'm getting VS Configuration Manager wrong!  I've read numerous documentation, but it I'm missing something!

Any help is appreciated.

Thanks,

--Dan


Problem trying to convert a 2008 ssrs solution with Visual Studio 2017

$
0
0

trying to convert a 2008 ssrs solution with Visual Studio 2017 gives me the following error...

"Visual Studio needs to make non-functional changes to this project in order to enable the project to open in released versions of Visual Studio newer than Visual Studio 2010 SP1 without impacting project behavior "

Parameter value being sent under another parameter name.

$
0
0

Hello, 

I am querying an oracle database through OLE DB. I have created 3 parameters, 2 dates and 1 number. 

Since the query was not working properly, I tried debugging it.

First, I created a shared dataset with:

select :p_fecha1, :p_diasp, :p_fecha2 from dual;

I created a table with these values, and this is what I get:


I really have no idea what is happening. The value of P_Fecha2 is being assigned to DiasP and DiasP is being returned with Fecha2. I'm sure I must be missing something but I can't find it. Does anyone know what is happening here?





Sort Month in Ascending Order.

$
0
0

Hi,

    I am newibe in ssrs 2008 report. I created a tablix report.  In my report  , month  is showing ascending order. But i want to display (JAn to December ). How its possible.

Thanks

Dileep

SSRS 2008, Issue trying to sum lookup values

$
0
0

Hi,

I have 2 datasets, dataseta is a list of tickets and their relevant owner and databsetb is a list of owners and a daysworked first against them.

I have a table with a detail grouping on ticketid and a normal grouping on owner which works well... all straight forward to this point. In this table on the owner grouping level I also have a lookup to datasetb which pulls back the daysworked per owner which works fine aswell. But what I now need to do is total the daysworked over all owners, which sounds simple but doesnt work.

This is the expression on the daysworked for each owner -

=lookup(Fields!owner.Value,Fields!owner.Value, Fields!Days_worked.Value,"datasetb")

if i add a sum around this then it uses the figure above but multiplies it by the amount of tickets in the detail grouping.

How do i get around this?


Pete

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"?  I still need to know this.

This question has now been answered"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"?"

After checking the 1st report, it only had a shared 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



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.



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.

 



Showing Report Execution Time from where it's called

$
0
0

Hello,

Was wondering if anyone has come across this issue before. At the bottom of our reports, we have a standard footer showing when the report is executed, and we use Globals!ExecutionTime. Our report server is located Central Standard Time (CST). So, lets say it's 10/31/2013 11:00 AM CST. If the report is originated from New York for example, I will want to see that execution time be 10/31/2013 12:00 PM (eastern time). But currently it's not. Same thing, I tried from Pacific Time, and it's still showing the central time, because that's where the report server is located. 

What I tried was, changing my computer clock to be in different time zone, and sure enough, when running it from Visual Studio, it's showing the correct time. But when I deploy this to report server, it's still show central time. 

I've researched through out the forum, and some suggested using 

TimeZone.CurrentTimeZone.StandardName
TimeZone.CurrentTimeZone.GetUtcOffset(Now()).ToString()

But it's still not working from running it from report server. Has anyone encounter this requirement and how do you solve them. Thanks in advance.

IH

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

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; 

The ConnectionString property has not been initialized

$
0
0

SQL Server 2008 R2 developers edition / Visual Studio 2008 running on Windows 7 64 bit box.

Created a report with embedded data source. Works fine. Plublished report. Can view report in browser just fine.

Then, in VS 2008, right clicked on datasource. Selected "convert to shared datasource". I did this without any errors reported.

Rebuilt report project and deployed. No errors reported.

Ran report from browser, and now I get this error:

   "The ConnectionString property has not been initialized."

Several questions:

1.  How do I fix this error?

And so that I have a better understand of the technology:

2. How do I find the physical location of the RDL & RDS files? (Would i ever need to know this?)

3. Is a "report server" a specialized database server, web server or something else? At a very high level, what I'm trying to understand is what I'll have to do to set up new report servers for clients. Assuming SQL Server is installed, what tool will I use to (a) create the "Report Server"?  (b) make the server public?  (c) And can I simply copy RDL files to the server and (d) the shared data source and edit it?

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


Can I hide the folder path in Reporting Services when a user runs a report?

can someone give me an example of an "rs web service link", which will eliminate the breadcrumbs when running an SSRS report in reporting services?

$
0
0
can someone give me an example of an "rs web service link", which will eliminate the breadcrumbs when running an SSRS report in reporting services? 

ssrs 2012 iif problem

$
0
0
In an ssrs 2012 report, I am getting the error message of 'The Value Expression for the 'Textbox80.paragraphs[0].TextRuns[0]' contains an error [BC305156].
Overload resolution dailed becuase no accessible 'IIf' accepts this number of agruments.
The problem is caused from the following iif
=IIF(Fields!homeLanguage.Value = "Spanish"," en "Approved Technology".  La lista tiene tres categorías:", " on the "Approved Technology" icon. The list has three categories:")
when i change the iif to the following it works:
=IIF(Fields!homeLanguage.Value = "Spanish",' en 'Approved Technology'.  La lista tiene tres categorías:", " on the 'Approved Technology' icon. The list has three categories:")
The user wants me to place "Approved Technology" to be in double quotes instead of 'Approved Technology'.
Thus can you show me what I can do to make the "Approved Technology" show up?

Passing XML Parameters in SSRS

$
0
0

Hi,

I have a requirement where XML string is passed as a parameter to SSRS and SSRS should display the information as Table 

Steps I have Followed :

1. Created a Data Source(XML) with No Connection String Information ( Empty )

2. Created a Parameter with Default Value ( ="<Customers><Customer ID=""1"">Bobby</Customer></Customers>")

3. Created a Data set with the below statement:

 ="<Query><XmlData>"& Parameters!ReportParameter1.Value & "</XmlData></Query>"

Then i have created two fields manually and one id ID and Customer. But When i preview the Data i was not able to see the values of 1 and Bobby in the fields.  i am getting an #Error without any clue. 

Can any one help me out on this Issue with the complete details. :)

Thanking you in advance...!

Regards,

Balaji Prasad B


Balaji - BI Developer

Deserialize ACL problem

$
0
0

I'm developing a custom security extension to Reporting services. In my authorization class I have a problem to deserialize the ACL (secDesc parameter). I have many examples and I’m doing the same excepted for one thing I’m not in form authentication but I’m in windows authentication.

The problem is in the method 'DeserializeAcl(byte[] ...)'.
I encounter this kind of bug :
BinaryFormatter versions incompatibility : Excpected version 1.0,
received version 880850475.24252454.

Thanx for your help

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)

Configure SSRS E-Mail Settings - SMTP Server with Port number

$
0
0

Hi Guys,

I have an SSRS 2016 Reporting Services Instance, which needs to be able to send mails. Unfortunately, for some reason, this is not happening, so I've started troubleshooting and quikly noticed that the smtp server, used in the setup is not operating on the default port (25), but on a custom port instead. 
This means that when the E-Mail Settings are being configured, the smtp server needs to be entered in the format: smtp_server.company.com:587

Here is an example:

My question is: Would this work at all? Is the Reporting Services Configuration Manager able to obtain the port from the server name or does it use port 25 by default?

I kinda have the feeling that it just tries to contact the server on port 25 and is not able to obtain the port from the server name at all :(

One additional question: the user sender@company.com...Does it have to be allowed to send mails in some way or is this just a mail address, which is entered in he *From:" field?

Many thanks in advance!

Regards,



(Please take a moment to "Vote as Helpful" and/or "Mark as Answer" where applicable. This helps the community, keeps the forums tidy, and recognizes useful contributions. Thanks!)Blog: https://blog.pohn.ch/ Twitter: @StoyanChalakov

Viewing all 10045 articles
Browse latest View live