dbo.QBM_PBufferT_ProcessUpdate

SQL_STORED_PROCEDURE

Created 2026-04-14T23:14:36.517 · modified 2026-04-14T23:14:36.517 · source: live DB sys.objects/sys.sql_expression_dependencies.

Open formatted source/search result

Parameters

NameTypeOutput
@ModuleNamevarcharno
@TableNamevarcharno
@columnnamevarcharno

Referenced objects

SchemaObjectColumn/minorClass
DialogColumnOBJECT_OR_COLUMN
DialogTableOBJECT_OR_COLUMN
QBM_PJournalOBJECT_OR_COLUMN
QBM_PSessionErrorAddOBJECT_OR_COLUMN
QBM_PTriggersInactiveForTableOBJECT_OR_COLUMN
dboQBM_FCVStringToIndentOBJECT_OR_COLUMN
dboQBM_FGIColumnExistsInSchemaOBJECT_OR_COLUMN
dboQBM_FGIColumnFitsContentShortOBJECT_OR_COLUMN
dboQBM_FGIDBOwnerOBJECT_OR_COLUMN
dboQBM_FGISessionErrorRethrowOBJECT_OR_COLUMN
dboQBM_FSQColumnCollationClauseOBJECT_OR_COLUMN
dboQBM_FSQCVBufferToColumnOBJECT_OR_COLUMN
dboQBM_FSQCVColumnToBufferOBJECT_OR_COLUMN
dboQBM_FSQIsNullClauseCmpOBJECT_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 QBM_PBufferT_ProcessUpdate ( @ModuleName varchar(3) , @TableName varchar(30) , @columnname varchar(30) ) as begin declare 
2@DebugLevel char(1) = 'W' declare @DebugSwitch int = 0 declare @ColumnFitsToShort bit declare @IsCustomConfigurable bit declare @IsPKMember bit declare
3 @DatabaseOwner varchar(3) declare @xclause nvarchar(1000) declare @SQLCmd nvarchar(max) = '' declare @ErrorMessage nvarchar(4000) declare @ErrorSeverity
4 int declare @ErrorState int declare @CountRowsAffected int = 0 declare @XUser nvarchar(64) = object_name(@@procid)  declare @UPD_BC_SHORT nvarchar(max
5) = concat('
6	-- code from @UPD_BC_SHORT
7		update QBMBufferConfig 
8			set ContentShort = du.ContentShort
9			, HasContentFull = 0 ' , concat('' , '	--34101
10				, XDateUpdated = getutcdate()
11				, XUserUpdated = '''
12, object_name(@@procid) , '''
13				') ,' from QBMBufferConfig bc join #QBMBufferTransferOneTable du on bc.TableName = ''@TableName@'' 
14														and bc.Columnname = ''@columnname@''
15														and du.ColumnName = ''@columnname@''
16														and bc.ObjectKeyOfRow = du.ObjectKeyOfRow collate Database_default
17			where (isnull(bc.ContentShort, N'''') <> isnull(du.ContentShort, N'''')  @Collation@
18					)
19
20'
21 ) declare @UPD_BC_LONG nvarchar(max) = concat('
22	-- code from @UPD_BC_LONG
23		update QBMBufferConfig 
24			set ContentShort = du.ContentShort
25			, HasContentFull = du.HasContentFull
26			, ContentFull = du.ContentFull '
27 , concat('' , '	--34101
28				, XDateUpdated = getutcdate()
29				, XUserUpdated = ''', object_name(@@procid) , '''
30				') ,'
31			from QBMBufferConfig bc join #QBMBufferTransferOneTable du on bc.TableName = ''@TableName@'' 
32														and bc.Columnname = ''@columnname@''
33														and du.ColumnName = ''@columnname@''
34														and bc.ObjectKeyOfRow = du.ObjectKeyOfRow collate Database_default
35			where (isnull(bc.ContentShort, N'''') <> isnull(du.ContentShort, N'''') @Collation@
36					or bc.HasContentFull <> du.HasContentFull
37					or isnull(bc.ContentFull, N'''') <> isnull(du.ContentFull, N'''') @Collation@
38					)
39
40'
41 )  declare @UPD_ZE nvarchar(max) = concat('
42	-- code from @UPD_ZE
43/*
44		if exists (
45					select top 1 1
46					from @TableName@ zt with (readpast) join #QBMBufferTransferOneTable bu on zt.XObjectKey = bu.ObjectkeyOfRow collate Database_default
47														and bu.columnname = ''@columnname@''
48					where 
49						@IsnullClauseForTable_zt@ <> @ContentBufferCompare_bu@ @Collation@
50				  )
51		 begin
52*/		 
53			updat'
54,'e @TableName@
55				set @columnname@ = @ContentFromBuffer_bu@
56				@Xclause@
57			from @TableName@ zt with (readpast) join #QBMBufferTransferOneTable bu on zt.XObjectKey = bu.ObjectkeyOfRow collate Database_default
58												and bu.columnname = ''@columnname@''
59			where 
60				@IsnullClauseForTable_zt@ <> @ContentBufferCompare_bu@ @Collation@
61			@RowOwnerClause_bu@
62
63'
64 ) declare @UPD_ZE_COND_BC nvarchar(max) = @UPD_ZE + '
65	-- code from @UPD_ZE_COND_BC
66			and not exists (
67							select top 1 1
68							 from QBMBufferConfig cf with (readpast)
69							where cf.TableName = ''@TableName@''
70								and cf.ColumnName = ''@columnname@''
71								and cf.ObjectKeyOfRow = bu.ObjectKeyOfRow collate Database_default
72							)
73'
74 select @UPD_ZE = @UPD_ZE + '
75/*
76		 end		 
77*/		 
78' select @UPD_ZE_COND_BC = @UPD_ZE_COND_BC + '
79/*
80		 end		 

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:14:36.517

has TRY/CATCH error handling

Summary: calls QBM_PJournal, QBM_PSessionErrorAdd, QBM_PTriggersInactiveForTable; writes UPDATE QBMBufferConfig, DELETE QBMBufferConfig; reads/joins QBMBufferConfig, DialogColumn, DialogTable

Declared parameters

ParameterTypeDirection
@ModuleNamevarchar(3)input
@TableNamevarchar(30)input
@columnnamevarchar(30)input

DML targets

UPDATE QBMBufferConfig DELETE QBMBufferConfig

Config/session

Config: None extracted.

Session: None extracted.

DBQueue/tasks

None extracted.

Temp tables / referenced variables

Temp: #QBMBufferTransferOneTable

Variables: @ModuleName @TableName @columnname @DebugLevel @DebugSwitch @ColumnFitsToShort @IsCustomConfigurable @IsPKMember @DatabaseOwner @xclause @SQLCmd @ErrorMessage @ErrorSeverity @ErrorState @CountRowsAffected @XUser @procid @UPD_BC_SHORT @Collation @UPD_BC_LONG @UPD_ZE @ContentFromBuffer_bu @Xclause @IsnullClauseForTable_zt @ContentBufferCompare_bu @RowOwnerClause_bu @UPD_ZE_COND_BC @DEL_BC_EQ @DEL_BC @COPY_BC @ZelleZuPuffer @RESTORE_BC @xuser @sqlcmd @ColumnName @ROWCOUNT @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.QBM_PBufferT_ProcAll_Delta_iSQL expression dependencyOBJECT_OR_COLUMN
dbo.QBM_PBufferT_ProcessTableSQL expression dependencyOBJECT_OR_COLUMN
dbo.QBM_PBufferT_ProcAll_Delta_isource text referencehas TRY/CATCH error handling
dbo.QBM_PBufferT_ProcessTablesource text referencehas TRY/CATCH error handling