Announcement

Migration of this forum

Dear users of this forum,

we are pleased to inform you that we will be updating the software behind this forum in the near future.

Existing posts, users and categories will remain untouched.

Important:

  • Each user will need to reset their password.
  • Please select "I forgot my password".
  • Enter the email address you used to register in this forum.
  • You will receive an email with a link to set a new password.
  • Please choose a new (secure) password and confirm the process.

We will keep you informed in the pinned thread.

Kind regards,
Your ReportServer Team


Migration des Forums

Liebe Nutzer dieses Forums,

wir freuen uns, euch mitteilen zu können, dass wir in naher Zukunft die Software hinter diesem Forum aktualisieren werden.

Existierende Beiträge, Nutzer und Kategorien bleiben weiterhin bestehen!

Wichtig:

  • Jeder Nutzer muss sein Passwort neu vergeben.
  • Wählt dazu einfach "Ich habe mein Passwort vergessen".
  • Gebt die E-Mail-Adresse ein, mit der ihr registriert seid.
  • Ihr erhaltet eine E-Mail mit einem Link zur Passwortvergabe.
  • Bitte wählt ein neues (sicheres) Passwort und bestätigt den Vorgang.

Wir halten euch im angepinnten Beitrag auf dem Laufenden!

Mit vielen Grüßen
Euer ReportServer Team

#1 2024-12-12 23:21:45

rajatkhedekar87
Member
Registered: 2024-11-05

Need to know reports which are not connecting to any data sources

HI Team,

I am using report server 4.7.1 and want to figure out number of reports which are not connected to any datasources  , i tried to connect to report server datasource and tried tables like rs_report , rs_database_datasource but i am missing their joining condition .

I am trying to find out example 'abc' report connects to 'xyz' datasource and 'lmn' report is not connecting to any datasource (its blank) no connection .

So i want to figure out how many reports in my server are without connecting datasource. Please help with the query from which i can create a dynamic list.

I tried using schema  : bitnami_reportserver and rs_report gives me the name , but i need the data source name as well to which it connects so if its blank that will be in the report which dont have the datatsource.


tried the below sql


// sql

select a.username , a.id, b.name_field

from rs_database_datasource as a
join
rs_report as b
on
a.id=b.id

Offline

#2 2024-12-13 11:16:38

eugenev
Member
Registered: 2024-10-16

Re: Need to know reports which are not connecting to any data sources

Hi,

Try something like this:
select rs_report.* from rs_report
left join rs_datasource_container ON rs_report.datasource_container_id = rs_datasource_container.entity_id
where rs_datasource_container.datasource_id is null

Last edited by eugenev (2024-12-13 11:18:24)

Offline

#3 2024-12-13 19:17:32

rajatkhedekar87
Member
Registered: 2024-11-05

Re: Need to know reports which are not connecting to any data sources

thanks Eugenev ,

Please can you guide me with the table relation ships or any documentation is available to understand which table does what ?

Offline

#4 2024-12-16 08:32:13

IF_Eduardo
Administrator
Registered: 2016-11-01
Website

Re: Need to know reports which are not connecting to any data sources

Hi rajatkhedekar87,

To understand the relationships between tables in your RS database and visualize them as a graph, you can use DBeaver, a popular database management tool: https://dbeaver.io/.

Step 1: Open Your RS Database in DBeaver
Connect to the RS Database:
Launch DBeaver and connect to your database by selecting New Database Connection and providing the necessary credentials.
Navigate to your connected database from the Database Navigator panel on the left-hand side.

Step 2: Generate a Table Relationship Graph
Find Your Tables:

Expand the database schema in the Database Navigator to see the list of tables.
Select the specific tables you'd like to include in the graph (or you can select the entire schema).
Right-Click on the Tables or Schema:

Right-click on the schema or selected tables and choose ER Diagram (Entity-Relationship Diagram) from the context menu.
View the Diagram:

A new tab will open in DBeaver, showing the selected tables as nodes and the relationships (foreign keys) between them as lines.

To further explore relationships, you can run SQL queries to examine the metadata tables (like INFORMATION_SCHEMA or pg_catalog for PostgreSQL).

Regards,
Eduardo

Offline

Board footer

Powered by FluxBB