Guest User

Untitled

a guest
Oct 23rd, 2018
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. -- Get Process Name by Process Instance ID
  2. USE K2 -- Adjust your K2 DB name if necessarry
  3. DECLARE @PInstID INT
  4. DECLARE @ProcID INT
  5. SET @PInstID=1 -- Specify your Process Instance ID Here
  6. SET @ProcID = (SELECT ProcID FROM Server.ProcInst WHERE ID=@PInstID)
  7. SELECT [Name] FROM Server.[ProcSet] WHERE ID = (SELECT ProcSetID FROM Server.[Proc] WHERE ID=@ProcID)
Add Comment
Please, Sign In to add comment