Click here to Skip to main content
15,895,656 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
My project in c#2010 have 2 button for Backup and restore.it has password to run.the password have been saved in one of tables in DB.
1-password is 123
2-user backup DB to destination disk
3-user changes the password to 321
4-user Restore DB from Backup file
Now the password 123 restored from Backup!!,But my last password was 321 !!!

How do I save My last password after restoring DB without restoring Backup password?
user only remember his last passsword.What can I do?
Posted

1 solution

Unless you specifically exclude that table (or that user) from the backup or restore process, there isn't anything much you can do: Restore is intended to do exactly that - put a database back to exactly the state it was in when the Backup was taken. This includes all fields that were backed up...

Your user will have to use your "I forgot my password" facility and add a new one.
 
Share this answer
 
Comments
FM7 9-Jun-14 9:10am    
thank,can i save pass to variable before restore,then restore DB,then update password in DB with variable?

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