无法连接到SQL Server Management Studio

时间:2016-06-29 06:29:59

标签: sql-server

我正在尝试连接到SQL Server Management Studio。我的团队使用相同的细节并能够连接。我是团队的新手。 任何人都可以帮我连接吗?

编辑:事实证明,我无权更改防火墙设置等。我从老年人那里仔细检查过,他们告诉我们不需要更改此类设置。还有其他方法吗?什么一定出错?

编辑:Error popup on connecting ---这是我在连接时获得的弹出窗口。

Authentication Type ScreenShot ---其他一些细节。

我正在获取以下技术细节 -

===================================

Cannot connect to devsql17.mmm.com.1930.

===================================

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: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server) (.Net SqlClient Data Provider)

------------------------------
For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft%20SQL%20Server&EvtSrc=MSSQLServer&EvtID=53&LinkId=20476

------------------------------
Error Number: 53
Severity: 20
State: 0


------------------------------
Program Location:

   at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection)
   at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning()
   at System.Data.SqlClient.TdsParser.Connect(ServerInfo serverInfo, SqlInternalConnectionTds connHandler, Boolean ignoreSniOpenTimeout, Int64 timerExpire, Boolean encrypt, Boolean trustServerCert, Boolean integratedSecurity)
   at System.Data.SqlClient.SqlInternalConnectionTds.AttemptOneLogin(ServerInfo serverInfo, String newPassword, Boolean ignoreSniOpenTimeout, TimeoutTimer timeout, SqlConnection owningObject)
   at System.Data.SqlClient.SqlInternalConnectionTds.LoginNoFailover(ServerInfo serverInfo, String newPassword, Boolean redirectedUserInstance, SqlConnection owningObject, SqlConnectionString connectionOptions, TimeoutTimer timeout)
   at System.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist(SqlConnection owningObject, TimeoutTimer timeout, SqlConnectionString connectionOptions, String newPassword, Boolean redirectedUserInstance)
   at System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, Object providerInfo, String newPassword, SqlConnection owningObject, Boolean redirectedUserInstance)
   at System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection)
   at System.Data.ProviderBase.DbConnectionFactory.CreateNonPooledConnection(DbConnection owningConnection, DbConnectionPoolGroup poolGroup)
   at System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection)
   at System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory)
   at System.Data.SqlClient.SqlConnection.Open()
   at Microsoft.SqlServer.Management.SqlStudio.Explorer.ObjectExplorerService.ValidateConnection(UIConnectionInfo ci, IServerType server)
   at Microsoft.SqlServer.Management.UI.ConnectionDlg.Connector.ConnectionThreadUser()

非常感谢!!

2 个答案:

答案 0 :(得分:1)

上面的问题很老了,但我今天遇到了类似的问题。我能够在本地连接到 SQL,但无法从域内和域外连接。

SQL Server 必须通过“打开文件和打印机共享”连接到配置文件。

控制面板\网络和 Internet\网络和共享中心

或者,如果您尝试从公共网络连接,则必须在公共配置文件中连接。

尝试更新此设置,方法是将其网络连接到 Public 或更新“打开...以进行共享”。

答案 1 :(得分:0)

检查数据库服务器是否正在运行&如果是的话请检查防火墙。您必须向1433添加例外,以允许通过网络进行访问。并且确保在Sql Server配置管理器上启用了TCP / IP。

Enable Inbound and Outbound Rules To Open TCP Port 1433 For SQL Server 2012 instances

Configure Windows Firewall to Work with SQL Server