dbo.QBM_PMultilanguageFill
SQL_STORED_PROCEDURE
Created 2025-06-27T17:57:29.677 · modified 2026-04-14T23:20:26.443 · source: live DB sys.objects/sys.sql_expression_dependencies.
Parameters
| Name | Type | Output |
|---|---|---|
@ModuleName | varchar | no |
Referenced objects
| Schema | Object | Column/minor | Class |
|---|---|---|---|
| DialogColumn | OBJECT_OR_COLUMN | ||
| DialogDatabase | OBJECT_OR_COLUMN | ||
| DialogTable | OBJECT_OR_COLUMN | ||
| QBM_PExecuteSQLWithRetry_LLP | OBJECT_OR_COLUMN | ||
| QBM_PSessionErrorAdd | OBJECT_OR_COLUMN | ||
| dbo | QBM_FGIBitPatternMultilanguage | OBJECT_OR_COLUMN | |
| dbo | QBM_FGISessionErrorRethrow | OBJECT_OR_COLUMN | |
| dbo | QBM_FSQFunctionCallModuleOwner | OBJECT_OR_COLUMN |
Source excerpt
First extracted SQL definition lines from the exported source. Use the full source page for complete context.
1 create procedure QBM_PMultilanguageFill (@ModuleName varchar(3) ) as begin declare @UID_DialogCultureDefault varchar(38) declare @MusterInsert 2 nvarchar(max) declare @MusterHinten nvarchar(max) declare @SQLCmd nvarchar(max) declare @DebugSwitch int = 0 SET XACT_ABORT OFF BEGIN TRY select top 1 3 @UID_DialogCultureDefault = d.UID_DialogCultureDefault from DialogDatabase d with (readpast) where d.IsMainDatabase = 1 select @MusterInsert = N' 4 insert into DialogMultiLanguage (UID_DialogMultiLanguage, UID_DialogColumn, EntryKey, EntryValue, UID_DialogCulture, XDateInserted, XUserInserted 5 , XObjectKey 6 , SourceType 7 ) 8 select 9 y.UID_DialogMultiLanguage 10 , y.UID_DialogColumn , y.prop, y.prop, ''' 11 + @UID_DialogCultureDefault + ''', getutcdate(), ''FillDefaults'' 12 , dbo.QBM_FCVElementToObjectKey1(''dialogmultilanguage'', ''UID_dialogmultilanguage'', y.UID_DialogMultiLanguage) 13 , ''Data'' 14 from 15 ( 16 ' 17 select @MusterHinten = ' 18 ) as y 19 20 where Not exists (select top 1 1 21 from DialogMultiLanguage m 22 where m.UID_DialogColumn = y.UID_DialogColumn 23 and m.EntryKey = y.prop 24 ) 25' 26 select @SQLCmd = string_agg( concat (convert(nvarchar(max), ''), ' 27 select convert(nvarchar(max), t.', x.ColumnName, ') as prop, dbo.QBM_FCVStringToGUID( ''' 28, @ModuleName, ''', ''', x.UID_DialogColumn, ''' + ''', @UID_DialogCultureDefault, ''' + convert(nvarchar(max), t.', x.ColumnName, ')) as UID_DialogMultiLanguage 29 , ''' 30, x.UID_DialogColumn, ''' as UID_DialogColumn 31 from ', x.TableName, ' t 32 where ', dbo.QBM_FSQFunctionCallModuleOwner(x.TableName, 't') , ' = ''' 33, @ModuleName, ''' 34 and convert(nvarchar(max), t.', x.ColumnName, ') > '' '' 35 ' ) , ' 36 union 37 ' ) within group(order by x.TableName 38, x.columnname) from (select c.UID_DialogColumn, t.TableName, c.ColumnName from DialogColumn c with (readpast) join DialogTable t with (readpast) on c.UID_DialogTable 39 = t.UID_DialogTable where c.Multilanguageflag & dbo.QBM_FGIBitPatternMultilanguage('|Source|Multivalent|', 0) = dbo.QBM_FGIBitPatternMultilanguage('|Source|' 40, 0) and isnull(c.syntaxtype, '') <> 'Text.Dollar' and exists (Select top 1 1 from DialogColumn cv with (readpast) where cv.UID_DialogTable = t.UID_DialogTable 41 and cv.ColumnName = 'XObjectKey' ) ) as x if @SQLCmd > ' ' begin select @SQLCmd = concat( @MusterInsert , @SQLCmd , @MusterHinten ) if @DebugSwitch > 42 0 begin select @SQLCmd end exec QBM_PExecuteSQLWithRetry_LLP @SQLStatement = @SQLCmd , @LockTimeout_ms = default , @MaxWaitTimeForLock_s = default , @ProcIDForJournal 43 = default , @HandleErrorSilent = 0 end END TRY BEGIN CATCH exec QBM_PSessionErrorAdd default declare @Rethrow varchar(1000) = dbo.QBM_FGISessionErrorRethrow 44() RAISERROR (@Rethrow, 18, 1) WITH NOWAIT END CATCH ende: return end 45
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:26.443
has TRY/CATCH error handling
Summary: calls QBM_PExecuteSQLWithRetry_LLP, QBM_PSessionErrorAdd; writes INSERT DialogMultiLanguage; reads/joins DialogDatabase, DialogMultiLanguage, DialogColumn, DialogTable
Declared parameters
| Parameter | Type | Direction |
|---|---|---|
@ModuleName | varchar(3) | input |
DML targets
INSERT DialogMultiLanguageCalled routines
Read/join references
SQL dependency metadata
Config/session
Config: None extracted.
Session: None extracted.
DBQueue/tasks
None extracted.Temp tables / referenced variables
Temp: None extracted.
Variables: @ModuleName @UID_DialogCultureDefault @MusterInsert @MusterHinten @SQLCmd @DebugSwitch @SQLStatement @LockTimeout_ms @MaxWaitTimeForLock_s @ProcIDForJournal @HandleErrorSilent @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.