我无法连接到远程服务器上的SQL

我无法连接到远程服务器上的SQL

本文介绍了我无法连接到远程服务器上的SQL Server 2008的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试连接到我的SQL Server,但我一直收到此错误:



建立连接时发生网络相关或特定于实例的错误到SQL Server。服务器未找到或无法访问。验证实例名称是否正确,以及SQL Server是否配置为允许远程连接。 (提供者:SQL网络接口,错误:26 - 查找指定的服务器/实例时出错)(。Net SqlClient数据提供者)







这是我的连接字符串

I am Trying to connect to my SQL Server but i am keep getting this error:

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) (.Net SqlClient Data Provider)



This is my Connection String

<connectionStrings>
 <add name="myDB"
      providerName="System.Data.SqlClient"
      connectionString="Server=Usman-PC\SQLExpress; Database=myDB; Integrated Security=True;"/>
</connectionStrings>





我有谷歌解决方案并尝试了很多东西,但一直收到这个错误。

我正在开发帐户应用程序,现在是时候在生产服务器上进行部署了。请帮我一些身体。



以下是我的设置

计算机名称:Usman-PC

工作组: USMAN-SERVER

地址:192.168.0.1



服务器名称:Usman-PC\SQLExpress

实例名称:SQLEXPRESS



我的尝试:



我有查看服务器属性中的连接设置,它们很好。

我也检查过并且服务器正在运行。

我也启用了TCP / IP并将端口设置为1433 。

我还在防火墙中为端口1433添加了新规则。



我也可以在两台计算机之间传输文件。



I have google for solution and tried many things but keep getting this error.
I was developing accounts app and now it is time for deployment on production server. Please Help me some Body.

Below is my settings
Computer name: Usman-PC
WorkGroup: USMAN-SERVER
Ip address: 192.168.0.1

Server Name: Usman-PC\SQLExpress
Instance Name: SQLEXPRESS

What I have tried:

I have looked at connection setting in Server Properties and they are good.
I also have checked and server is running.
I also have enabled TCP/IP and set the port to 1433.
I also have added new rule for port 1433 in firewall.

I am also able to transfer files between both computers.

推荐答案


这篇关于我无法连接到远程服务器上的SQL Server 2008的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-14 00:22