Solved

Copy one access database to another using vb.net

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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Have a conversion issue with varchar to int in a SQL: Query. 1 39
SQL Syntax 14 34
abstract class C# 1 31
RAISERROR WITH NOWAIT 2 14
If you find yourself in this situation “I have used SELECT DISTINCT but I’m getting duplicates” then I'm sorry to say you are using the wrong SQL technique as it only does one thing which is: produces whole rows that are unique. If the results you a…
Composite queries are used to retrieve the results from joining multiple queries after applying any filters. UNION, INTERSECT, MINUS, and UNION ALL are some of the operators used to get certain desired results.​
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

809 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