Click here to Skip to main content
15,881,882 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi there,

Anyone know how to export SQL server database to format .mdb in Access using vb.net source code. It will export the whole database, no need to insert table one by one.

Please help. :((
Posted
Updated 9-Jun-10 21:44pm
v2
Comments
LittleYellowBird 10-Jun-10 3:46am    
I 'corrected' the spelling of 'eksport' to 'export' - I hope that is what you meant! :-)

1 solution

It is not that much difficult as you thinking.

Use SqlConnection to connect to sql server database fetch data and
then use OledbConnection to connect with access and export the data you retrieved from sql server.

Find following links to write to access file.

http://www.astahost.com/info.php/vb-net-ms-access-interaction-tutorial-part_t12054.html[^]

http://www.daniweb.com/forums/thread185390.html[^]


HTH
 
Share this answer
 
Comments
hana_84 10-Jun-10 20:18pm    
TQ...i'll try..hope this will be ok...
hana_84 10-Jun-10 20:28pm    
i've found the solution to export for 1 table,but the problem now,i have about 15 table in sql server,and in one table i've about 40/50 fields overall,do i need to insert table one by one and insert every single field?????

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