Query to Fetch Process Name from Object Name
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
24-08-22 10:27 AM
Hello Guys- i am looking for a SQL query to be run in DB to get Process Name on specifying the object name.
4 REPLIES 4
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
24-08-22 11:01 AM
Hi N,
Would that be:
All Processes that reference to the Object
or
The currently running Process that called the Object?
Would that be:
All Processes that reference to the Object
or
The currently running Process that called the Object?
Happy coding!
Paul, Sweden
(By all means, do not mark this as the best answer!)
Paul, Sweden
(By all means, do not mark this as the best answer!)
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
24-08-22 05:13 PM
Hello Paul - i m looking all Processes referencing to that object by SQL Query method
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
24-08-22 10:30 PM
Hi @Neeraj Kumar,
Here's a kickstart for you:
I used the Utility - HTTP VBO as a test. Seems to work. You'll want to make the VBO name configurable as well as the database name (BPTest in my case) and possibly the DB schema depending on your environment.
NOTE: This will only return the processes that use the target VBO at the top level. In other words, if those processes use a VBO that uses the target VBO as a child, those won't be returned. Hopefully that makes sense.
Cheers,
Eric
Here's a kickstart for you:
SELECT [name] FROM [BPTest].[dbo].[BPAProcess] WHERE ([ProcessType] = 'P' AND [processxml] LIKE '%<resource object="Utility - HTTP"%');
I used the Utility - HTTP VBO as a test. Seems to work. You'll want to make the VBO name configurable as well as the database name (BPTest in my case) and possibly the DB schema depending on your environment.
NOTE: This will only return the processes that use the target VBO at the top level. In other words, if those processes use a VBO that uses the target VBO as a child, those won't be returned. Hopefully that makes sense.
Cheers,
Eric
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
03-10-22 10:04 AM
Thanks @ewilson - it worked fine.
