恢复数据库后,如何获取DB的最后密码? [英] How do I Have My last password to DB after restoring DB ?

查看:388
本文介绍了恢复数据库后,如何获取DB的最后密码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在c#2010中的项目有2个用于备份和恢复的按钮。它有密码可以运行。密码已保存在数据库中的一个表中。

1个密码是123

2用户备份数据库到目标磁盘

3用户将密码更改为321

现在密码123从Backup !!恢复,但我的最后一个密码是321 !!!



如何在没有DB的情况下保存我的最后一个密码恢复备份密码?

用户只记得他的最后一个密码。我该怎么办?

解决方案

除非你明确排除那个表(或者那个用户)从备份或恢复过程中,您无法做任何事情:还原意图就是这样做 - 将数据库恢复到完全备份时的状态。这包括所有备份的字段...



您的用户必须使用您的我忘记密码设施并添加一个新设备。

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?

解决方案

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.


这篇关于恢复数据库后,如何获取DB的最后密码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆