web.config连接字符串 - 如何在此文件的一侧设置连接字符串 [英] web.config connection string - how to set connection string in side of this file
本文介绍了web.config连接字符串 - 如何在此文件的一侧设置连接字符串的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
</appSettings>
<connectionStrings>
<add name="Local" connectionString="Data Source=172.16.0.22;Initial Catalog=GQMS;User ID=dbdeveloper;Password=maha@123" providerName="System.Data.SqlClient"/>
</connectionStrings>
<system.web>
推荐答案
就像这样。 :)
name =Local - 这是你的连接字符串的名称。
数据Source = 172.16.0.22 - 您的SQL服务器名称。
初始目录= GQMS - 您的数据库名称。
请阅读以获取更多信息: SQL Server连接字符串对于ASP.NET Web应用程序
It's like this. :)
name="Local" - This is the name for your connection string.
Data Source=172.16.0.22 - Your SQL server name.
Initial Catalog=GQMS - Your Data base name.
Please read this for more info : SQL Server Connection Strings for ASP.NET Web Applications
这篇关于web.config连接字符串 - 如何在此文件的一侧设置连接字符串的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文