简体   繁体   English

重新上传报告时,SSRS数据源不会更改

[英]SSRS-Datasource won't change when reupload report

I got a report with 2 data sources and both are Shared Data source. 我得到了一个包含2个数据源的报告,它们都是共享数据源。 I am trying to change both of them to Custom Data Source but when I re-upload the report in my Report Manager, it won't work. 我试图将它们都更改为“自定义数据源”,但是当我在报表管理器中重新上传报表时,它将无法正常工作。

Edit: I don't have an error because the report successfully uploads, but the data source doesn't change. 编辑:我没有错误,因为报告已成功上传,但数据源未更改。 If I have a field in the report, the report shows the new field, but the data source stays the same. 如果我在报表中有一个字段,报表将显示新字段,但数据源保持不变。

Is there an error message? 是否有错误消息? It won't work could be a bunch of things. 一堆东​​西可能行不通。 I'd upload a picture of the error or whatever screen you can't get past. 我将上传错误图片或您无法逾越的任何屏幕。 Let me know when you can do that, then it will be easier to troubleshoot. 让我知道您何时可以执行此操作,这将使故障排除更加容易。 If you can't upload an image than I would: 如果您无法上传图片,我将:

  1. Check your datasource connections are correct. 检查您的数据源连接是否正确。
  2. Check your datasets are using the correct connection. 检查您的数据集是否使用正确的连接。

This might be because of caching that SSRS does with the datasource for the report on the server. 这可能是因为SSRS在服务器上对报表的数据源进行了缓存。 Do the new datasources have the same name as the old ones? 新数据源与旧数据源名称相同吗?

You could create the custom datasources in the DataSources tab in the Manage menu for the report in the report manager. 您可以在报表管理器中的报表的“管理”菜单的“数据源”选项卡中创建自定义数据源。

To do this open up the Report Menu by click on the "..." then selecting Manage 为此,通过单击“ ...”打开“报告菜单”,然后选择“管理”

管理

Then click on the Data Sources Tab, then change the data source to Custom Datasource. 然后单击“数据源”选项卡,然后将数据源更改为“自定义数据源”。

数据源标签

Then set up the datasource like you did in the report, you will need to select SQL Server for the Connection, add the connection string and choose the authentication type which in the image below is windows authentication but I am not sure how it is set up on your server. 然后像在报告中一样设置数据源,您需要为连接选择SQL Server,添加连接字符串并选择身份验证类型,在下图中是Windows身份验证,但是我不确定如何设置在您的服务器上。 Then click Test Connection. 然后单击测试连接。 Then Click Save (make sure you click Save before navigating away). 然后单击“保存”(确保在导航之前单击“保存”)。

自定义数据源

Or you could delete the old report in the report manager and then upload it again. 或者,您可以在报表管理器中删除旧报表,然后再次上传。 Note that deleting the report will delete any schedules and other customization you have done ie. 请注意,删除报告将删除您已完成的所有时间表和其他自定义功能。 Name and Description. 名称和说明。

This is a setting thats controlled from the deployment properties of the visual studio SSRS project. 这是从Visual Studio SSRS项目的部署属性控制的设置。 Right click the project name and select Properties. 右键单击项目名称,然后选择属性。 Then from the Property section of the general page notice "Overwrite Datasets" & "Overwrite Datasources". 然后在常规页面的“属性”部分中,注意“覆盖数据集”和“覆盖数据源”。 Change the one that's necessary and re-deploy to see it updated in the report portal. 更改必要的选项,然后重新部署以在报告门户中对其进行更新。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM