dbo.ARS_FTAttestationRulerPA

SQL_TABLE_VALUED_FUNCTION

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

Open formatted source/search result

Parameters

NameTypeOutput
@UID_AttestationCasevarcharno

Referenced objects

SchemaObjectColumn/minorClass
ADSAccountInADSGroupOBJECT_OR_COLUMN
ADSGroupOBJECT_OR_COLUMN
ADSGroupInADSGroupOBJECT_OR_COLUMN
AttestationCaseOBJECT_OR_COLUMN
dboARS_FTPersonFromEdsvaOBJECT_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

1create function dbo.ARS_FTAttestationRulerPA (@UID_AttestationCase varchar(38) ) returns @erg table ( UID_Person varchar(38) collate database_default )
2 AS begin declare @Ownerlist nvarchar(max) = null declare @ObjectKeyBase varchar(138) = null select top 1 @ObjectKeyBase = ac.ObjectKeyBase from AttestationCase
3 ac where ac.UID_AttestationCase = @UID_AttestationCase if @ObjectKeyBase is null begin goto endlabel end if @ObjectKeyBase like '<Key><T>ADSGroup</T>%'
4 begin select top 1 @Ownerlist = g.edsvaSecondaryOwners from ADSGroup g where g.XObjectKey = @ObjectKeyBase end if @ObjectKeyBase like '<Key><T>ADSAccountInADSGroup</T>%'
5 begin select top 1 @Ownerlist = g.edsvaSecondaryOwners from ADSAccountInADSGroup gig join ADSGroup g on g.UID_ADSGroup = gig.UID_ADSGroup where gig.XObjectKey
6 = @ObjectKeyBase end If @ObjectKeyBase like '<Key><T>ADSGroupInADSGroup</T>%' begin select top 1 @Ownerlist = g.edsvaSecondaryOwners from ADSGroupInADSGroup
7 gg JOIN ADSGroup g on g.UID_ADSGroup = gg.UID_ADSGroupParent where gg.XObjectKey = @ObjectKeyBase end if @Ownerlist is null begin goto endLabel end insert
8 into @erg(UID_Person) select l.UID_Person from dbo.ARS_FTPersonFromEdsva(@Ownerlist) l endLabel: return end 
9

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:50.523

None extracted.

Summary: writes INSERT into; reads/joins AttestationCase, ADSGroup, ADSAccountInADSGroup, ADSGroupInADSGroup, ARS_FTPersonFromEdsva

Declared parameters

ParameterTypeDirection
@UID_AttestationCasevarchar(38)input

DML targets

INSERT into

Called routines

None extracted.

Config/session

Config: None extracted.

Session: None extracted.

DBQueue/tasks

None extracted.

Temp tables / referenced variables

Temp: None extracted.

Variables: @UID_AttestationCase @erg @Ownerlist @ObjectKeyBase

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.GEN_FT06941843E5E88226E59DAAE4SQL expression dependencydbo · OBJECT_OR_COLUMN
dbo.GEN_FT71486EB9289E8C428D0BC8BDSQL expression dependencydbo · OBJECT_OR_COLUMN