开发者

Difference Between Persist Security Info And Integrated Security?

In a SQL Server connection string, what's the difference between Integrated开发者_如何转开发 Security = True/SSPI and Persist Security = True?


Persist Security = true means that the Password used for SQL authentication is not removed from the ConnectionString property of the connection.

When Integrated Security = true is used then the Persist Security is completely irelevant since it only applies to SQL authentication, not to windows/Integrated/SSPI.


"Integrated Security" or "Trusted_Connection"

When false, User ID and Password are specified in the connection.

When true, the current Windows account credentials are used for authentication.

Recognized values are true, false, yes, no, and sspi (strongly recommended), which is equivalent to true.

Note: If User ID and Password are specified and Integrated Security is set to true, the User ID and Password will be ignored and Integrated Security will be used.

The Persist Security Info property specifies whether the data source can persist sensitive authentication information such as a password.

The Integrated Security propery specifies the type of database authentication. If the property is set to be false, you have to set your userid and password manually and if it is set to be true you can pass the authentication by your current windows account.

More details, pls refer the following link:

http://msdn2.microsoft.com/en-us/library/aa214039(SQL.80).aspx

http://msdn2.microsoft.com/en-us/library/ms159866.aspx

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜