Associate rdls with a new data source - sql

I have about 300 some reports, and the data source has been deleted during migration, so the dependency of the reports from the data source has been lost.
how can I re-associate the new data source I created to all the reports without manually going to each report and setting the data source in it.

There is one way to solve this issue,
Before that you wants to rember that you know the Datasource name you given to the rdl files,
You wants to create new datasource in your RDL,
And then you can deploy your datasource in your Reportserver.
Thats it.

Related

Problem updating database source on visual studio

I created a database on access and added the data source to my visual studio vb project. However, I have recently added some new fields and tables on my database, how do I update it on my visual basic project without having to delete it and add it as a new data source which caused problems to my programs integrity ?
You can re-run the wizard and update the DataSet schema from the Data Sources window. I'm not in a position to test right now but, if memory serves, you can right-click the specific Data Source and select the appropriate item from the menu. If not, it would be a button on the toolbar in that window.
I don't think you need to change the data source, as the data source just refers to the database which has not changed. Ideally, the changes within the database should have reflected in the appropriate DataSet or DataCoulmn in your code. Can you post the code here, so that we can understand exactly what is going wrong?

Not able to preview RDLC report in VS2013 because of blank data source instance

I have been struggling with this issue for two years now. My problems are happening in Visual Studio 2013 (not a web server).
Occasionally, I have to take an RDLC file that was created by someone else and make changes to it. Using VS, I create an XSD file for the dataset, then replace the DataSource and DataSet in the RDLC so that the report now points to the tableadapter(s) in the XSD.
Often when I try to view the report in the ReportViewer form, the Report Data Source and Data Source Instance are blank. I've tried Rebind Data Sources, and I've cleaned and rebuilt the project, but I can't get the data source to show up. Sometimes the report will have a subreport, and that data source will be available if I choose that RDLC.
I'm a third party developer -- I'm not editing (and cannot edit) aspx files; just the reports. I've tried editing the code in Form.vb manually to insert the TableAdapter, but it hasn't worked, and I don't really know what I'm doing there -- I have some object-oriented programming experience, but not much.
What can I do to make the data source available to the report viewer and/or bind it to the RDLC? Any suggestions are appreciated. Please let me know if there's any particular code it would be useful to share.
Thank you.
I ended up doing the following, which solved the problem in this case. Not sure it's a solution that will work in all situations like this.
I replaced the opening Report tag in the XML of the RDLC with this:
<Report xmlns="http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition" xmlns:rd="http://schemas.microsoft.com/SQLServer/reporting/reportdesigner">
I removed the <ReportSections> and <ReportSection> tags, as they are not supported by the 2008 schema. I didn't remove anything that was between the tags.
After making these changes, the data source became available to the form, and I was able to preview the report.

Auto update reports generated in report studio, when new rows are added in database

I am using Cognos 10. I have created a model in FM using some tables in DB2. Then I have created a package and published it. I have also generated reports on this in report studio. Everything went well and the report looks fine.
Now the actual problem is, I added some rows to the tables which I used for this project and the previous report is not updating. I tried refreshing data source in FM but it didn't update. So I had to create a new model and publish a package and generate a new report each time I add data to my DB2 tables.
I have seen Tableau reports being auto-update when database changes occurs. Is this possible with Cognos?
Is there any other way in which I can just do something in report studio and the report automatically updates to the new data present in DB2 tables?? So that I don't have to create a new model,package and report for each DB2 insert??
I met the same issue here if I use a Framework Manager model. The only solution that I found right now is to write SQL directly in Report Studio.
It can be problem with local cache. I had this issue before. The new data row was not shown in Report after insert. I needed to disable local cache in the Framework to make it work.

EclipseLink and JPA columns of table not showing up

In Eclipse, I try to create entity classes based on an existing database schema.
The wizard works until the end and creates the appropriate classes.
Except for one thing. Some classes are not being found by code as they're not generated.
In the "Customize individual entities" dialog, all the tables show up. Some of them don't have any columns being displayed in this dialog.
What works:
I can create relationships, even to these "missing" columns
I see these tables in Eclipses "Data Source Explorer"
The exact same columns don't appear in the JPA conversion dialog. The table has no arrow to further expand the item in the GUI.
I've already created a new workspace - without the success I'm looking for.
Why?
I'm using Microsoft SQL Server with the original sqljdbc4.jar
Although I have no idea why it happens, I finally know how to fix it:
In the Data Source Explorer, just expand the nodes in the tree until you see all the tables and their respective columns.
Somehow, they don't get loaded in the wizard. But they seem to do when opened in the data source explorer.
Afterwards, they also show up in the wizard.
Disconnecting and reconnecting using the Data Source Explorer fixed it for us.

how to write properties file for birt reports?

I have multiple BIRT reports that obtains the data from the same jdbc data source.
Is it possible to obtain the conection parameters (Driver URL, User Name, and Password) from an external property file or similar?
Please give one example for it?
It is possible to create common connection in the library and use it in reports.
Step by step:
Create library: File -> New -> Library
In the Outline view create new Data Source the same way as you create report data source
For all reports:
Open report
In the Resources view find your newly created Data Source
Right-click Data Source and choose add to report
Switch Data Sets to Data Source from library
Due to #343527 you have to be carefull when editing reports referencing library conections. Correctly referenced connection (Data Source) has mini-icon that looks like a small blue chain. If connection data is altered locally, it has also yellow mini-icon looking like (hmm..) a small pencil. When you see it, open report XML Source, find <oda-data-source> tag and delete all its children.