cancel
Showing results for 
Search instead for 
Did you mean: 

Query to Fetch Process Name from Object Name

Neel1
MVP
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

PvD_SE
Level 12
Hi N,

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!)

Neel1
MVP
Hello Paul - i m looking all Processes referencing to that object by SQL Query method

ewilson
Staff
Staff
Hi @Neeraj Kumar,

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

Neel1
MVP
Thanks @ewilson - it worked fine.​