C#连接数据库时connectionStrings配置

<connectionStrings> 
<add name="ConnectionStringName" connectionString="Data Source=服务器名;Initial Catalog=数据库名;User ID=用户;Password=密码" providerName="System.Data.SqlClient" /> 
< /connectionStrings> 

posted @ 2019-11-01 07:28  凌心缘  阅读(5081)  评论(0编辑  收藏  举报