gpt4 book ai didi

asp.net - Web.config 中连接字符串的数据源

转载 作者:行者123 更新时间:2023-12-02 21:56:51 25 4
gpt4 key购买 nike

我想知道 Web.config 中连接字符串的数据源应该是什么

My SQL 数据库资源管理器看起来像 198.57.59.70(SQL Server 10.50.1600 - RAM\ServerAdmin),在它下面我有数据库。当我使用它时,我得到数据库的网络不存在。当我使用 Data Source=198.57.59.70 时,出现错误“System.Data.SqlClient.SqlException:用户“RAM\IWPD_3”登录失败这是在Windows server 2008中的asp.net 3.5中进行部署的。谢谢!

谁能指导一下,谢谢!!

<connectionStrings>
<add name="ConnectionString" connectionString="Data Source=198.57.59.70(SQL Server 10.50.1600 - COMM\ServerAdmin);Initial Catalog=Tracking;Integrated Security=SSPI;" providerName="System.Data.SqlClient"/>
</connectionStrings>

最佳答案

对我来说,连接字符串可能很难记住。手动写的话很容易出错。一种建议是使用服务器资源管理器连接到数据库。然后右键单击数据库图标>选择属性...您将看到连接字符串复制和粘贴。 瞧!

如果仍有问题,请删除集成安全设置

服务器资源管理器:

enter image description here

属性:

enter image description here

关于asp.net - Web.config 中连接字符串的数据源,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17606980/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com