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.

Open formatted source/search result

Parameters

NameTypeOutput
@AutoFillbitno

Referenced objects

SchemaObjectColumn/minorClass
BaseTreeAssignOBJECT_OR_COLUMN
OrgRootOBJECT_OR_COLUMN
OrgRootAssignOBJECT_OR_COLUMN
QBM_PSessionErrorAddOBJECT_OR_COLUMN
dboQBM_FCVElementToObjectKey2OBJECT_OR_COLUMN
dboQBM_FGISessionErrorRethrowOBJECT_OR_COLUMN

Source excerpt

First extracted SQL definition lines from the exported source. Use the full source page for complete context.

Open full formatted source

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

ParameterTypeDirection
@AutoFillbitinput

DML targets

INSERT OrgRootAssign DELETE OrgRootAssign

Called routines

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 objectRelationEvidence
dbo.QER_TDOrgRootSQL expression dependencyOBJECT_OR_COLUMN
dbo.QER_TIBaseTreeAssignSQL expression dependencyOBJECT_OR_COLUMN
dbo.QER_TIOrgRootSQL expression dependencyOBJECT_OR_COLUMN
dbo.QER_TDOrgRootsource text referencehas TRY/CATCH error handling
dbo.QER_TIBaseTreeAssignsource text referencehas TRY/CATCH error handling
dbo.QER_TIOrgRootsource text referencehas TRY/CATCH error handling