如何使用MSSQL2005连接远程服务器IP?
我的 mssql2005 数据库提供程序提供了以下详细信息
Server IP : 100.20.255.34
Databaase name : insss
User: nas0
password : ymkv45SEv
,我的离线站点的 web.config 文件中有以下连接字符串:
<add name="ConnectionString" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\ASPNETDB.MDF;Integrated Security=True;User Instance=True" providerName="System.Data.SqlClient"/>
我想
如何使用上面提到的编辑我的 web.config 连接字符串上面提供了详细信息,以便它连接到我的 MSSQl2005 托管提供商....?
我不知道如何编辑连接字符串来做到这一点!
当我运行我的网站 www.vbi.volvobusesindia.com 时,在顶部出现以下错误该页面...
建立与 SQL Server 的连接时发生与网络相关或特定于实例的错误。找不到服务器或无法访问服务器。验证实例名称是否正确以及 SQL Server 是否配置为允许远程连接。 (提供程序:SQL 网络接口,错误:26 - 定位指定的服务器/实例时出错)建立与 SQL Server 的连接时发生网络相关或特定于实例的错误。找不到服务器或无法访问服务器。验证实例名称是否正确以及 SQL Server 是否配置为允许远程连接。 (提供程序:SQL 网络接口,错误:26 - 定位指定的服务器/实例时出错)
I have a following details provided by our mssql2005 database provider
Server IP : 100.20.255.34
Databaase name : insss
User: nas0
password : ymkv45SEv
i have the following connectionstring in my web.config file in my offline site as :
<add name="ConnectionString" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\ASPNETDB.MDF;Integrated Security=True;User Instance=True" providerName="System.Data.SqlClient"/>
I want
how to edit my web.config connection string mentioned above using the details provided above so that it connect to my MSSQl2005 hosting provider .... ?
I don't know how to edit connection string to do that !!
When i run my site www.vbi.volvobusesindia.com then the following error occurs in top of the page ...
A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这应该可以正常工作:
This should work just fine: