Click here to Skip to main content
15,903,388 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Dear,

How to transfer data from msaccess to sql in vb.net

I want to transfer only one table data from msaccess to sql thru vb.net


Is there any simple code/way to do this.

Thanks
Basit.

What I have tried:

Nothing tried yet, just searching
Posted
Updated 27-Mar-16 0:56am
Comments
F-ES Sitecore 27-Mar-16 7:30am    
Just use ado.net to read from access then use ado.net to insert that data into sql. The only thing that is different is the connection string, so use the access connection string to read and the sql connection string when writing. Google "crud with ado.net" for examples on how you read and write using ado.net.
RickZeeland 27-Mar-16 11:22am    
Not a VB solution, but you can use the "Import and Export data wizard", see: https://msdn.microsoft.com/en-us/library/ms141209(v=sql.105).aspx
Select Microsoft Access only if you want to connect to a database that uses Access 2003 or earlier. To connect to a database that uses Access 2007, select Microsoft Office 12.0 Access Database Engine OLE DB Provider instead.

1 solution

Pretty easy, just use Google or your favourite search engine and get hundreds of results.

But hey ho we'll do it for you;

http://stackoverflow.com/questions/21934596/how-do-i-convert-microsoft-access-file-into-sql-server-database
 
Share this answer
 
Comments
basitsar 27-Mar-16 7:07am    
Dear,

i want from vb.net, becoz for some time interval the exe will work and execute .net code.
for interval i will use windows task sheduler

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900