持久安全信息属性=true 和持久安全信息属性=false [英] Persist Security Info Property=true and Persist Security Info Property=false

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

问题描述

对于属性:

Persist Security Info=true

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;";

推荐答案

即使你设置了 Persist Security Info=true OR Persist Security Info=false它不会在前面显示差异.差异发生在后台.

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

Persist Security Info=False 时,安全敏感密码等信息不会作为连接如果连接是开放的或曾经是开放的状态.

When Persist Security Info=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.

如果您设置 Persist Security Info=True,Windows 将记住连接字​​符串中指定的密码.

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

这就是区别.

MSDN说明

设置 Persist Security Info true 或 false 只有当您在连接字符串中提到用户名和密码时才会生效.如果您在连接字符串中提及用户名和密码并将 Persist Security Info 设置为 false,则无法提取凭据,但如果您设置了 Persist Security Info 如果在连接字符串中提供凭据为 true,Windows 将记住凭据,并且可以通过编程方式提取凭据.

Setting Persist Security Info true or false will come into effect only if you mention username and password in the connection string. If you mention username and password in the connection string 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 connection string, windows will remember the credentials, and it can be extracted programmatically.

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

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