持续安全信息属性=真,坚持安全信息属性=假 [英] Persist Security Info Property=true and Persist Security Info Property=false

查看:150
本文介绍了持续安全信息属性=真,坚持安全信息属性=假的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有关的属性:

 持续安全信息= TRUE 

 坚持安全信息=假

你能告诉我什么是它们之间的区别,如果我不把它放在我的连接会发生什么?

  connect.ConnectionString =供应商= Microsoft.ACE.OLEDB.12.0; 
数据源= C:/用户/ Nourah /下载
/Phase3/Salary.accdb;
持续安全信息=假;;


解决方案

即使您设置坚持安全信息=真坚持安全信息= FALSE
不会显示在front..The差异的差异在发生背景



坚持安全信息设置为false 安全敏感的
信息,如密码,如果连接是打开的或者一直在一个开放的
状态不会返回为
连接的一部分。



如果您设置坚持安全信息设置为True 时,Windows会记住在连接字符串中指定的密码。



这就是区别。



MSDN说明



设置坚持安全信息 true或false将正式生效只有当你提到的用户名和密码在连接字符串。如果你提的ConnectionString用户名和密码,并设置坚持安全信息然后凭据不能被提取。但如果你设置坚持安全信息为真,而在ConnectionString窗口给的凭证会记住凭据,它可以在PGM提取


For the properties:

Persist Security Info=true

and

Persist Security Info=false

Can you tell me what is the difference between them, and if I don't put it in my connection what will happen?

connect.ConnectionString = "Provider=Microsoft.ACE.OLEDB.12.0;
                            Data Source=C:/Users/Nourah/Downloads 
                            /Phase3/Salary.accdb; 
                            Persist Security Info=False;";

解决方案

Even if you set Persist Security Info= true OR Persist Security Info=false it won't show a difference in front..The difference is happening at background

When Persist Security Info set to false security-sensitive information, such as the password, is not returned as part of the connection if the connection is open or has ever been in an open state.

If you set Persist Security Info to True, Windows will remember the password specified in the connection string.

Thats the difference.

MSDN Explanation

setting Persist Security Info true or false will come into effect only if you mention username and password in connection string. If you mention username and password in connectionstring and set Persist Security Info as false then the credentials cannot be extracted. but if you set Persist Security Info as true while giving credentials in the connectionstring windows will remember the credentials and it can extracted in pgm

这篇关于持续安全信息属性=真,坚持安全信息属性=假的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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