dbo.QER_PITShopBoardPrepareDelete

SQL_STORED_PROCEDURE

Created 2025-06-27T18:01:05.777 · modified 2026-04-14T23:20:37.827 · source: live DB sys.objects/sys.sql_expression_dependencies.

Open formatted source/search result

Parameters

NameTypeOutput
@uid_orgvarcharno

Referenced objects

SchemaObjectColumn/minorClass
BaseTreeOBJECT_OR_COLUMN
BaseTreeAssignOBJECT_OR_COLUMN
DialogTableOBJECT_OR_COLUMN
PersonInBaseTreeOBJECT_OR_COLUMN
QBM_PExecuteSQLMultiOBJECT_OR_COLUMN
QBM_PSessionErrorAddOBJECT_OR_COLUMN
QBM_YCursorBufferTYPE
QER_ZITShopProductNodeCheckOBJECT_OR_COLUMN
dboQBM_FGISessionContextOBJECT_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_PITShopBoardPrepareDelete (@uid_org varchar(38) ) as begin declare @GenProcID varchar(38) = dbo.QBM_FGISessionContext
2('') declare @ElementBuffer QBM_YCursorBuffer declare @XUser nvarchar(64) = object_name(@@procid) declare @Xdate datetime = getutcdate() SET XACT_ABORT
3 OFF BEGIN TRY   update PersonInBaseTree set XOrigin = 0  , XDateUpdated = @Xdate , XUserUpdated = @XUser where UID_Org = @uid_org delete PersonInBaseTree
4 where uid_org = @uid_org update PersonInBaseTree set XOrigin = 0 where UID_Org in (select uid_org from BaseTree where uid_parentorg = @uid_org) delete
5 PersonInBaseTree where uid_org in (select uid_org from BaseTree where uid_parentorg = @uid_org)  insert into @ElementBuffer (ContentFull) select concat
6('
7		delete ' , t.TableName , ' where uid_org = ''' , @uid_org , '''' ) from BaseTreeAssign a join DialogTable t with (readpast) on a.UID_DialogTableMN
8 = t.UID_DialogTable join DialogTable prod with (readpast) on a.UID_DialogTableElement = prod.UID_DialogTable    where a.IsITShopEnabled = 1 exec QBM_PExecuteSQLMulti
9 @ElementBuffer, 0, @@PROCID  exec QER_ZITShopProductNodeCheck 0, @uid_org, null, @genprocID END TRY BEGIN CATCH exec QBM_PSessionErrorAdd default declare
10 @Rethrow varchar(1000) = dbo.QBM_FGISessionErrorRethrow() RAISERROR (@Rethrow, 18, 1) WITH NOWAIT END CATCH end 
11

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:37.827

uses session context values has TRY/CATCH error handling

Summary: calls QBM_PExecuteSQLMulti, QER_ZITShopProductNodeCheck, QBM_PSessionErrorAdd; writes INSERT into, UPDATE PersonInBaseTree, DELETE PersonInBaseTree; reads/joins BaseTree, BaseTreeAssign, DialogTable

Declared parameters

ParameterTypeDirection
@uid_orgvarchar(38)input

DML targets

INSERT into UPDATE PersonInBaseTree DELETE PersonInBaseTree

Config/session

Config: None extracted.

Session: None extracted.

DBQueue/tasks

None extracted.

Temp tables / referenced variables

Temp: None extracted.

Variables: @uid_org @GenProcID @ElementBuffer @XUser @procid @Xdate @PROCID @genprocID @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.

No reverse dependencies extracted.