Solved

c# winforms 2010 'compact and repair' access database without DAO

Posted on 2014-02-26
2
387 Views
Last Modified: 2014-03-03
Hi

I have come across a situation where having a reference to DAO in my application  is causing problems at design time (https://secure.experts-exchange.com/Programming/Languages/C_Sharp/Q_28374832.html)

Is there any way to programatically compact and repair an access database without using DAO?
0
Comment
Question by:cycledude
2 Comments
 
LVL 74

Accepted Solution

by:
käµfm³d   👽 earned 500 total points
Comment Utility
I don't know if it would be feasible in your project, but you could use the command line to do so. The "/compact" switch will trigger a compact-and-repair on the database file. You could use the Process class to execute such.
0
 

Author Closing Comment

by:cycledude
Comment Utility
after a little more digging, it looks like DAO is the best way to compact a database, especially as it does not require the end users to have access installed.
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Suggested Solutions

Article by: Ivo
C# And Nullable Types Since 2.0 C# has Nullable(T) Generic Structure. The idea behind is to allow value type objects to have null values just like reference types have. This concerns scenarios where not all data sources have values (like a databa…
Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now