Documentation Hub
Lloyd's Register ABSD Schema  ·  SQL Server  ·  2026-05-03

LR Maritime Database Documentation

Comprehensive reference for the Lloyd's Register ABSD legacy schema — tables, triggers, functions, stored procedures, views, and BigQuery migration patterns

1,653
Tables
1,498
Views
1,029
Procedures
282
Triggers
281
Functions
Critical identifier mapping: ABSD_OVGE.LRNO = VSL_DESIGNATION.IMO_NUM — the LR vessel number and IMO number are the same value stored under different column names in different table families. All cross-family joins use this relationship.
Date storage warning: All dates in ABSD_ tables are stored as NVARCHAR (not SQL date types). Use fnLRDateToRealDate() for all date comparisons. Special values: '000000'=unknown, '999999'=open-ended.

Architecture Overview

ABSD_ Tables
Mainframe-era input
Triggers (282)
Business rules
VSL_ Tables
Readable output
Views (1,498)
Client-facing
EDM Platform
Partial migration
SUPPLEMENTAL_
External feeds
ABSD_*_UPDATES
Change queues
Downstream
APS, Seaweb…

Documentation Sections

Section 01
System Overview
Database statistics, architecture, key identifiers, LR field coding system, SEQNO history model, date conventions, trigger disable mechanism, change tracking, status codes, and reference code tables.
ArchitectureConventionsReference Codes
Section 02
Vessel Tables — OV*, HI*, FU*
Complete column-by-column catalog for vessel identity (OVGE, OVNA, OVTY, OVCA, OVCS, OVDOC, OVSMC, OVISSC), ownership history (HIOW, HIMA, HISM, HIOP, HIPP, HIGBO, HIFL, HITL, HIST, and others), and fuel/equipment (FUGE, FUDI1, FUSF/FUSF2).
OV* FamilyHI* FamilyFU* Family
Section 03
Reference & Company Tables
CA* casualty tables, CB* codebook/reference tables (CBUB1, CBCY, CBCOROOT, CBPPROOT), OW* company/owner tables, standalone tables (TANKER, GROUP_FLEET, DEFECT, SALE), SUPPLEMENTAL_ external feed tables, and VSL_ output tables.
CA* CasualtyCB* CodebooksOW* CompaniesVSL_ Output
Section 04
Trigger Business Rules
All 282 triggers documented — universal patterns (J06 update, cursor iteration, annotation), OVGE/OVNA/HIOW/HIMA/HIPP validations, CAGE1 casualty cascade, CBCOROOT/CBPPROOT rules, FUGE equipment validation, HIGE electrical rules, TANKER coating and hull-type rules.
ValidationCascade LogicAudit TrailSHIP_SEARCH
Section 05
Functions & UDFs (281)
All 281 functions across 11 categories: date conversion, ownership point-in-time, string normalization, fuzzy matching (Levenshtein, HowSimilar), address assembly, narrative generation, callsign/MMSI validation, geographic (DMS, Marsden Grid), classification, company/owner, and annotation/audit.
Date ConversionFuzzy MatchNarrativesGeographic
Section 06
Stored Procedures & Views
GROUP_FLEET suite (7 procedures), spABSD_SHIP_SEARCH_SYNC (9-step rebuild), spAnnotateChange (field-level audit), spAddDeleteFUSF2 (feature codes), spAddressTRF. Views: vwFleetDetails, vwISROwnerSelection, vwABSD_OWGE_EDM, vwCasualty, standard Current views, and the implicit relationship model.
GROUP_FLEETSHIP_SEARCHViewsEDM
Section 07
BigQuery Migration Guide
LRNO→IMO mapping, date conversion matrix with BigQuery UDFs, SEQNO→bi-temporal conversion, trigger→BigQuery mapping (18 triggers, 4 patterns), function migration, GROUP_FLEET as BigQuery procedure, data quality rules, SHIP_SEARCH options, CDC pipeline (Debezium → Pub/Sub → Dataflow → BQ).
BigQueryCDCUDFsData Quality
Section 08
TIP/MIS External Feed Processing
Comprehensive coverage of both processing pipelines (Classic tblThirdPartyData and FlexTemp tblTIPMISFlexTemp), all 10 configuration tables with full schemas, 40+ TIP_* source tables, BV XML supply, PSC and SBR loaders, LRNO derivation, previous supply comparison, LRF comparison, validation, auto-processing, action processing (Keep/Learn/Overwrite), business rules engine, manipulation rules engine, SUPPLEMENTAL tables and their triggers, and a full SP reference index.
TIP/MISFlexTempValidationSUPPLEMENTALExternal Feeds
Section 09
SUPPLEMENTAL_ Tables (19)
All 19 SUPPLEMENTAL_ extension tables: full column schemas, trigger logic step-by-step, cross-table relationships, and guard tables. Covers OVGE (MMSI/MMSI_EFD/YARD_NO/FISHNO20), HIFL (Callsign/MMSI history), HITL (LDT/scrap price triangle), CADI (scrap value), CBCY (sanctions), FUDI1/FUDI2, FUGE, FUUN1, STDE, STSE_COMPDATE, STSE, HIFC1, OVTY (STAT5CODE/HULL_SHAPE), and the OVGE_UPDATES staging table.
Extension TablesScrap PriceSanctionsMMSI History
Section 10 — 12-Part Series
Trigger Business Rules — Complete Series
12-part comprehensive trigger reference built line-by-line from SQL source. Universal pattern: TRIGGER_DISABLE guard → cursor → validation SPs → cascade → J06 audit → tblChanges → tblAnnotationLogGeneral → SHIP_SEARCH. Covers all 282 triggers. See individual parts in the Trigger Series section below, or start with the overview for the universal pattern and guard table architecture.
Business RulesAll 282 TriggersAudit TrailUniversal Pattern
Section 11
All 281 Functions — Deep Reference
All 281 UDFs in 17 categories with full signatures and implementation notes derived from source. Key functions: fnLRDateToRealDate (YYMMDD/YYYYMMDD→DATETIME with sentinel and leap-year handling), fnRealDateToLRDate (reverse), APSProper (title-case+FPLNAMEEXCEPTIONS), edit_distance (Wagner-Fischer Levenshtein), AA_fn_phon_nysiis (NYSIIS phonetic), CleanCompanyNameForMatch (16+ legal suffix strips), fnTidyShipname (prefix removal via shipnameexceptions), fnAPSNarrative* family (17 narrative generators using TVP PrimeMoverGrouped), fnClass, fnCallsignCheck.
Date ConversionFuzzy MatchNarrativesString Utils
Section 12a
Stored Procedures — Validation (40)
All val* and spValidate* SPs: universal 0/1 return convention, NULL-always-passes rule, valStandard1 (conf codes), valStandard2/NoNull (2-char alpha), valStandard3/3Num (3-char + numeric+conf), valStandard4/_new (YYMMDD), valStandard8 (numeric string), valStandard9new (YYYYMMDD with full calendar logic including leap year and 30/31-day months), valStandard10/_new (flexible 6/8-char), valStandardYN, valStandardAlpha/Normal, valOwner* family, spValidateMMSI (format + EDM range), spValidateLengths (LOA≥LBP≥REG), spValidateCallsign, spValidateManbow_Len, spValidateC02_BBOW, spValidateHIMO*/spValidateMAAU*.
ValidationDate ChecksDomain Rules
Section 12b
Stored Procedures — Ship Lifecycle
spCreateNewShipWithStatus (62-table creation in 7 transactions, vessel lock mechanism, post-creation integrity check), spCreateNewShipWithNCON_CONFI, spPreLoadNewShipWithStatusA, spDeleteShip (irreversible 62-table deletion), spUpdateShipStatus/WithStatus, spStatusChangeToSS, spNEWCONDateRollForward Phase 1/2/3 (newbuild date advance), spMakeNewCas (casualty SEQNO re-sequence), spCreateNewCasualty, spShipHeaderQuick, spShipTimeline.
Ship CreationDeletionStatusNewbuild
Section 12c
Stored Procedures — Record Lifecycle (~200)
SEQNO history model (Pattern A sequential re-sequence vs Pattern B HIFL 95-slot). All 40+ spMake*Historical SPs (HIFL mirrors SUPPLEMENTAL_, HIOW triggers OWST cascade, HIPP vs HIPP_DATED dual model, MakeSALEHistoricalWithPrice scrap triangle). spCreateNew* sub-record SPs (OVSMC, DOC, ISSC, FUSF2/spAddDeleteFUSF2, Sale, Company, AuxEngine, LRSC/SU/WD, BBC, Breaker, Builder, CA*/casualty events, OW* company sub-records). 70+ spDelete* SPs with standard pattern.
SEQNO ModelHistorical ArchiveSub-records
Section 12d
Stored Procedures — Ownership, Annotation & Fleet
Annotation system: spAnnotateChange (dynamic SQL + spGetEnglishFieldName lookup), spWriteAnnotation* family (5 SPs), spSearchAnnotations* (primary vs secondary, ship vs company), spBackfillAnnotations, spCleanAnnotations. Ownership: spRecomputeABSD_OWST (5-part fleet statistics), spUpdateOWNA. Fairplay integration: spFairplay* + spFPL* 7-SP pipeline. Company matching: spCoMatch* + spReplaceandDeleteOwcode. Address: spBestAddress, spFiveLinesofAddress. GROUP_FLEET 7-step pipeline. spABSD_SHIP_SEARCH_SYNC (9-step rebuild).
AnnotationsOwnership StatsGROUP_FLEETFairplay
Section 12e
Stored Procedures — External Data & System
PSC port-state-control: 11 MOU sources (Paris/Tokyo/USCG/AMSA/Black Sea/Caribbean/Indian Ocean/Med/Riyadh/VDM/Paris-Daily), Insert/Update/Delete upsert pattern, XML and flat-file variants, daily delta loaders. Sanctions: OFAC SDN load + company matching, UN sanctions. Data loading: Janes (7 SPs), spLOAD_ABSD_*, SBR processing. Production/APS: spProduction*, NB Email builders, spEDM_BF_* backfill. 80+ RowSource SPs for UI dropdowns. 60 Spot_* diagnostics + 5 Fog_* performance monitors + DBA misc.
PSCSanctionsProductionDBA Tools

Extended Table Documentation

Section 13
EDM, TIP & MIS Staging Tables
EDM backfill SSIS control tables (tblEDM_BF_SSIS_CONTROL, tblEDM_BF_AUDIT, inspection/certificate staging, EDMClassRO, EDMPortAlias), TIP_* raw flag-state staging (45+ sources, common schema), tblTIP_* structured feeds (IOM, PAN3, IR2, CCS, TL2), and tblMIRS_* sanctions-matching MASTERLOAD tables (77 tables across 9 international authorities with Levenshtein scoring).
EDM BackfillTIP StagingSanctions Match
Section 14
Classification, Survey & Inspection Tables
DNV machinery narrative tables (16, M21–M99 categories), BV amendment data (24 tables, engine spec by LRNO/SEQNO), IRS survey data (25 tables, special/intermediate survey schedules), IACS common XML format (12 member societies, cStatus codes), tblDSM_ClassSource (source registry), Panama_NewData_MonthlyAmends, janes_all (Jane's Fighting Ships naval vessels), tblPSC_* daily and weekly PSC data (26 tables, 11 MOU regions), MOU_INSPECTION, tblAMSA_Inspections.
DNV / BV / IRSIACS XMLPSC InspectionsNaval
Section 15
Sanctions & Audit Infrastructure
ofac_sdn2 / ofac_nonsdn2 / ofac_owsdn1 (OFAC SDN and Non-SDN staging), 20 tblOFAC_*_MASTERLOAD match tables, SDDB salvage and demolition database (13 tables — transactions, yards, LDT price series feeding SUPPLEMENTAL_ABSD_HITL), tblChanges (field-level change history with Source/SourceRef/FollowUp columns), tblAnnotationLogGeneral (analyst annotation workflow), tblFSWSalesPage (FSW commercial listing tracker).
OFAC SanctionsSDDBChange AuditAnnotations
Section 16
Production, Workflow & Scoring Tables
Production_Casualties (denormalised output with ShipTypeLevel1–5, NameAtTimeOfIncident, FlagAtTimeOfIncident) and 22 Production_* sibling tables, tblFlexible_Bucket (EAV extension store) + tblFlexible_Bucket_CB (field codebook), tblStatCode5 (5-level ship type hierarchy with Level1–5 codes/decodes + Lev5Hull/Sub), TRIGGER_DISABLE and 12 table-specific guard tables, tblRiskScreeningData/Score/DataNarrative (AIS behaviour + PSC + Class dimensions), tblSustainabilityData/Narrative (ESG indicators, EEDI/EEXI, CO₂ estimates), tblVDM_AuditLog.
Production OutputGuard TablesRisk ScoringSustainability

Data Model & Architecture

Section 17
Data Model & Architecture Visualisation
Interactive reference combining an SVG entity-relationship diagram (21 core ABSD_ entities, LRNO/OW_CODE join keys, domain clusters), a SEQNO history model timeline ('00' current → 'N' oldest), and a 7-layer CSS data flow architecture (External Sources → Staging → TIP/MIS Pipeline → Core ABSD_ → Triggers → Output Layer → Client Products).
ER DiagramData FlowSEQNO ModelArchitecture

Trigger Series — Detail Pages

10a
Overview & Architecture
Universal 10-step trigger pattern, 4 guard tables, J06 audit fields, annotation system, TRIGGER_DISABLE mechanism, validation SP catalogue.
ArchitectureGuard Tables
10b
General Vessel
HIST, OVGE, OVTY, HILE, HISE, OVVN — vessel identity, type, flag, and SHIP_SEARCH maintenance.
OVGEOVTY
10c
New Vessel Creation
TRIGGER_DISABLE_NEWOOM workflow — 62-table initialisation sequence for new vessel records.
New VesselNEWOOM
10d
Ownership History
HIOW, HIMA, HISM, HIOP, HIGBO, HIPP, HITP, HITL, HIDR — 9 ownership-history triggers. HIGBO guard anomaly, HITL GT/NT rule, GRT_L cascade.
HIOWHITLGRT cascade
10e
Machinery & Equipment
HIMO, HIGE, HIMT, MATH, MAAU, MAEM1-3, MASP — main engine, aux engines, gearbox. EDM migration status. Cursor patterns. HIPU/HIPS/HIPM auto-creation.
MachineryEDM
10f
Cargo & Equipment
FU* series: FUCA1/2, FUCO1/2, FUDI1-4, FUDO1/2, FUGE, FUHA1/2, FULC, FULI1-3, FUOF, FURO1/2, FUSF/2, FUSP, FUST1/2, FUTO, FUUN1/2. FUUN1 EDM Apr 2026. LOC H→R→D ordering.
FU* SeriesCargo
10g
Structure & Survey
HI* physical/flag/classification/propulsion/electronics/tonnage/status, ST* construction triggers, LR* survey triggers (LREQ, LRGE, LRHI, LRSC, LRSU, LRWD).
HI*ST*LR* Survey
10h
Casualty
CADI, CACO, CACT, CAGC, CAGE1/2, CALA, CAPO, CAPR, HAAD, HACO — casualty event recording and cascade rules.
CasualtyCA* Series
10i
Company / OW*
15 OW* company trigger families. tblChanges architecture, spGetUserSettingsOwners, dual guard, OWIN INSTEAD OF pattern, EDM migrations, OWNA 7-step best-address, OWCO↔OWAD1 bidirectional sync.
OW* FamilyINSTEAD OFEDM
10j
Codebooks
CBUB1, CBCA, CBCONOTE, CBCOROOT (3-type dispatch: F/T/S), CBFT, CBPPNAME (word-wrap), CBPPROOT, CBPPSTRE, tblStatCode5, tblFlexible_Bucket.
CB* SeriesWord-wrap
10k
Supplemental Tables
All 20 SUPPLEMENTAL_ABSD_* triggers. LDT→scrap price chain, CBCY sanctions lifecycle, SuppOVGEUpdate dual guard, SUPP_OVTY passenger rules, SUPP_STSE yard number cascade. SuppHITL no-guard anomaly.
SUPPLEMENTALScrap PriceSanctions
10l
Miscellaneous
ABSD_NCON (OWNC rebuild, 6 satellite cascades, future-date block, EDM COB/PCOB), ABSD_NCON_CONFI (dimensions), ABSD_SALE, tblChanges/tblAnnotationLogGeneral self-triggers, QH questionnaire, ofac_sdn2 OFAC sanctions.
NCONOFACSelf-triggers

Key Concepts Quick Reference

ConceptKey RuleSee
LRNO vs IMOABSD_OVGE.LRNO = VSL_DESIGNATION.IMO_NUM — same value, different column nameOverview §3
SEQNO'00'=current active record, '01'+=history descending. Filter WHERE SEQNO='00' for current state.Overview §5
Date StorageNVARCHAR YYYYMM or YYYYMMDD. Use fnLRDateToRealDate(). '000000'=unknown, '999999'=openOverview §6
Trigger DisableInsert row in TRIGGER_DISABLE to suppress all triggers; table-specific variants prevent recursionTriggers §1
J06 FieldsEvery trigger updates ABSD_OVGE.J06_AUTHOR (3-char Windows login) and J06_LNCHDATE (YYMMDD)Triggers §1
No FK ConstraintsAll referential integrity enforced via triggers. Implicit relationships via view JOINs only.Procs §7
EDM IntegrationPartial migration: views use UNION ALL — EDM.dbo.T_ENT_* first, ABSD_ as fallbackProcs §6
SHIP_SEARCHDenormalized search index maintained by 20+ triggers. Synced by spABSD_SHIP_SEARCH_SYNC.Procs §2
LR Maritime Database Documentation  ·  Generated 2026-05-03  ·  Lloyd's Register ABSD Schema Reference