码迷,mamicode.com
首页 > Web开发 > 详细

asp.net中关于Microsoft 信息完整性、隐私性等集成信息安全服务服务 integrated security=SSPI

时间:2014-08-07 22:00:16      阅读:396      评论:0      收藏:0      [点我收藏+]

标签:使用   os   strong   数据   数据库   sql   应用   .net   

string strConn=@"server=(local)\SQLExpress;database=AdventureWorks;integrated security=SSPI";
中的 integrated security=SSPI   安全支持提供器接口是定义食物比较全面的公用API,用来验证、
Microsoft信息完整性、信息隐私等集成安全服务,以及用于所有分布式应用程序协议的安全方面的服务。应用程序协议的设计者能够利用该接口获得不同的安全性服务而不必修改协议本身。

-----------------------------------
integrated secuity 身份认证方式
当为false时,将在连接中指定用户ID和密码。
当为true时,将使用当前的windows账户凭证进行身份验证。
可识别的值为true,fales、yes、no以及与true等效的SSPI.
----------------------------
如果使用windows自带的安全验证机制时,就不用加uid和password也可以打开数据库
如果没有写integrated security=SSPI 的话,即必须连接字符串里写上uid=sa;password=00;
否则你不能打开数据库

asp.net中关于Microsoft 信息完整性、隐私性等集成信息安全服务服务 integrated security=SSPI,布布扣,bubuko.com

asp.net中关于Microsoft 信息完整性、隐私性等集成信息安全服务服务 integrated security=SSPI

标签:使用   os   strong   数据   数据库   sql   应用   .net   

原文地址:http://www.cnblogs.com/gold-miss/p/3898013.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!