dbo.TSB_FGIUNSRootBMatching
SQL_SCALAR_FUNCTION
Created 2025-06-27T18:01:20.647 · modified 2026-04-14T23:20:46.300 · source: live DB sys.objects/sys.sql_expression_dependencies.
Parameters
| Name | Type | Output |
|---|---|---|
| int | yes |
@UID_UNSRootB1 | varchar | no |
@UID_UNSRootB2 | varchar | no |
Referenced objects
| Schema | Object | Column/minor | Class |
|---|---|---|---|
| dbo | DPRNameSpace | OBJECT_OR_COLUMN | |
| dbo | DPRNameSpace | UID_DPRNameSpace | OBJECT_OR_COLUMN |
| dbo | DPRNameSpace | IsExtendedInheritance | OBJECT_OR_COLUMN |
| dbo | UNSRootB | OBJECT_OR_COLUMN | |
| dbo | UNSRootB | UID_UNSRootB | OBJECT_OR_COLUMN |
| dbo | UNSRootB | UID_DPRNameSpace | OBJECT_OR_COLUMN |
Source excerpt
First extracted SQL definition lines from the exported source. Use the full source page for complete context.
1 create function dbo.TSB_FGIUNSRootBMatching ( @UID_UNSRootB1 varchar(38), @UID_UNSRootB2 varchar(38) ) returns int with schemabinding as begin 2 declare @erg int = 0 if @UID_UNSRootB1 = @UID_UNSRootB2 begin select @erg = 1 return(@erg) end if exists (select top 1 1 from dbo.UNSRootB a join dbo.DPRNameSpace 3 n on n.UID_DPRNameSpace = a.UID_DPRNameSpace join dbo.UNSRootB b on n.UID_DPRNameSpace = b.UID_DPRNameSpace where n.IsExtendedInheritance = 1 and a.UID_UNSRootB 4 = @UID_UNSRootB1 and b.UID_UNSRootB = @UID_UNSRootB2 ) begin select @erg = 1 end endLabel: return(@erg) end 5
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.300
None extracted.
Summary: reads/joins UNSRootB, DPRNameSpace
Declared parameters
| Parameter | Type | Direction |
|---|---|---|
| int | OUTPUT |
@UID_UNSRootB1 | varchar(38) | input |
@UID_UNSRootB2 | varchar(38) | input |
DML targets
None extracted.Called routines
None extracted.
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: @UID_UNSRootB1 @UID_UNSRootB2 @erg
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.