[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1018
  • Last Modified:

dbForceOSFlush for ADO Connection object

Does the ADO Connection object have something similar to dbForceOSFlush?
0
Milewskp
Asked:
Milewskp
  • 2
1 Solution
 
harfangCommented:
No.

ADO is not too concerned about the actual engine used. However, you can get a direct handle on the active JetEngine, and force the database cache flush from there. For early binding, this will require a reference to "Microsoft Jet and Replication Objects ?.?? Library" (or JRO for short).

Full example and more details in ADO help, keyword "RefreshCache Method".

As a one-liner for a Jet Connection (late binding):

    CreateObject("JRO.JetEngine").RefreshCache CurrentProject.Connection

Hope this helps!
(°v°)
0
 
MilewskpAuthor Commented:
Works for me. Thanks!
0
 
harfangCommented:
Great! Thanks for points and grade!
(°v°)
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now