dbo.QER_FTHelperHeadOrgParents_RT
SQL_INLINE_TABLE_VALUED_FUNCTION
Created 2026-04-14T23:20:36.033 · modified 2026-04-14T23:20:36.033 · source: live DB sys.objects/sys.sql_expression_dependencies.
Parameters
| Name | Type | Output |
|---|---|---|
@UID_PersonHead | varchar | no |
@UID_OrgRoot | varchar | no |
Referenced objects
| Schema | Object | Column/minor | Class |
|---|---|---|---|
| dbo | BaseTree | OBJECT_OR_COLUMN | |
| dbo | BaseTree | UID_Org | OBJECT_OR_COLUMN |
| dbo | BaseTree | UID_PersonHead | OBJECT_OR_COLUMN |
| dbo | BaseTree | UID_OrgRoot | OBJECT_OR_COLUMN |
| dbo | BaseTree | UID_PersonHeadSecond | OBJECT_OR_COLUMN |
| dbo | BaseTree | XObjectKey | OBJECT_OR_COLUMN |
| dbo | BaseTreeCollectionF | OBJECT_OR_COLUMN | |
| dbo | BaseTreeCollectionF | UID_Org | OBJECT_OR_COLUMN |
| dbo | BaseTreeCollectionF | UID_ParentOrg | OBJECT_OR_COLUMN |
| dbo | HelperHeadOrg | OBJECT_OR_COLUMN | |
| dbo | HelperHeadOrg | UID_PersonHead | OBJECT_OR_COLUMN |
| dbo | HelperHeadOrg | UID_Org | OBJECT_OR_COLUMN |
| dbo | HelperHeadOrg | XOrigin | OBJECT_OR_COLUMN |
Source excerpt
First extracted SQL definition lines from the exported source. Use the full source page for complete context.
1create function dbo.QER_FTHelperHeadOrgParents_RT (@UID_PersonHead varchar(38) , @UID_OrgRoot varchar(38) ) returns table with schemabinding as return 2 ( select distinct b.UID_Org as UID_ParentOrg , b.XObjectKey as XObjectKey from ( select hho.UID_Org from dbo.HelperHeadOrg hho join dbo.BaseTree b on 3hho.UID_Org = b.UID_Org and b.UID_OrgRoot = @UID_OrgRoot where hho.UID_PersonHead = @UID_PersonHead and hho.XOrigin > 0 union all select b.UID_Org from 4 dbo.BaseTree b where b.UID_PersonHead = @UID_PersonHead and b.UID_OrgRoot = @UID_OrgRoot union select b.UID_Org from dbo.BaseTree b where b.UID_PersonHeadSecond 5 = @UID_PersonHead and b.UID_OrgRoot = @UID_OrgRoot ) as x join dbo.BaseTreeCollectionF co on x.UID_Org = co.UID_Org join dbo.BaseTree b on co.uid_parentOrg 6 = b.UID_Org ) 7
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:36.033
None extracted.
Summary: reads/joins HelperHeadOrg, BaseTree, BaseTreeCollectionF
Declared parameters
| Parameter | Type | Direction |
|---|---|---|
@UID_PersonHead | varchar(38) | input |
@UID_OrgRoot | 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_PersonHead @UID_OrgRoot
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.