Click here to Skip to main content
15,903,385 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi Every one.
I Complete my Project And my client use my software now I'm Add some new Features in my application so My database Tables And store procedures are increase.
Now Any One tell me How can i Add new database in clint computer and Clint Previous Data Remain Save.
Please Help me Thanks
I'm using c# Application with sql server database

What I have tried:

I have no idea how can i do this
Posted
Updated 29-Jul-18 5:39am
Comments
Richard MacCutchan 29-Jul-18 11:12am    
You need to write a conversion process. Although it is a bit late to be thinking about this.
Fahid Zahoor 29-Jul-18 11:57am    
you tell me the solution,i use it in my next project you just explin me how can i do this thanks
Richard MacCutchan 30-Jul-18 3:10am    
Create a new table with the extra column then copy the data from the old table to the new one record by record.

Redgate makes products that you can use for this. There's RedGate SQL Compare that enumerates the schema, views, & SP and compares them with the same from another database. For this to work you need to have access to both PC's at the same time (I do this with my clients with LogMeIn Hamachi).
I believe RedGate also has a Database Installation project template. If I remember right you allow the wizard to access your database and it has a code generator to create the db on the client side.
As for making sure the data on the client side remains safe... this should be automatic. You should always have some backup system in place at all time. Most of my clients have daily backups. If I want a snapshot just before the installation then I usually handle that manually using SSMS (again through the LogMeIn Hamachi connection).
Also - you should have source control snapshots of your schema.

Mike
 
Share this answer
 

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