rmd*_*ssa 18 connection-string sql-server-2005
在SQL Server连接字符串中,Integrated Security = True/SSPI和之间有什么区别Persist Security = True?
Rem*_*anu 27
Persist Security = true表示不会从连接的ConnectionString属性中删除用于SQL身份验证的密码.
当使用Integrated Security = true时,Persist Security完全无关紧要,因为它仅适用于SQL身份验证,而不适用于windows/Integrated/SSPI.
Rik*_*tel 10
" 集成安全性 "或"Trusted_Connection"
如果为false,则在连接中指定用户ID和密码.
如果为true,则使用当前Windows帐户凭据进行身份验证.
识别的值是true,false,yes,no和sspi(强烈推荐),这相当于true.
注意:如果指定了用户ID和密码并且Integrated Security设置为true,则将忽略用户ID和密码,并将使用Integrated Security.
在持续安全信息属性指定数据源是否可以持续敏感身份验证信息,如密码.
该集成安全性 属性格式指定数据库认证的类型.如果该属性设置为false,则必须手动设置用户标识和密码,如果设置为true,则可以通过当前的Windows帐户进行身份验证.
更多细节请参考以下链接:
http://msdn2.microsoft.com/en-us/library/aa214039(SQL.80).aspx
http://msdn2.microsoft.com/en-us/library/ms159866.aspx