数据库连接的Persist Security Info参数说明
来源:互联网 发布:在线下载软件 编辑:程序博客网 时间:2024/06/10 19:56
Persist Security Info属性的意思是表示是否保存安全信息,其实可以简单的理解为"ADO在数据库连接成功后是否保存密码信息",
True表示保存,False表示不保存
ADO缺省为True
(ADO.net缺省为False,未测试,根据参考资料上说的)
具体可以通过ADO的Connect对象的ConnectString属性进行验证,如下所示(以下在Delphi7中测试通过):
----------------------------------------------------------------------------------------------------------
数据库连接前
ConnectString="Provider=MSDAORA.1;Password=mypassword;User ID=yzs;Data Source=ydgl22;Persist Security Info=false"
数据库连接成功后
ConnectString="Provider=MSDAORA.1;User ID=yzs;Data Source=ydgl22"
----------------------------------------------------------------------------------------------------------
数据库连接前
ConnectString="Provider=MSDAORA.1;Password=mypassword;User ID=yzs;Data Source=ydgl22;Persist Security Info=true"
数据库连接成功后
ConnectString="Provider=MSDAORA.1;Password=mypassword;User ID=dlyx;Data Source=ydgl22"
----------------------------------------------------------------------------------------------------------
总体来说,如果数据库连接成功后不再需要连接的密码,出于安全性考虑,还是建议将Persist Security Info设为false,以防止后门程序取得数据库连接的密码(windows2003在sp1前就发生过这个问题)。
- 数据库连接的Persist Security Info参数说明
- ADO数据库连接中的Persist Security Info参数的作用
- ADO数据库连接中的Persist Security Info参数的作用
- Persist Security Info 参数的作用
- Persist Security Info 参数的作用
- Persist Security Info 参数的作用
- 终于搞清楚了ADO数据库连接中的Persist Security Info参数的作用
- Persist Security Info
- Persist Security Info 是什么意思
- Persist Security Info
- Persist Security Info意义(转)
- Persist Security Info=False是干什么的
- .NET连接数据库字符串密码丢失的解决方法(persist security info=true;)
- NET连接数据库字符串密码丢失的解决方法(persist security info=true;)
- .NET连接数据库字符串密码丢失的解决方法(persist security info=true;)
- redis info 参数说明
- redis info 参数说明
- redis info 参数说明
- js技巧收集(200多个)(6)
- 平淡生活:偶像的倒掉
- JavaScript和ASP.NET的传值
- js技巧收集(200多个)(7)
- js技巧收集(200多个)(8)
- 数据库连接的Persist Security Info参数说明
- Ext2.0
- 使用String.IsNullOrEmpty来判断字符串是否为空.
- 系统架构师职业分析
- implicit cast of pointer loses '__packed' qualifier
- 算法的力量
- Struts源码学习 — 初始化ModuleConfig (1)
- 网站推广方法全攻略
- 常用网页使用js技巧收集续一