2026-11-27

Sage 100: GL Transaction Data Extract

Extracting a month of GL transactions from Sage 100 Advanced GL_DetailPosting takes so long it fails? What the documented tests actually showed — and the SQL mirror pattern that scales past a 2-million-row table.

Every month, after the close, you extract the month's GL transactions from Sage 100 Advanced and import them into your consolidation system. On a small company it takes seconds. On the big company — about 2 million rows in GL_DetailPosting, roughly 45,000 of them in a single month — the extract through a linked Access table runs so long that it sometimes fails and has to be retried until it eventually gets through.

Honest status first, because this thread is unusually well tested: no single tweak is confirmed to fix the large-table case. The site that reported this problem tried the two most-recommended changes — SQL Specific Pass Through Queries, and Client/Server ODBC on and off — and measured no difference on their data. What follows is what the evidence supports: why the extract is slow, the one architectural change that removes the bottleneck instead of tuning around it, and the techniques that are documented to help on smaller workloads, labelled as such.

The fix

Mirror the GL data into SQL Server once, then extract from SQL. This is the approach recommended in the thread by an experienced Sage 100 consultant, and it is the only option that changes the thing that is actually slow — repeated querying of a 2-million-row ProvideX file through the ODBC driver:

  1. Set up a SQL Server Express instance for reporting/consolidation staging.
  2. Create a linked server in SQL Server pointing at the Sage 100 ProvideX data through the SOTAMAS90 DSN.
  3. Pull GL_DetailPosting into a SQL table with a simple single-table statement through OPENQUERY — no joins, no functions in the string that goes to the driver:

    SELECT * FROM OPENQUERY(SAGE, 'SELECT * FROM GL_DetailPosting')
    

    Simple OPENQUERY pulls of this kind are reported to run surprisingly fast, because the driver is doing the one thing it does well: a plain single-table read.

  4. Wrap the refresh in a stored procedure and a batch file / scheduled job so the mirror refreshes nightly. Your monthly extract then filters the SQL copy by PostingDate — a fast, indexed, native SQL operation — instead of interrogating ProvideX.

  5. Keep the GL account-number lookup in SQL too: mirror the account table the same way and join in SQL Server, rather than joining through the driver or linking back per row.

If you stay in Access, keep the extract brutally simple, which is the pattern the reporting site itself found fastest: one query per table, tight PostingDate range, no joins through ODBC. Extract GL_DetailPosting alone, extract the GL accounts in a separate query, and link the two inside Access. PostingDate is a secondary key in GL_DetailPosting (confirmed by Sage staff in the thread), so a date-range filter is already using the right access path — the query shape is not your problem.

Causes / why this happens

GL_DetailPosting on Sage 100 Advanced is a ProvideX file, and the ProvideX ODBC driver is a file-based driver: every query is serviced by reading those files through the driver, with none of the query engine, indexing, or caching a real database server brings. At a few thousand rows that hardly matters — the same site's small company extracts in seconds. At 2 million rows, a one-month slice is still 45,000 rows dragged through that path, and the run stretches until timeouts and failures start. Two aggravating factors are documented across Sage 100 ODBC threads: linked tables in Access add another translation layer on top of the driver (Sage staff in the thread note a linked-table pull is slower than going directly against the ProvideX data), and joins through the driver are disproportionately expensive — which is why every experienced recommendation converges on single-table reads combined somewhere else.

Options and approaches

SQL Specific Pass Through Queries

The standard first recommendation, and genuinely effective in many documented cases: a pass-through query bypasses most of the ODBC layers and issues the call directly to the data source, roughly halving load times in one measured Crystal/Access comparison (14 seconds to 7). It also lets you code the logon into the query and automate the extract to run overnight. But on this thread's 2-million-row GL table, the poster ran the identical query as a linked table and as a pass-through and both took the same time. Try it — it is cheap to test — and measure on your largest company, not your smallest. If your table is smaller than this case, it may be all you need.

Client/Server ODBC (CS-ODBC)

The other standard recommendation for Advanced: run the ODBC work through the server-side C/S ODBC service instead of having the workstation read ProvideX files across the network. It is a documented performance route for reports and forms on Advanced generally. In this thread it was tested on and off and made no difference to the extract. Worth knowing before you spend an afternoon configuring it as your only plan.

Extract timing

Whatever path you use, stop running the big extract interactively. Schedule it overnight (pass-through queries and the SQL mirror both support coded logons and batch execution), so a long run is an inconvenience in a log file instead of a person watching a progress bar and retrying failures by hand.

What doesn't work

  • Expecting Rebuild Sort Files or Rebuild Key Files to speed up ODBC extracts. The poster asked about both utilities directly; no one in the thread — including the Sage participant — endorsed them as a query-speed remedy, and no source documents them as one. They repair file structure problems; this is not one.
  • Optimising the query text further. Sage staff reviewed the actual query in the thread and confirmed it was fine and that PostingDate is a secondary key. The bottleneck is the path and the volume, not the SQL.
  • Judging any change on the small company. Every method looks fast there. The 2-million-row company is the only honest test.

If it still does not work — escalation path

No confirmed resolution exists for the large-table case. If the mirror pattern is not an option in your environment: (1) measure the extract on the large company only, with the exact query, row counts, and timings for linked-table, pass-through, and CS-ODBC on/off recorded, (2) capture the Sage 100 version, product update, and ODBC driver version, and (3) escalate with that evidence package to your Sage 100 partner or Sage support, or as a follow-up in the original Community Hub thread — do not keep retrying the two tweaks the thread already measured as making no difference.

Affected versions

Sage 100 Advanced (ProvideX database), any version — the behaviour is a property of the ProvideX ODBC driver and table scale, and the thread's environment is circa 2016. Sage 100 Premium is a different world: GL_DetailPosting is a SQL Server table there, so extract with native SQL and ignore this page. Sage 100 Standard shares the ProvideX driver, so the same single-table and mirror guidance applies, minus CS-ODBC, which is an Advanced feature.

Prevention / best practice

  • Treat recurring extracts as infrastructure, not as a monthly manual task: a nightly-refreshed SQL mirror turns every downstream consolidation, report, and audit request into a fast local query.
  • Keep driver-bound queries to one table each, with the narrowest WHERE filter the driver supports, and do joining, grouping, and formatting in SQL Server, Access, or your reporting tool.
  • Watch GL_DetailPosting growth. The failure mode in this thread arrived with table size, not with a version change — if your extract times are creeping up month over month, that trend is the warning.

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