Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

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

Copy one access database to another using vb.net

hello,

i've got a program which writes and reads from an access database using SQL statements. my problem now is i have created another database which i want to copy all the fields from my original DB. can anyone please help me sort out this problem.

i have created a new dataset which i want copy to but i dont know which method to use.

i did this: dset1.copy(dSet2) but its not working.
0
teefay
Asked:
teefay
1 Solution
 
jorgesv13Commented:
You can try:
dset2 = dset1.Copy

Do not use the Clone mehod, because it will not copy any data
0
 
Anurag ThakurTechnical ManagerCommented:
i think the best will be to just copy the File.Copy to make the copy of the database and then remove the rows (if you want to) programatically by calling the delete statements
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

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