经过几轮测试
<add key="ConnectionString" value="server=127.0.0.1;Integrated Security=True;database=Commerce" />
如果将server=localhost,系统会提示找不到sqlserver
还有在webconfig加入如下信息
<authentication mode="Windows" />
<identity impersonate="true" />
本文记录了在Web应用程序中配置SQL Server数据库连接的过程。作者通过几轮测试发现,使用localhost作为服务器地址会导致系统无法找到SQL Server的问题,并给出了正确的配置方法。此外,还介绍了如何在web.config文件中设置身份验证模式及模拟身份。
经过几轮测试
<add key="ConnectionString" value="server=127.0.0.1;Integrated Security=True;database=Commerce" />
如果将server=localhost,系统会提示找不到sqlserver
还有在webconfig加入如下信息
<authentication mode="Windows" />
<identity impersonate="true" />

被折叠的 条评论
为什么被折叠?