Sage 100 ODBC driver: setup, 32 vs 64-bit, limits
How the Sage 100 ODBC driver works, how to set up the SOTAMAS90 DSN, why 32-bit and 64-bit matter, and the limits to know before you build reports on it.
The Sage 100 ODBC driver is the simplest way to read Sage data with tools you already have: Excel, Access, Power BI, Crystal Reports, or any language with an ODBC library. It is also the source of a large share of Sage 100 support threads. This guide explains how it works and where it breaks.
What the driver is
On Sage 100 Standard and Advanced, data is stored in ProvideX files, not a SQL database. The ODBC driver is a ProvideX ODBC driver that translates SQL into file reads. Sage installs a system DSN named SOTAMAS90 that points at the MAS90 folder.
On Sage 100 Premium, data lives in Microsoft SQL Server. Community answers consistently recommend connecting Premium reports to SQL Server directly with the native SQL Server driver, not through SOTAMAS90.
Setting up a DSN
- Open the ODBC Data Source Administrator that matches your client's bitness (see below).
- Find SOTAMAS90 under System DSN, or add a new DSN using the Sage/ProvideX driver.
- Point the database directory at your
MAS90folder. - Optionally store a user, password and company so reports do not prompt every time (a "silent" DSN). Use a read-only Sage user for this.
A connection string without a saved DSN password looks like this:
DSN=SOTAMAS90;UID=reports;PWD=secret;Company=ABC32-bit vs 64-bit
The bitness of the driver must match the bitness of the program that uses it. 64-bit Excel cannot use a 32-bit driver and vice versa. Errors such as "data source name not found" or "architecture mismatch" usually mean exactly this. Windows has two ODBC administrators: C:\Windows\SysWOW64\odbcad32.exe for 32-bit and C:\Windows\System32\odbcad32.exe for 64-bit. Newer Sage 100 versions include a 64-bit driver; on older installs only the 32-bit one exists, so a 32-bit client is the only option.
Tables you will query most
| Table | Contents |
|---|---|
AR_Customer | Customers: ARDivisionNo, CustomerNo, CustomerName, CurrentBalance, CreditLimit |
AR_OpenInvoice | Open AR invoices and balances |
CI_Item | Item master |
IM_ItemWarehouse | Quantity on hand by warehouse |
SO_SalesOrderHeader / SO_SalesOrderDetail | Open sales orders |
AR_InvoiceHistoryHeader | Posted invoice history |
SELECT ARDivisionNo, CustomerNo, CustomerName, CurrentBalance, CreditLimit
FROM AR_Customer
WHERE CurrentBalance > CreditLimitLimits to know
- Read-only on Standard and Advanced. You cannot insert or update through ODBC. Writes need BOI or Visual Integrator.
- Joins are slow. Each join reads files; joining invoice history to customers over years of data can take minutes. Filter on key fields and pull less.
- Limited SQL. The driver supports a subset of SQL. Complex subqueries and some functions fail; outer joins may need ODBC escape syntax.
- It runs on the customer's network. A cloud service cannot reach a DSN on a server in someone's office without a VPN or an agent.
An alternative for reports
If the goal is a spreadsheet or BI model, a CSV or JSON endpoint avoids drivers, DSNs and bitness problems entirely. Paste a URL into Excel or Power BI as a web source. See Power BI without the ODBC driver and Excel Power Query.
curl "https://api.greenbar.octor.top/v1/companies/ABC/ar-aging?format=csv" \ -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