连接串样式

<appSettings>   <add key="Domain" value=""/>  </appSettings>  <connectionStrings>   <add name="ConnStr" connectionString="Data Source=192.168.10.10;Initial Catalog=bjeis;User ID=sa;Password=SDlezfL2NGG2vBQ;Pooling=true;Max Pool Size=500;" providerName="System.Data.SqlClient"/>  </connectionStrings>

 

2、连接串样式

A:Provider=SQLOLEDB.1; Persist Security Info=False; User ID=用户名; Password=密码; Initial Catalog=数据库; Data Source=服务器

B:Server=服务器;DataBase=数据库;UID=用户名;PWD=密码

posted @ 2011-11-03 16:18  勇气  阅读(126)  评论(0编辑  收藏  举报