All articles| All Pictures| All Softwares| All Video| Go home page| Write articles| Upload pictures

Reading number is top 10 articles
技巧,.NET如何访问MySQL数据库_[Asp.Net教程]
ASP.NET技巧:全角字符转换为半角_.net资料_编程技术
快速入门-.net的常规命名规范示例_[Asp.Net教程]
Visual C++ 6.0教程:函数的定义与调用
动态网页常用技术:用PHP追随变量(cookie和session)_php资料_编程技术
JBOSS创始人批评“挽救MySQL”运动_mssql学习_编程技术
Delphi在状态栏中显示检查框
XSL教程:学会如何使用XPath入门_[XML教程]
PHP网站开发中关于包含路径问题的解决方案_[PHP教程]
利用C#实现标注式消息提示窗口_.net资料_编程技术
Reading number is top 10 pictures
乳娘帕梅拉安德森5
The money of more than 100 countries and regions20
性感丰满身材火爆de美女1
Summer is most suitable for young people to travel in China4
狗狗与主人神同步2
Sora aoi mirror memorial classics4
移民小国也实惠2
Players in the eyes of a perfect love2
泳装名模阿尔贝特妮写真2
Average female college students1
Download software ranking
尖东毒玫瑰B
网络管理员第三版
Tram sex maniac 2 (H) rar bag14
Unix video tutorial19
The Bermuda triangle1
The cock of the Grosvenor LTD handsome
Eclipse-CALMSANNY (second edition)
圣殿祭司的ASP.NET.2.0.开发详解-使用C#
Unix video tutorial7
Tram sex maniac 2 (H) rar bag10
归海一刀 published in(发表于) 2014/2/1 0:11:13 Edit(编辑)
SQL,Server,数据库连接字符串的声明_[SQL,Server教程]

SQL,Server,数据库连接字符串的声明_[SQL,Server教程]

SQL Server 数据库连接字符串的声明_[SQL Server教程]

连接字符串中常用的声明有:
服务器声明 Data Source、Server和Addr等。
数据库声明 Initial Catalog和DataBase等。
集成Windows账号的安全性声明 Integrated Security和Trusted_Connection等。
使用数据库账号的安全性声明 User ID和Password等。


对于访问数据库的账号来说,通常我们在一些参考资料上看到ADO.NET的字符串连接往往有如下写法:
string ConnStr = "server = localhost; user id = sa; password = xxx; database = northwind";


对于集成Windows安全性的账号来说,其连接字符串写法一般如下:
string ConnStr = "server = localhost; integrated security = sspi; database = northwind";
或string ConnStr = "server = localhost; trusted_connection = yes; database = northwind";


使用Windows集成的安全性验证在访问数据库时具有很多优势:安全性更高、访问速度更快、减少重新设计安全架构的工作、可以硬编码连接字符串等,还是很值得使用的。


来源:网络







添加到del.icio.us 添加到新浪ViVi 添加到百度搜藏 添加到POCO网摘 添加到天天网摘365Key 添加到和讯网摘 添加到天极网摘 添加到黑米书签 添加到QQ书签 添加到雅虎收藏 添加到奇客发现 diigo it 添加到饭否 添加到飞豆订阅 添加到抓虾收藏 添加到鲜果订阅 digg it 貼到funP 添加到有道阅读 Live Favorites 添加到Newsvine 打印本页 用Email发送本页 在Facebook上分享


Disclaimer Privacy Policy About us Site Map

If you have any requirements, please contact webmaster。(如果有什么要求,请联系站长)
Copyright ©2011-
uuhomepage.com, Inc. All rights reserved.