dbo.QER_POrgRootAssignFill
SQL_STORED_PROCEDURE
Created 2025-06-27T17:59:27.230 · modified 2026-04-14T23:20:36.193 · source: live DB sys.objects/sys.sql_expression_dependencies.
Parameters
| Name | Type | Output |
|---|---|---|
@AutoFill | bit | no |
Referenced objects
| Schema | Object | Column/minor | Class |
|---|---|---|---|
| BaseTreeAssign | OBJECT_OR_COLUMN | ||
| OrgRoot | OBJECT_OR_COLUMN | ||
| OrgRootAssign | OBJECT_OR_COLUMN | ||
| QBM_PSessionErrorAdd | OBJECT_OR_COLUMN | ||
| dbo | QBM_FCVElementToObjectKey2 | OBJECT_OR_COLUMN | |
| dbo | QBM_FGISessionErrorRethrow | OBJECT_OR_COLUMN |
Source excerpt
First extracted SQL definition lines from the exported source. Use the full source page for complete context.
1 create procedure QER_POrgRootAssignFill (@AutoFill bit = 0 ) as begin declare @XUser nvarchar(64) = object_name(@@procid) declare @XDate datetime 2 = getutcdate() SET XACT_ABORT OFF BEGIN TRY if @AutoFill = 1 begin insert into OrgRootAssign (UID_OrgRoot, UID_BaseTreeAssign, IsAssignmentAllowed, IsDirectAssignmentAllowed 3 , Xdateinserted, XDateupdated, XUserInserted, XUserUpdated , XObjectKey) select r.UID_OrgRoot, ba.UID_BaseTreeAssign, 0, 0 , @XDate, @XDate, @XUser, @XUser 4 , dbo.QBM_FCVElementToObjectKey2('OrgRootAssign', 'UID_OrgRoot', r.UID_OrgRoot, 'UID_BaseTreeAssign', ba.UID_BaseTreeAssign) from OrgRoot r cross join 5 BaseTreeAssign ba where not exists (select top 1 1 from OrgRootAssign a where a.UID_BaseTreeAssign = ba.UID_BaseTreeAssign and a.UID_OrgRoot = r.UID_OrgRoot 6 ) and ba.UID_DialogTableElement > ' ' end delete OrgRootAssign from OrgRootAssign oa join BaseTreeAssign ba on oa.UID_BaseTreeAssign = ba.UID_BaseTreeAssign 7 where ba.UID_DialogTableElement is null END TRY BEGIN CATCH exec QBM_PSessionErrorAdd default declare @Rethrow varchar(1000) = dbo.QBM_FGISessionErrorRethrow 8() RAISERROR (@Rethrow, 18, 1) WITH NOWAIT END CATCH end 9
Module relation graph
Loading module relation graph…
Source-derived context
Generated from exported SQL module definitions plus read-only sandbox sys.objects/sys.parameters/sys.sql_expression_dependencies metadata. This is factual source evidence, not a semantic guess.
provenance: SQL definition export provenance: sandbox DB metadata modified: 2026-04-14T23:20:36.193
has TRY/CATCH error handling
Summary: calls QBM_PSessionErrorAdd; writes INSERT OrgRootAssign, DELETE OrgRootAssign; reads/joins OrgRoot, BaseTreeAssign, OrgRootAssign
Declared parameters
| Parameter | Type | Direction |
|---|---|---|
@AutoFill | bit | input |
DML targets
INSERT OrgRootAssign DELETE OrgRootAssignCalled routines
Read/join references
SQL dependency metadata
Config/session
Config: None extracted.
Session: None extracted.
DBQueue/tasks
None extracted.Temp tables / referenced variables
Temp: None extracted.
Variables: @AutoFill @XUser @procid @XDate @Rethrow
Referenced by / reverse dependencies
Generated from live DB metadata, FK rows, and exported SQL dependency/source extraction. This is factual linkage evidence, not inferred behavior.
| Referencing object | Relation | Evidence |
|---|---|---|
| dbo.QER_TDOrgRoot | SQL expression dependency | OBJECT_OR_COLUMN |
| dbo.QER_TIBaseTreeAssign | SQL expression dependency | OBJECT_OR_COLUMN |
| dbo.QER_TIOrgRoot | SQL expression dependency | OBJECT_OR_COLUMN |
| dbo.QER_TDOrgRoot | source text reference | has TRY/CATCH error handling |
| dbo.QER_TIBaseTreeAssign | source text reference | has TRY/CATCH error handling |
| dbo.QER_TIOrgRoot | source text reference | has TRY/CATCH error handling |