2026-11-27

Sage 100 System Error Code 193

Sage 100 "system error code 193" connecting to SOTAMAS90 on a 64-bit PC means a 32-bit PVXODBC.DLL is sitting in System32 — or your app is 64-bit and needs the 64-bit ODBC driver. Here is the confirmed fix.

Your 64-bit Windows PC cannot connect to SOTAMAS90. Refreshing your Excel query — a query that used to work — returns:

System error 193: (MAS 90 4.0 ODBC Driver, C:\Windows\system32\PVXODBC.DLL)

Error 193 is Windows refusing to load a DLL because it is the wrong bitness for the process asking. On a 64-bit machine there are two ODBC worlds living side by side: C:\Windows\System32 holds the 64-bit components and C:\Windows\SysWOW64 holds the 32-bit ones — the names are backwards from what you would expect, and that confusion is the entire story of this error. A 32-bit PVXODBC.DLL has ended up in System32 (in the documented case, the user copied it there himself, which changed his error from 126 to 193), and/or the application doing the querying is 64-bit and cannot use the 32-bit MAS 90 driver at all. The fix below is the one Sage support walked the user through, and the user confirmed it worked.

The fix

  1. Undo any file copying first. Never copy PVXODBC.DLL from C:\Windows\SysWOW64 into C:\Windows\System32 — that is what creates error 193. Error 126, the one people are usually trying to fix when they copy the file, simply means the driver or a dependency is missing; its cure is a reinstall, not a file copy.
  2. Test the 32-bit driver with the 32-bit administrator. Run C:\Windows\SysWOW64\odbcad32.exe. On the User DSN tab, locate SOTAMAS90, click Configure, go to the Debug tab, and click Test Connection. (Yes — on a 64-bit PC, the program named odbcad32.exe inside SysWOW64 is the 32-bit administrator; the identically named program in System32 is the 64-bit one.)
  3. If the DSN is missing, or the test does not prompt for your Sage 100 credentials and succeed with a table count, the 32-bit driver itself is broken: reinstall Sage 100 Workstation Setup and test again. Do not proceed until this test passes.
  4. If the 32-bit test succeeds, your driver is healthy and the problem is your application: it is 64-bit (in the confirmed case, Excel 2013 64-bit, querying through MS Query), and a 64-bit application cannot load the 32-bit MAS 90 4.0 driver. Install the 64-bit driver:
    • From ..\MAS90\WkSetup\Prerequisites\64Bit ODBC\, install the prerequisites first (including the VC2010 x64 runtime, vcredist_x64), then run the Sage ODBC 64-bit Installer.
    • The 64-bit driver is available on Sage 100 2013 and later.
  5. If error 193 persists after the 64-bit install, remove pvxodbc.dll and pvxio.dll from C:\Windows\System32 and reinstall the 64-bit driver. Then verify from the other side: run C:\Windows\System32\odbcad32.exe (the 64-bit administrator), configure SOTAMAS90, and run the Debug tab's Test Connection — it should succeed from there now. Also confirm the MAS90 folder contains pvxsec64.dll, PvxSec32.dll, and pvodbsec.ini.
  6. Re-run your query. In the documented case, this cleanup and reinstall is the step after which the user reported the connection working.

Causes / why this happens

  • 32-bit DLL in the 64-bit folder. Windows loads the driver from the path the DSN points to; a 32-bit PVXODBC.DLL in System32 cannot load into a 64-bit process, and Windows reports 193.
  • Application/driver bitness mismatch. Even with every file in its correct place, the stock SOTAMAS90 driver is 32-bit. A 64-bit Excel, or any 64-bit querying tool, needs the separate 64-bit driver installed — Sage ships it as an optional prerequisite install, not as part of standard Workstation Setup.
  • A different 193 exists — do not confuse them. Sage's Knowledgebase also documents error 193 (with "The application was unable to start correctly (0xc000007b)") when launching Sage 100 itself, caused by corrupt Visual C++ 2010 runtime files: rename msvcr100.dll and msvcp100.dll in C:\Windows\SysWOW64 and repair the runtime from ..\MAS90\WkSetup\Prerequisites\VC2010\vcredist_x86.exe (or reinstall Workstation Setup). In this SOTAMAS90 case that repair was tried first and did not work — because the fault was bitness, not corruption. Match the remedy to the symptom: 193 at application launch points at the runtime; 193 naming PVXODBC.DLL points at bitness.

Per-context variants

Error 126 instead of 193: a driver file or dependency is missing entirely. Reinstall Workstation Setup (for the 32-bit driver) or the 64-bit driver installer — and resist copying DLLs between folders, which is how 126 becomes 193.

Pre-2013 Sage 100: there is no 64-bit ODBC driver. A 64-bit application cannot query SOTAMAS90 directly; run the query from a 32-bit application (32-bit Excel/Access) instead.

Long connection strings: MS Query generates a very long SOTAMAS90 connection string (Directory, Prefix, ViewDLL, cache and mode settings). It looks suspicious and is not the problem — the short form DSN=SOTAMAS90;Description=MAS 90 4.0 ODBC Driver;Directory=<path to MAS90>;SERVER=NotTheServer works equally well once the driver loads.

What doesn't work

  • Copying PVXODBC.DLL from SysWOW64 to System32. It converts error 126 into error 193. Sage support's instruction in the thread is blunt: do not copy files around.
  • Deleting and recreating the DSN. A brand-new DSN hit the same 193 the moment the MAS 90 4.0 ODBC Driver was selected — the DSN was never the fault; the DLL it points to was.
  • The VC++ runtime repair, for this symptom. It is the right fix for the launch-time 193/0xc000007b variant and the wrong fix here; it was tried and reported as not working before the bitness cause was found.

Affected versions

Confirmed on a 64-bit Windows 7 workstation with Excel 2013 64-bit against Sage 100 2015 data. The 64-bit ODBC driver exists for Sage 100 2013 and later. The underlying rule — driver bitness must match the querying application — applies to every 64-bit Windows version.

Prevention / best practice

  • When you install a new PC, decide which applications will query Sage and note their bitness before choosing drivers; install the 64-bit ODBC driver at build time if any 64-bit tool is on the list.
  • Never hand-copy ODBC driver DLLs between System32 and SysWOW64. Every driver problem on this platform is fixed by an installer — Workstation Setup or the 64-bit driver installer.
  • Keep the two administrators straight by path, not by name: SysWOW64\odbcad32.exe = 32-bit DSNs; System32\odbcad32.exe = 64-bit DSNs. Test each DSN from its own administrator's Debug tab.

Related help

Still stuck? Send us a screenshot of the error, we will diagnose it for free.

Digit Masters has supported Sage 100 and Sage 300 since 1997. Send the screenshot through our contact page or to contact@digitmasters.com, or call (800) 965-4262.

Ready to Optimize Your Sage ERP?

Speak with a CPA-led Sage consultant. Free initial consultation — English or Chinese.

Get a Free Consultation