Solved

Copy one access database to another using vb.net

Posted on 2008-10-26
2
425 Views
Last Modified: 2012-05-05
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
Comment
Question by:teefay
2 Comments
 
LVL 8

Accepted Solution

by:
jorgesv13 earned 125 total points
ID: 22807663
You can try:
dset2 = dset1.Copy

Do not use the Clone mehod, because it will not copy any data
0
 
LVL 26

Expert Comment

by:Anurag Thakur
ID: 22819576
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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes relatively difficult and non-obvious issues that are likely to arise when creating COM class in Visual Studio and deploying it by professional MSI-authoring tools. It is assumed that the reader is already familiar with the cla…
I'm trying, I really am. But I've seen so many wrong approaches involving date(time) boundaries I despair about my inability to explain it. I've seen quite a few recently that define a non-leap year as 364 days, or 366 days and the list goes on. …
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

685 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