FINANCIALINSTITUTION

This table contains information about financial institutions.

Primary Key

Primary Key Field Type
ID uniqueidentifier

Fields

Field Field Type Null Notes Description
DESCRIPTION nvarchar(202) (Computed) case when BRANCHNAME = '' then FINANCIALINSTITUTION else FINANCIALINSTITUTION + ': ' + BRANCHNAME end The translation field for this table.
FINANCIALINSTITUTION nvarchar(100) Default = '' The name of this financial institution.
BRANCHNAME nvarchar(100) Default = '' The branch name of this financial institution.
ROUTINGNUMBER nvarchar(9) Default = '' The routing number for financial institutions in the United States.
SORTCODE nvarchar(6) Default = '' The sort code for financial institutions in the United Kingdom and Spain.
BSB nvarchar(7) Default = '' The BSB for financial institutions in Australia.
INSTITUTIONID nvarchar(8) Default = '' The institution ID for financial institutions in Canada.
BANKNUMBER nvarchar(7) Default = '' The bank number for financial institutions in New Zealand.
IMMEDIATEORIGINTYPECODE tinyint Default = 0 0=Use Routing Number, 1=Other
IMMEDIATEORIGINUSERDEFINED nvarchar(10) Default = ''
ISSTANDINGORDERINSTITUTION bit Default = 0 Determines if this financial institution is a standing order institution.
ISSPONSORINGINSTITUTION bit Default = 0 Determines if this financial institution is a sponsoring institution.
ACCOUNTNAME nvarchar(50) Default = '' The account name for this sponsoring institution.
ACCOUNTNUMBER nvarchar(4000) Default = '' The account number at this sponsoring institution.
USERNUMBER nvarchar(24) Default = '' The usernumber for this sponsoring institution.
ADDRESSBLOCK nvarchar(150) Default = '' The address lines for this financial institution.
CITY nvarchar(50) Default = '' The city for this financial institution.
POSTCODE nvarchar(12) Default = '' The post code for this financial institution.
PHONENUMBER nvarchar(100) Default = '' Stores the phone number.
BANKSTATENUMBER nvarchar(1) Default = ''
ABBREVIATION nvarchar(3) Default = ''
DESTINATIONID int Default = 0
DATEADDED datetime Default = getdate() Indicates the date this record was added.
DATECHANGED datetime Default = getdate() Indicates the date this record was last changed.
TS timestamp Timestamp.
TSLONG bigint (Computed) yes CONVERT(bigint, TS) Numeric representation of the timestamp.
IMMEDIATEORIGINTYPE nvarchar(18) (Computed) yes CASE [IMMEDIATEORIGINTYPECODE] WHEN 0 THEN N'Use Routing Number' WHEN 1 THEN N'Other' END Provides a translation for the 'IMMEDIATEORIGINTYPECODE' field.
CLIENTNAME nvarchar(100) Default = ''
FORMATTEDADDRESS nvarchar(250) (Computed) yes dbo.UFN_FINANCIALINSTITUTION_BUILDADDRESS(ID) The formatted address for this financial institution.
BIC nvarchar(11) Default = ''
BANKCODE nvarchar(25) Default = ''

Foreign Keys

Foreign Key Field Type Null Notes Description
STATEID uniqueidentifier yes STATE.LOCALID The state for this financial institution.
COUNTRYID uniqueidentifier COUNTRY.LOCALID The country for this financial institution.
ADDEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
CHANGEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
BANKINGSYSTEMID uniqueidentifier yes BANKINGSYSTEM.ID

Indexes

Index Name Fields Unique Primary Clustered
IX_FINANCIALINSTITUTION_BANKNUMBER BANKNUMBER
IX_FINANCIALINSTITUTION_BRANCHNAME BRANCHNAME
IX_FINANCIALINSTITUTION_BSB BSB
IX_FINANCIALINSTITUTION_DATEADDED DATEADDED yes
IX_FINANCIALINSTITUTION_DATECHANGED DATECHANGED
IX_FINANCIALINSTITUTION_FINANCIALINSTITUTION FINANCIALINSTITUTION
IX_FINANCIALINSTITUTION_INSTITUTIONID INSTITUTIONID
IX_FINANCIALINSTITUTION_ROUTINGNUMBER ROUTINGNUMBER
IX_FINANCIALINSTITUTION_SORTCODE SORTCODE
PK_FINANCIALINSTITUTION ID yes yes

Triggers

Trigger Name Description
TR_FINANCIALINSTITUTION_AUDIT_UPDATE
TR_FINANCIALINSTITUTION_AUDIT_DELETE

Referenced by

Referenced by Field
BATCHSPONSORSHIPCONSTITUENTACCOUNT FINANCIALINSTITUTIONID
CONSTITUENTACCOUNT FINANCIALINSTITUTIONID
FINANCIALINSTITUTIONREJECTIONCODE FINANCIALINSTITUTIONID
GENERATEBACSFILEPROCESS SPONSORINGINSTITUTIONID
GENERATEEFTFILEPROCESS SPONSORINGINSTITUTIONID
PAPERLESSMANDATESINSTRUCTIONPROCESS SPONSORINGINSTITUTIONID
PRENOTIFICATIONPROCESS SPONSORINGINSTITUTIONID