Database View with Script Includes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2021 08:36 AM
Hi All,
Is it possible to call a script includes like report below in a database view? I have a complex script include that returns the sys ids of servers. Would like to create a database view and then create different reports to run against that view.
Here's the database view. How would I code the where clause like above in report?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2021 09:06 AM
You can't call script include from where clause since where clause supports only below characters in database view
=, !=, <, <=, >, >=, &&, ||
In your case, you will need to use performance analytics to filter out data using breakdowns.
If you don't have PA, then UI page will work for you to pull data from different tables.
Regards,
Sachin