Click here to Skip to main content
15,891,184 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
Hi I am trying to find a solution to export data from my database but i don't know what is the best approach .
simply, i will upgrade my project in the future and i don't want to lose my data plus maybe, i add some new tables in the future and maybe some columns to the current tables .

so what should i do with that ?

Thanks in advance.
Posted
Comments
ridoy 4-Aug-13 6:06am    
you you want to export data from database then use datagirdview which will update with your database edit,and keep editing feature in your datagrid so that you can update your database through it.

1 solution

Your question is not well defined. Nobody can tell what's the best for your porposes, but as I see, you don't need any export, just create a backup of your database. In the future you can restore it into a different one, and do what you want. Exporting is good when you have import somewhere - most likely in a totally different system.

See backup and restore[^] in SQL Server.
 
Share this answer
 
Comments
Ahmad Abd-Elghany 4-Aug-13 6:11am    
but i will add some new tables , can i restore the data into tables ?
Zoltán Zörgő 4-Aug-13 6:22am    
No, but once you have the two databases side-by side, you can uset t-sql and issue select-into statements from one database into the other - or anything else you want. It is the most flexible approach in your case. If you export it to any format, you will still need to import into a different table to do any processing.

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