如何将表结构从一个Access MDB复制到另一个Access MDB? [英] How to copy table Structure From one Access MDB to another Access MDB?

查看:109
本文介绍了如何将表结构从一个Access MDB复制到另一个Access MDB?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我正在开发Windows应用程序批量导入"应用程序.
当我在MDB"Empoyee"的表"Emp_Details"上插入值时.

使用一个MDB向此MDB插入更多记录.

但是,当我达到10 MB的MDB大小时,我需要
在此位置创建一个新的MDB并插入新记录.

如何获取大小以及如何创建MDB并复制表结构并粘贴新的mdb.

请帮助我.

Hi,

I am developing a windows application "Batch Import" application.
When i inserting the value on the table "Emp_Details" on the MDB "Empoyee".

Inserting more records using one MDB to this MDB.

But, I need When i reach the Size of MDB as 10 MB,
Create a New MDB as on this location and Inserting new records.

How to get the Size and How to Create the MDB and Copy the Table structure and paste the New mdb.

please Help to me.

推荐答案

您可以通过System.IO.File类获得大小.创建新数据库的最简单方法是保留一个空数据库的副本,并制作一个副本供每次使用.
You get the size with the System.IO.File class. The easiest way to create new DBs is to keep a copy of an empty DB and to make a copy of it to use every time


当MDB大小达到2Gb时,创建一个新数据库. DB与以前的结构相同.
怎么办?

我使用System.IO.File获得了大小.

并获取表名.
When the MDB size is reach as 2Gb then Create a new DB as the same structure as prvious one.
How to do?

I got the Size Using System.IO.File.

and Get Table Name.


这篇关于如何将表结构从一个Access MDB复制到另一个Access MDB?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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