web.config的数据库连接字符串写法与取法
2009-05-20 05:17
323 查看
<connectionStrings> <add name="Shop" connectionString="Server=10.245.113.97;Database=mall3;User id=sa;Password=;" providerName="System.Data.SqlClient"/> </connectionStrings>
SqlConnection conn = new SqlConnection(System.Configuration.ConfigurationManager.ConnectionStrings["Shop"].ConnectionString);
相关文章推荐
- 关于sql access excel以及在web.config中数据库连接字符串的写法
- web.config connectionStrings 数据库连接字符串的解释(转载)
- web.config connectionStrings 数据库连接字符串的解释
- asp.net 2.0 中使用web.config存储数据库连接字符串
- c#读取到web.config里的数据库连接字符串
- web开发时读取web.config中的数据库连接字符串的方法
- 为web.config写入数据库连接字符串的方法
- ASP在 Web.config 中创建数据库连接字符串
- 数据库的连接字符串web.config配置及读取
- webConfig的设置和数据库连接字符串
- ORM读取web.config中的数据库连接字符串
- ASP.NET SqlDataSource中使用web.config 共享数据库连接字符串(详细)
- Acess数据库连接字符串如何存放在Web.config中?
- web.config 保存(Access)数据库连接字符串的两种方法
- .net中 获得web.config 中连接数据库字符串
- Asp.net中Web.config连接字符串及配置数据库sqlserver
- 不同数据库下的web.config中数据库连接字符串
- webconfig中配置各种数据库的连接字符串
- web.config connectionStrings 数据库连接字符串的解释(转载)
- Web.Config中数据库连接字符串解析