Across automotive tier-two suppliers, metal stamping plants, regional wholesalers, and retail chains in Turkiye, operational data frequently lives inside established SQL Server suites that ship zero public Model Context Protocol packages. Scoping a CPM ERP, Link Gunes Sistemi, and Bilnex AI integration requires navigating Delphi trigger chains, 32-bit COM bridges, and external CPA statutory ledgers without freezing shop-floor terminals or breaking Uniform Chart of Accounts (TDHP) balances.
How CPM ERP, Link Gunes Sistemi, Orka SQL, and Bilnex structure data
Complementing our guides on WorkCube, AKINSOFT Wolvox, and Parasut and Luca, Zirve, ETA, and Vega accounting data, these systems rely on distinct Microsoft SQL Server and application-tier boundaries:
- CPM ERP and CPMSmart (Delphi + T-SQL triggers + CpmService): stores counterparty ledgers (
CARIKART,CARIHAREKET,CARIRISK), inventory (STOKKART,STOKHAREKET), unified commercial headers and lines (EVRAK_BASLIK,EVRAK_HAREKET), and multi-stage manufacturing (URUNAGACI,ROTA,ISEMRI, subcontracting, actual costing, and inflation accounting), coupled with heavy partnerZ_*tables, PascalScript hooks, and REST/JSONCpmServiceendpoints. - Link Bilgisayar (Gunes Sistemi Li-Nova and Link Yeni Nesil): organizes AR/AP and inventory movements into normalized
CARI/CARI_HAR,STOK/STOK_HAR, andMUH_FISpairs split by company and fiscal period, exposing partner Web Services, 32-bit STA COM/DLL libraries, and native GİBUBL-TR 1.2e-document pipelines. - Bilnex V3 SQL and Orka SQL (trigger balances and OAS3 CPA ledgers): Bilnex maintains live stock and account balances inside synchronous SQL
AFTERtriggers (Tr_*) alongside an async Windows e-Document queue, while Orka SQL isolates statutory books into strict annual databases (ORKA_0001_2026) fronted by a documented OpenAPI 3 REST gateway.
Four integration mistakes that stall desktop clients and corrupt ledgers
- Blocking Delphi and POS stations or reading uncommitted ghosts: running unindexed analytical scans on
EVRAK_HAREKETorSTOK_HARlocks shop-floor users, while sprinklingWITH (NOLOCK)across financial reconciliation queries double-counts split pages during active postings. - Direct SQL inserts bypassing synchronous triggers and Delphi scripts: inserting straight into
EVRAK_BASLIKor Bilnex tables skips PascalScript validations, costing rollups, andTr_*balance invariants. - 32-bit STA COM deadlocks in multi-threaded web workers: calling Link partner DLLs concurrently from
MTAbackground threads triggers access violations or hung SQL transactions. - Sub-ledger drift against external CPA books: posting commercial invoices with partial VAT withholding (
5/10 KDV Tevkifati) without matching360and391TDHPsplit lines breaks monthlye-Defterreconciliations in Orka SQL or Luca MMP.
Safe AI reads and governed staging writes through an enterprise ontology
Point analytical AI reads at Read Committed Snapshot (RCSI) replicas mapped into a unified enterprise business ontology so finance controllers, production planners, and sales managers query canonical customer balances, open subcontracting lots, and aged receivables with caller-level row permissions and explicit Latin1_General_CI_AS versus Turkish_CI_AS collation rules.
When an assistant prepares a purchase order, warehouse transfer, or accounting adjustment, keep direct table writes disabled and route human-approved payloads strictly through CpmService, idempotent staging queue stored procedures (sp_CPM_*), dedicated single-threaded Link SDK workers, or Orka OpenAPI 3 endpoints with balanced TDHP pre-checks.