Sage 100 BOI vs ODBC vs REST API
A side-by-side comparison of the Sage 100 Business Object Interface, the ODBC driver and a hosted REST API, with the questions that decide which one you need.
Developers new to Sage 100 usually ask the same thing on the community forums: should I use BOI or ODBC? The honest reply from experienced consultants is "it depends on whether you need to write". This page lays out the differences so you can decide in a few minutes.
The comparison
| BOI | ODBC | Hosted REST API | |
|---|---|---|---|
| What it is | COM objects that run Sage business logic | A SQL driver over Sage tables | HTTPS endpoints in front of a connector |
| Where your code runs | On a Windows machine with Sage installed | Any Windows machine with the driver and a DSN | Anywhere |
| Read data | Yes | Yes | Yes |
| Write data | Yes, validated like the Sage screens | No on Standard and Advanced | Depends on the provider |
| Language | VBScript, VBA, .NET, any COM client | SQL from any ODBC client | Any HTTP client |
| Learning curve | Steep: sessions, tasks, $ field names | Low if you know SQL | Low |
| Network | Local to the Sage server | Local network or VPN | Outbound only from the customer |
| Licence impact | A BOI session uses a Sage user | None beyond the driver | Usually a connector seat |
When BOI is the right choice
Use BOI when you must create or change Sage records and you want the same checks a user gets on screen: credit limits, tax calculation, pricing, required fields. Writing straight to the database, even on Premium where it is SQL Server, skips those rules and can leave totals out of balance.
A minimal BOI flow in VBScript:
Set oScript = CreateObject("ProvideX.Script")
oScript.Init("C:\Sage\Sage 100\MAS90\Home")
Set oSS = oScript.NewObject("SY_Session")
oSS.nSetUser "integration", "secret"
oSS.nSetCompany "ABC"
oSS.nSetDate "A/R", "20261204"
oSS.nSetModule "A/R"
oSS.nSetProgram oSS.nLookupTask("AR_Customer_ui")
Set oCust = oScript.NewObject("AR_Customer_bus", oSS)
oCust.nSetKeyValue "ARDivisionNo$", "01"
oCust.nSetKeyValue "CustomerNo$", "NEWCO"
oCust.nSetKey
oCust.nSetValue "CustomerName$", "New Customer LLC"
If oCust.nWrite = 0 Then WScript.Echo oCust.sLastErrorMsgWhen ODBC is the right choice
Use ODBC when you only read: reports, a Power BI model, an export to a warehouse. You get plain SQL against tables like AR_Customer, AR_OpenInvoice and CI_Item. Expect two limits: no writes on Standard and Advanced, and slow joins on large tables because the driver reads ProvideX files.
SELECT ARDivisionNo, CustomerNo, CustomerName, CurrentBalance
FROM AR_Customer
WHERE CurrentBalance > 0When a hosted REST API is the right choice
Use a hosted API when your code runs in the cloud and you have several Sage 100 customers. The cost of BOI and ODBC is not the first integration; it is the tenth, when each customer runs a different Sage version on a different server and every upgrade breaks something on a Friday. A REST layer moves that work into one place.
import requests
r = requests.get(
"https://api.greenbar.octor.top/v1/companies/ABC/customers/01-NORTHFLD",
headers={"Authorization": "Bearer sk_test_demo"},
)
print(r.json()["balance"])Three questions that decide it
- Do you need to write to Sage? If no, ODBC or a read API. If yes, BOI or an API that wraps it.
- Where does your code run? On the customer's network: BOI or ODBC are fine. In the cloud: you need something that crosses the firewall.
- How many Sage customers will you support? One: build it yourself. Ten or more: the per-customer maintenance is what you are really choosing.
Read next: Does Sage 100 have a REST API? and the BOI guide.
curl "https://api.greenbar.octor.top/v1/companies/ABC/customers/01-NORTHFLD?fields=raw" \ -H "Authorization: Bearer sk_test_demo"
A REST API for Sage 100, self-serve
One HTTPS endpoint and a typed SDK instead of BOI scripts and ODBC DSNs on every customer's server. Read access is free during the beta.
Join the waitlist