.net2005数据库连接字符串
<connectionStrings>
<remove name="LocalSqlServer"/>
<add name="Connection String" connectionString="server=服务器地址;Initial Catalog=数据库名;User ID=用户名;Password=密码" providerName="System.Data.SqlClient"/>
</connectionStrings>
.net2003数据库连接字符串
<connectionStrings>
<add name="Connection String" connectionString="Data Source=服务器地址;Initial Catalog=数据库名; Persist Security Info=true; User ID=用户名;Password=密码" providerName="System.Data.SqlClient"/>
</connectionStrings>
.net2005带端口号的数据库连接字符串
<connectionStrings>
<add name="Connection String" connectionString="server=服务器地址,端口号;Initial Catalog=数据库名;User ID=用户名;Password=密码" providerName="System.Data.SqlClient"/>
</connectionStrings>