dbo.TSB_PMemberOfSplitToGroups

SQL_STORED_PROCEDURE

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

Open formatted source/search result

Parameters

NameTypeOutput
@UID_UNSAccountBvarcharno

Referenced objects

SchemaObjectColumn/minorClass
QBM_PSessionErrorAddOBJECT_OR_COLUMN
QBM_YParameterListTYPE
UNSAccountBOBJECT_OR_COLUMN
UNSAccountBInUNSGroupBOBJECT_OR_COLUMN
UNSGroupBOBJECT_OR_COLUMN
dboQBM_FCVElementToObjectKey2OBJECT_OR_COLUMN
dboQBM_FCVStringToListOBJECT_OR_COLUMN
dboQBM_FGIBitPatternXOriginOBJECT_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 TSB_PMemberOfSplitToGroups (@UID_UNSAccountB varchar(38) )as begin declare @Memberlist nvarchar(max) declare @UID_UNSRootB 
2as varchar(38) declare @XUser nvarchar(64) declare @Xdate Datetime declare @Sollzustand QBM_YParameterList    declare @QBM_BitPatternXOrigin_Direct int
3 = dbo.QBM_FGIBitPatternXOrigin('|Direct|', 0) declare @QBM_BitPatternXOrigin_Direct_inv int = dbo.QBM_FGIBitPatternXOrigin('|Direct|', 1) declare @QBM_BitPatternXOrigin_Inherit_inv
4 int = dbo.QBM_FGIBitPatternXOrigin('|Inherit|', 1)  SET XACT_ABORT OFF BEGIN TRY select @Xdate = getUTCDate() select @XUser = 'sa' select @Memberlist 
5= isnull(MemberOf,'') , @UID_UNSRootB = UID_UNSRootB from UNSAccountB where UID_UNSAccountB = @UID_UNSAccountB insert into @Sollzustand(ContentShort  )
6 select distinct ParameterValue from dbo.QBM_FCVStringToList(@Memberlist, nchar(7), 0, 0 )  update @Sollzustand set Parameter1  = g.UID_UNSGroupB , Parameter2
7  = dbo.QBM_FCVElementToObjectKey2 ('UNSAccountBInUNSGroupB', 'UID_UNSAccountB', @UID_UNSAccountB , 'UID_UNSGroupB', g.UID_UNSGroupB) from @Sollzustand
8 s , UNSGroupB g where s.ContentShort  = g.cn and g.UID_UNSRootB = @UID_UNSRootB  delete  @Sollzustand where Parameter1  is null   insert into UNSAccountBInUNSGroupB
9 (UID_UNSAccountB , UID_UNSGroupB , XObjectKey, XDateInserted, XDateUpdated, XUserInserted, XUserUpdated, XOrigin) select @UID_UNSAccountB, s.Parameter1
10 , s.Parameter2 , @Xdate, @Xdate, @XUser, @XUser, @QBM_BitPatternXOrigin_Direct from @Sollzustand s where Not exists (select top 1 1 from UNSAccountBInUNSGroupB
11 uig where uig.XObjectKey = s.Parameter2  )    update UNSAccountBInUNSGroupB set XOrigin = XOrigin & @QBM_BitPatternXOrigin_Direct_inv  , XDateUpdated 
12= @Xdate , XUserUpdated = @XUser where UID_UNSAccountB = @UID_UNSAccountB  and XOrigin & @QBM_BitPatternXOrigin_Direct > 0  END TRY BEGIN CATCH exec QBM_PSessionErrorAdd
13 default RAISERROR ('', 18, 1) WITH NOWAIT END CATCH ende: end 
14

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

has TRY/CATCH error handling

Summary: calls QBM_PSessionErrorAdd; writes INSERT into, INSERT UNSAccountBInUNSGroupB, UPDATE UNSAccountBInUNSGroupB; reads/joins UNSAccountB, QBM_FCVStringToList, UNSAccountBInUNSGroupB

Declared parameters

ParameterTypeDirection
@UID_UNSAccountBvarchar(38)input

DML targets

INSERT into INSERT UNSAccountBInUNSGroupB UPDATE UNSAccountBInUNSGroupB

Called routines

Config/session

Config: None extracted.

Session: None extracted.

DBQueue/tasks

None extracted.

Temp tables / referenced variables

Temp: None extracted.

Variables: @UID_UNSAccountB @Memberlist @UID_UNSRootB @XUser @Xdate @Sollzustand @QBM_BitPatternXOrigin_Direct @QBM_BitPatternXOrigin_Direct_inv @QBM_BitPatternXOrigin_Inherit_inv

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.