如何在代码中压缩和修复访问数据库? [英] How to compact and repair access database in code?

查看:91
本文介绍了如何在代码中压缩和修复访问数据库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近发现,随着时间的推移,访问数据库被破坏,因此Microsoft Access提供的压缩和修复修复了所有问题。但问题是我需要在代码中使用压缩和修复,我不知道如何制作它。

那我怎么能做到呢?

解决方案

Google是你的朋友:好看并经常拜访他。他可以比在这里发布问题更快地回答问题...



一次非常快速的搜索提供超过200,000次点击: https://www.google.co.uk/search?q=compact+and+repair+access+c%23&oq=compact+and+repair+access+c %23& aqs = chrome..69i57j0l5.7112j0j7& sourceid = chrome& es_sm = 0& ie = UTF-8 [ ^ ]



我花了很长时间才得到这个:压缩和修复Access Database Programmatica lly使用C# [ ^ ]



将来,请尝试自己做至少基础研究,不要浪费你的时间或我们的。

I've recently discovered that by time, the access database gets corrupted, so the 'Compact and Repair' provided by the Microsoft Access fixes every thing.But the problem is that I need this 'Compact and Repair' in code, and I don't know how to make it.
So how can I make it?

解决方案

Google is your friend: Be nice and visit him often. He can answer questions a lot more quickly than posting them here...

A very quick search gave over 200,000 hits: https://www.google.co.uk/search?q=compact+and+repair+access+c%23&oq=compact+and+repair+access+c%23&aqs=chrome..69i57j0l5.7112j0j7&sourceid=chrome&es_sm=0&ie=UTF-8[^]

It didn't take me long from that to get this: Compact and Repair an Access Database Programmatically Using C#[^]

In future, please try to do at least basic research yourself, and not waste your time or ours.


这篇关于如何在代码中压缩和修复访问数据库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆