dbo.TSB_FGIPersonHasTSBAccountDef
SQL_SCALAR_FUNCTION
Created 2025-06-27T18:01:20.827 · modified 2026-04-14T23:20:46.547 · source: live DB sys.objects/sys.sql_expression_dependencies.
Parameters
| Name | Type | Output |
|---|---|---|
| bit | yes |
@P_IsInActive | bit | no |
@P_IsTemporaryDeactivated | bit | no |
@P_XMarkedForDeletion | int | no |
@PFDInheritAccountDef | bit | no |
@PTDInheritAccountDef | bit | no |
@PMDInheritAccountDef | bit | no |
@P_IsSecurityIncident | bit | no |
@PSIInheritAccountDef | bit | no |
Referenced objects
| Schema | Object | Column/minor | Class |
|---|---|---|---|
| No SQL expression dependencies in snapshot. | |||
Source excerpt
First extracted SQL definition lines from the exported source. Use the full source page for complete context.
1 create function dbo.TSB_FGIPersonHasTSBAccountDef ( @P_IsInActive bit, @P_IsTemporaryDeactivated bit, @P_XMarkedForDeletion int, @PFDInheritAccountDef 2 bit, @PTDInheritAccountDef bit, @PMDInheritAccountDef bit, @P_IsSecurityIncident bit, @PSIInheritAccountDef bit ) returns bit with SCHEMABINDING as begin 3 declare @erg bit = 0 declare @QBM_BitPatternXMarkedForDel_Delay int = 0x01 declare @P_XMarkedForDeletion_bit1 int = @P_XMarkedForDeletion & @QBM_BitPatternXMarkedForDel_Delay 4 if (isnull(@p_IsInActive,0) = 0 or (@p_IsInActive = 1 and @PFDInheritAccountDef = 1)) and (isnull(@P_IsTemporaryDeactivated,0) = 0 or (@P_IsTemporaryDeactivated 5 = 1 and @PTDInheritAccountDef = 1)) and (@P_XMarkedForDeletion_bit1 = 0 or ( @P_XMarkedForDeletion_bit1 > 0 and @PMDInheritAccountDef = 1)) and (isnull 6(@P_IsSecurityIncident,0) = 0 or (@P_IsSecurityIncident = 1 and @PSIInheritAccountDef = 1)) begin select @erg = 1 end endLabel: return(@erg) end 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:46.547
None extracted.
Summary: No calls/DML/dependency patterns extracted by the current parser.
Declared parameters
| Parameter | Type | Direction |
|---|---|---|
| bit | OUTPUT |
@P_IsInActive | bit | input |
@P_IsTemporaryDeactivated | bit | input |
@P_XMarkedForDeletion | int | input |
@PFDInheritAccountDef | bit | input |
@PTDInheritAccountDef | bit | input |
@PMDInheritAccountDef | bit | input |
@P_IsSecurityIncident | bit | input |
@PSIInheritAccountDef | bit | input |
DML targets
None extracted.Called routines
None extracted.
Read/join references
None extracted.
SQL dependency metadata
None extracted.
Config/session
Config: None extracted.
Session: None extracted.
DBQueue/tasks
None extracted.Temp tables / referenced variables
Temp: None extracted.
Variables: @P_IsInActive @P_IsTemporaryDeactivated @P_XMarkedForDeletion @PFDInheritAccountDef @PTDInheritAccountDef @PMDInheritAccountDef @P_IsSecurityIncident @PSIInheritAccountDef @erg @QBM_BitPatternXMarkedForDel_Delay @P_XMarkedForDeletion_bit1 @p_IsInActive
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 object | Relation | Evidence |
|---|---|---|
| dbo.TSB_ZPersonHasTSBAccountDef | SQL expression dependency | dbo · OBJECT_OR_COLUMN |