• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1070
  • 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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Introducing Cloud Class® training courses

Tech changes fast. You can learn faster. That’s why we’re bringing professional training courses to Experts Exchange. With a subscription, you can access all the Cloud Class® courses to expand your education, prep for certifications, and get top-notch instructions.

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