Created
October 23, 2018 07:10
-
-
Save mikerodionov/6e0920781025cceaba4c3c6a01b1ae18 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Get Process Name by Process Instance ID | |
USE K2 -- Adjust your K2 DB name if necessarry | |
DECLARE @PInstID INT | |
DECLARE @ProcID INT | |
SET @PInstID=1 -- Specify your Process Instance ID Here | |
SET @ProcID = (SELECT ProcID FROM Server.ProcInst WHERE ID=@PInstID) | |
SELECT [Name] FROM Server.[ProcSet] WHERE ID = (SELECT ProcSetID FROM Server.[Proc] WHERE ID=@ProcID) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment