SQL Server Not Connectig来自另一个系统 [英] SQL Server Not Connectig from another system

查看:150
本文介绍了SQL Server Not Connectig来自另一个系统的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的系统已通过无线网络连接。我想从其他系统访问数据库,如何编写连接字符串。

请帮助我... < br $>




建立与SQL Server的连接时发生网络相关或特定于实例的错误。服务器未找到或无法访问。验证实例名称是否正确,以及SQL Server是否配置为允许远程连接。 (提供商:TCP提供商,错误:0 - 连接尝试失败,因为连接方在一段时间后没有正确响应,或者建立的连接失败,因为连接的主机未能响应。)




我正面临这个错误...





My system has been connected by the wireless network.I want access database from another system, how to write the connection string.
Please Help me ...


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: TCP Provider, error: 0 - A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.)


I am facing this error...


<connectionStrings >
   <add name="myConnectionString" connectionString="Server=192.168.11.4,1433;Database=Employee;User ID=sa;Password=12345;Trusted_Connection=False;" providerName="System.Data.SqlClient"/>
 </connectionStrings>

推荐答案

使用IP地址






Sqlserver中的
use IP Address



in Sqlserver


您是如何安装SQL Server数据库的?检查安装时是否使用了混合模式身份验证。在混合模式身份验证中,使用sa作为用户名并提供所需的密码。



连接字符串为



How did you installed your SQL Server database? Check whether you have used Mixed Mode Authentication while installation. In mixed mode authentication use 'sa' as User Name and give your desired password.

Connection string for this would be

<configuration>
  <connectionStrings>
    <add name="conn" connectionString="Server=myServerName\SQLEXPRESS;Database=myDataBase;User Id=myUsername; Password=myPassword;" providerName="System.Data.SqlClient"/>
  </connectionStrings>
</configuration>





还要检查服务器计算机上是否存在可能阻止与数据库连接的任何防火墙设置。



Also check for any firewall setting present on server machine which may prevent connection to your database.


SQL Server连接字符串 - ConnectionStrings.com [ ^ ]



如果您在连接方面遇到任何问题,请检查此

SQL Server connection strings - ConnectionStrings.com[^]

If you face any issue on connection side, check this
从链接 [ ^ ]:

基本上,当您无法连接到SQL Server时,问题可能是:

1)网络问题,

2)SQL Server配置问题。

3)防火墙问题,

4)客户端驱动程序问题,

5)应用程序配置问题。

6)身份验证和登录问题。

Basically, when you failed to connect to your SQL Server, the issue could be:
1) Network issue,
2) SQL Server configuration issue.
3) Firewall issue,
4) Client driver issue,
5) Application configuration issue.
6) Authentication and logon issue.

检查这些

解决SQL连接问题的步骤 [ ^ ]

SQL Server 2005连接问题疑难解答 - 第一部分 [ ^ ]

解决连接问题SQL Server 2005 - 第二部分 [ ^ ]

解决SQL Server 2005中的连接问题 - 第III部分 [ ^ ]

Check these
Steps to troubleshoot SQL connectivity issues[^]
SQL Server 2005 Connectivity Issue Troubleshoot - Part I[^]
Troubleshoot Connectivity Issue in SQL Server 2005 - Part II[^]
Troubleshoot Connectivity Issue in SQL Server 2005 - Part III[^]


这篇关于SQL Server Not Connectig来自另一个系统的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆