新聞中心
以下的文章主要向大家介紹的是MS SQL Server 連接字符串的實(shí)際操作,如果你對(duì)MS SQL Server 連接字符串的實(shí)際操作流程有興趣了解的話,你就可以通過以下的文章對(duì)其有更深的了解。

東豐ssl適用于網(wǎng)站、小程序/APP、API接口等需要進(jìn)行數(shù)據(jù)傳輸應(yīng)用場(chǎng)景,ssl證書未來市場(chǎng)廣闊!成為成都創(chuàng)新互聯(lián)公司的ssl證書銷售渠道,可以享受市場(chǎng)價(jià)格4-6折優(yōu)惠!如果有意向歡迎電話聯(lián)系或者加微信:028-86922220(備注:SSL證書合作)期待與您的合作!
字符串:
1、
- Data Source=.;uid=sa;pwd=wzb0227;Integrated Security=SSPI;Initial Catalog=Evaluation;Integrated Security=True
2、
- Data Source=(local);Initial Catalog=BarefootIndex0425;User Id=sa;Password=sa;Connect Timeout=180;Enlist=true;
- Pooling=true;Max Pool Size = 300;Min Pool Size = 5;Connection Lifetime=200;packet size=4096
其中:
[Data Source]:別名(Server、Address、Addr),如果是本地?cái)?shù)據(jù)庫且定義了實(shí)例名,則可以寫為"Server=(local)\實(shí)例名";如果是遠(yuǎn)程服務(wù)器,則將"(local)"替換為遠(yuǎn)程服務(wù)器的名稱或IP地址。
[Initial Catalog]:別名(Database)
[user id]:別名(uid)
[Password]:別名(pwd)
[Connect Timeout]:連接超時(shí)時(shí)間為30秒.
- [Enlist]
- [Pooling]
- [Max Pool Size]
- [Min Pool Size]
- [Connection Lifetime]
- [packet size]
- [Integrated Security]??
[Trusted_Connection]Windows登錄,如果你的MS SQL Server設(shè)置為Windows登錄,那么在這里就不需要使用"user id"和"password"這樣的方式來登錄,
而需要使用"Trusted_Connection=SSPI"來進(jìn)行登錄.
Integrated Security=SSPI與Trusted_Connection=SSPI的區(qū)別?
連接:http://www.cnblogs.com/wangzb/archive/2010/03/03/1677035.html
文章標(biāo)題:MSSQLServer連接字符串的實(shí)際操作簡(jiǎn)介
網(wǎng)頁網(wǎng)址:http://www.dlmjj.cn/article/dpsgdjd.html


咨詢
建站咨詢
