passing GUID from CRM on premise to SSRS report - sql-server

I have uploaded report to CRM which I created in SSRS, when I go into CRM and then run it from Report section it runs successfully, only thing is it's looking for GUID in order to show reports with value.
I want to automate this somthing like whenever I go to each client Profile in CRM and click on run reports it should fetch it's GUID and pass it to that report as parameter and show the report.
Please help.

Try following,
1) change your report's datasource to embedded and then add button to the ribbon in Dynamics CRM( see following link)
http://mahadeomatre.blogspot.ca/2015/04/run-report-from-custom-ribbon-button.html?_sm_au_=iVV7VjqJnWZTNR0P

Related

Is it possible to restrict an SSRS report on Report Manager to one user at a time?

I have an SSRS report published to Report Manager, available to all Domain Users. The report's stored procedure executes a xp_cmdshell which outputs SQL data to an excel file in a shared file location. The issue is the report can't handle being run concurrently - anyone trying to run the report simultaneously with another user gets a blank file, or, worse, a file with missing data. I can't redevelop the solution right now, what I'm hoping to do is restrict the report to one user at a time, either within the SSRS report, via report manager config or the SharePoint link on our intranet (which users access the report by). Everything is on-prem.
I've tried the report config, RM config, our SharePoint developer and Google and none are helping. Thanks.

generate a file through SQL Server by query

I'm working on a project which is based on daily activity.So i need to provide multiple reports at the end of the day by using export/Import Wizard it will take around 30-40 min of time.
In this case am thinking that i can write a query to generate these reports are done by a single query.It saves my time.
There is any chance to do this?
You have many options. Two good options to save your time, and generate the results of many queries in file format, are:
SSRS
SSRS Scheduled Reports, if you have that available to you.
To configure a subscription to deliver a report to a file share
In the Configuration Manager console, navigate to System CenterConfiguration Manager / Site Database / Computer Management /
Reporting / Reporting Services / , and expand the
node.
In the results pane, right-click a report and then click New Subscription.
On the Subscription Delivery page of the Create Subscription Wizard, specify the delivery properties for this report subscription.
From the Report delivered by drop-down list, select Windows File
Share. For more details about the options on this page, see Report
Subscription Dialog Box: Subscription Delivery Tab.
Click Next to continue.
On the Subscription Schedule page of the Create Subscription Wizard, configure the schedule by which the report will be generated
and delivered to the file share. For more details about the options on
this page, see Report Subscription Dialog Box: Subscription Schedule
Tab.
Click Next to continue.
On the Subscription Parameters page of the Create Subscription Wizard, specify any parameters that this report needs to run. For more
details about the options on this page, see Report Subscription Dialog
Box: Subscription Parameters Tab.
Click Next to continue.
On the Summary page of the Create Subscription Wizard, review the subscription that will be created and then click Next.
On the Confirmation page of the Create Subscription Wizard, review the actions taken and then click Close to exit the wizard.
SQLCMD
And using the Windows scheduler or a batch file run by hand to have sqlcmd run one or more queries and/or stored procedures on a schedule, outputting to one or more files.
Both Excel and Libreoffice will read tab delimited files; to do so with sqlcmd see this stackoverflow answer.

Unable to access network file from ssrs report

I am trying to access a network file from the SSRS report.
Below is what I have tried or done
Included a table in the new report
On one of the column box clicked the
text box properties ----->Action ---->Go to URL ------ Here I gave the fully qualified server name file://Servername/xxxx
Now I deployed the report on to the SSRS server and when I click on the particular col nothing happens (I am testing this on 2016 version of ssrs)
When I deployed the same report on 2008 version of ssrs I was able to read/open the file from the network location
Any help on this is highly appreciated
Thanks in advance
make sure the service account that is used to run the SSRS 2016 version has access to read from the location you are referencing

Why would an SSRS report produce different data when run from SQL Server Reporting Services than when run using the Preview tab?

I've got a report running the data I want - from the Preview tab, that is, or when run using F5 in VS 2010. But when I upload the report (.rdl file) to SQL Server Reporting Services, and run the updated report from there, it still shows the old bunch of (restricted) data.
Am I missing a step - does something need to be done other than uploading the .rdl file from the project? It did tell me the DataSource was wrong, but once I specified the right one, it ran without a hitch (except for the missing data).
I made sure that the updated report was truly being used by SQL Server Reporting Services by adding a bogus addition to a label, and sure enough, I do see that when I run the report, so the updated report is getting there.
I also verified that both the design time and runtime reports (same file, but copied to a different location) use the same data source: the SharedDataSource reference in the project, which I see when I select View > Report Data > Data Sources is the same being used In SQL Server Reporting Services, where I set the data source by selecting the yellow right down-arrow on the report name, then "Manage" > "Data Sources" > "A shared data source" > Browse > Home > Data Sources > and selected the shared data source with the same name as the one seen in the project. Finally, I selected OK > Apply in SQL Server Reporting Services, but only a subset of the data is generated.
Why would that be? What can I do to retrieve all the data?
UPDATE
To clarify what happens, in answer to yelxe's comment:
When I delete the previous version of the report in SSRS and upload a "new" one (.rdl file - the new version of the report just deleted), and then click the report link to try to run it, I get, "The report server cannot process the report or shared dataset. The shared data source 'CPSData' for the report server or SharePoint site is not valid. Browse to the server or site and select a shared data source. (rsInvalidDataSourceReference)"
So I click the yellow down-arrow to the right of the report and select Manage.
From there, I select Data Sources > A shared data source > Browse > Home/Data Sources/CPSData ("CPSData" is the same Shared datasource selected in the project) > OK > Apply, and then run the report.
This is where I do that:
It runs, but the data returned to the report is a subset of what I get when I run it from the IDE (VS 2010).
UPDATE 2
As for the data that is there when the report is run from SSRS, it is identical - IOW, the rows that are common to both the superset and the subset of data are identical; it's just that many rows are missing from the subset. And there doesn't appear to be anything "odd" about the data that exists in the superset - it's not 0 or negative or anything special or striking.
UPDATE 3
To reply to Eric's comment in more detail, the report's "Subscriptions", "Cache Refresh Options" and "Report History" pages shows "There are no items to show in this view. Click Help for more information about this page."
The report's Processing Options page shows
...and the report's "Snapshot Options" page shows
UPDATE 4
I noticed that the name of my Data Source was the same name as the name of my primary Dataset (they were both "CPSData"). The dataset name is just a label (it could be named "duckbilledplatypus" or whatever) but still I wondered if this confusing/misleading name for the dataset might have been problematic. So, I changed the name of the dataset to something more reasonable (I renamed it "VPM_V_RockBottom" as the Stored Procedure is named "sp_ViewPriceMatrix_Variance_RockBottom").
This made no difference, though. I replaced the new version of the report (.rdl file) in SSRS, re-ran the report, and still (don't) see the missing data.
Using the same parameters (date range and Unit name), this is what I see when run from my project's Preview tab:
...and here it is when run in SSRS:
So the "Hass"* Avocados show 18 members when run from VS 2010 (as it should be), and only 3 when run from SSRS. In both cases/places, "Asparagus Standard 11/1#" show 18 members, as they should.
Why would there be a difference, and how can I rectify this anomaly?
(sic - should be "Haas", not "Hass" (the German word for "hate"))
I have tried to remove the Dataset in SSRS and again create a new one same as the previous one.
It worked for me.

SSRS Report Manager not showing up properly

I'm new to Reporting Services and have started creating Reports recently. I am creating reports in BIDS that comes with MS SQL Server, for my purpose, R2, and have configured the Reporting Server also. Everything is fine. I am able to preview the reports, debug, deploy and all, using the BIDS.
But, the problem is, when I click the Report Manager URL in the Reporting Service Configuration Manager and expect to see the Report Manager as a Web application, I instead, end up with a non-graphical web page, displaying the text based links to directories like this:
and Ultimately, I get no options like:(as shown in MSDN)
Click Site Settings at the top of the page
Click the Security tab at the side of the page etc.
Yes, of course, I did try to run the Browser as Administrator and then enter the Report Manager URL in it, yet again, I get the same screen
Any suggestions ? Would be greatly appreciated Thanks.
The screen shot you posted is valid, its called the "Report Server" this is essential to call the report server when passing parameters for instance. What you want to view is the report manager, generally that can be found at http://reportservername/reports
Just to clarify what JonH has posted: In Reporting Services Configuration Manager - click the Report Manager URL link in the left column. In the box next to "Virtual Directory:" Type the name you want...My company reports. Click Apply, once the manager has completed you should be able to click the new URL and see the Report Manager.
Thanks... I was facing same issue.
I installed SQL server Express 2012 version. BY Default the 'Reporting Services Configuration Manager' points to "ReportServer_SQLEXPRESS" as the Virtual Directory in "Web Service URL" & "Report Manager URL" by Default. So by Default it becomes like;
Report Server: _http://zed:80/ReportServer_SQLEXPRESS
Report Manager: _http://zed:80/ReportServer_SQLEXPRESS
So the Reports Home page is not displayed.
I changed as Below, "Report" as the Virtual Directory in "Web Service URL" & "Reports" as the Virtual Directory in "Report Manager URL". So it becomes like below.
Report Server: _http://zed/report
Report Manager: _http://zed/Reports/Pages/Folder.aspx

Resources