Solved

Copy one access database to another using vb.net

Posted on 2008-10-26
2
423 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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

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…
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

776 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