dbo.QBM_PBufferC_ProcessOneColumn

SQL_STORED_PROCEDURE

Created 2025-06-27T17:57:30.310 · modified 2026-04-14T23:14:36.557 · source: live DB sys.objects/sys.sql_expression_dependencies.

Open formatted source/search result

Parameters

NameTypeOutput
@TableNamevarcharno
@columnnamevarcharno
@ModuleOwnervarcharno

Referenced objects

SchemaObjectColumn/minorClass
DialogColumnOBJECT_OR_COLUMN
DialogTableOBJECT_OR_COLUMN
QBM_PSessionErrorAddOBJECT_OR_COLUMN
QBMBufferConfigOBJECT_OR_COLUMN
dboQBM_FCVStringToIndentOBJECT_OR_COLUMN
dboQBM_FGIColumnExistsInSchemaOBJECT_OR_COLUMN
dboQBM_FGISessionErrorRethrowOBJECT_OR_COLUMN
dboQBM_FSQCVBufferToColumnOBJECT_OR_COLUMN
dboQBM_FSQFunctionCallModuleOwnerOBJECT_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_PBufferC_ProcessOneColumn ( @TableName varchar(30) , @columnname varchar(30) , @ModuleOwner varchar(3)   ) as begin  
2declare @DebugSwitch int = 0  declare @cmd nvarchar(max) declare @xclause nvarchar(1000) declare @IsPKMember bit declare @IsCustomConfigurable bit declare
3 @XUser nvarchar(64) = object_name(@@procid) declare @Xdate datetime = getutcdate() SET XACT_ABORT OFF BEGIN TRY   select top 1 @IsCustomConfigurable =
4 IsCustomConfigurable , @IsPKMember = IsPKMember from DialogColumn c join DialogTable t with (readpast) on c.UID_DialogTable = t.UID_DialogTable where 
5t.TableName = @TableName and c.ColumnName = @columnname if @IsPKMember = 1 or @columnname in ('XObjectKey', 'XUserInserted', 'XUserUpdated', 'Xdateinserted'
6, 'Xdateupdated', 'XTouched') begin  update QBMBufferConfig set xtouched = 'D'  , XDateUpdated = @Xdate , XUserUpdated = @XUser where TableName = @TableName
7 and ColumnName = @columnname and xtouched = 'O' goto nachbearbeitung end if dbo.QBM_FGIColumnExistsInSchema(@TableName , 'XDateupdated') = 1 and @columnname
8 not like 'X[d,u][a,s][t,e][e,r]updated' begin select @xclause = ', XUserupdated = ''' + @xuser + ''' , xdateupdated = getutcdate()' end else begin select
9 @xclause = '--' end    select @cmd = concat('
10	updat','e @TableName @
11		set @columnname@ = 
12@ContentClause@
13		@Xclause@
14	from @TableName @ x join QBMBufferConfig y on x.XObjectKey = y.ObjectKeyOfRow
15										and y.TableName = ''@TableName @''
16										and y.columnname = ''@columnname@''
17	where @IsnullClause@ <> 
18@ContentNull@
19	and ( ( ''CCC'' = ''@ModuleOwner@''
20			and '
21 + str(@IsCustomConfigurable) + ' = 0 
22		  )
23		  or
24		  ( ''CCC'' <> ''@ModuleOwner@''
25			and ' + dbo.QBM_FSQFunctionCallModuleOwner(@TableName, 'x'
26) + ' <> ''@ModuleOwner@''
27		  )			  
28		)
29		
30	')  select @cmd = REPLACE(@cmd, '@IsnullClause@', dbo.QBM_FSQIsNullClauseCmp(@TableName , @columnname
31, N'x')) select @cmd = REPLACE(@cmd, '@ContentClause@',dbo.QBM_FCVStringToIndent( dbo.QBM_FSQCVBufferToColumn(@TableName , @columnname, N'y', 0), 7)) select
32 @cmd = REPLACE(@cmd, '@ContentNull@', dbo.QBM_FCVStringToIndent(dbo.QBM_FSQCVBufferToColumn(@TableName , @columnname, N'y', 1), 7)) select @cmd = REPLACE
33(@cmd, '@Xclause@', @Xclause) select @cmd = replace(REPLACE(@cmd, '@TableName @', @TableName ) , '@columnname@', @columnname) select @cmd = REPLACE(@cmd
34, '@ModuleOwner@', @ModuleOwner) if @DebugSwitch > 0 begin print @cmd print 'go' end   nachbearbeitung: select @cmd = '
35	delete QBMBufferConfig
36		from QBMBufferConfig y join @TableName @ x on y.XObjectKey = x.XObjectKey
37		where y.TableName = ''@TableName @''
38			and y.ColumnName = ''@columnname@''
39			and @IsnullClause@ = 
40@ContentClause@ 
41		'
42  select @cmd = REPLACE(@cmd, '@IsnullClause@', dbo.QBM_FSQIsNullClauseCmp(@TableName , @columnname, N'x')) select @cmd = REPLACE(@cmd, '@ContentClause@'
43, dbo.QBM_FCVStringToIndent(dbo.QBM_FSQcvBufferToColumn(@TableName , @columnname, N'y', 1), 7)) select @cmd = replace(REPLACE(@cmd, '@TableName @', @TableName
44 ) , '@columnname@', @columnname) if @DebugSwitch > 0 begin print @cmd print 'go' end  END TRY BEGIN CATCH exec QBM_PSessionErrorAdd default declare @Rethrow
45 varchar(1000) = dbo.QBM_FGISessionErrorRethrow() RAISERROR (@Rethrow, 18, 1) WITH NOWAIT END CATCH ende: end 
46

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.557

has TRY/CATCH error handling

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

Declared parameters

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

DML targets

UPDATE QBMBufferConfig DELETE QBMBufferConfig

Called routines

Config/session

Config: None extracted.

Session: None extracted.

DBQueue/tasks

None extracted.

Temp tables / referenced variables

Temp: None extracted.

Variables: @TableName @columnname @ModuleOwner @DebugSwitch @cmd @xclause @IsPKMember @IsCustomConfigurable @XUser @procid @Xdate @xuser @ContentClause @Xclause @IsnullClause @ContentNull @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_PBufferC_ProcessAllSQL expression dependencyOBJECT_OR_COLUMN
dbo.QBM_PBufferC_ProcessAllsource text referencehas TRY/CATCH error handling