bat*_*ver 5 linux cloud amazon-web-services redhat-enterprise-linux
我使用的平台和软件版本如下:
Red Hat Enterprise Linux Server release 7.4 (Maipo)
Microsoft SQL Server 2017 (RTM-CU3-GDR) (KB4052987) - 14.0.3015.40 (X64)
Dec 22 2017 16:13:22
Copyright (C) 2017 Microsoft Corporation Express Edition (64-bit) on
Windows Server 2012 R2 Standard 6.3 <X64> (Build 9600:) (Hypervisor)
Run Code Online (Sandbox Code Playgroud)
我在谷歌上搜索了很多答案,但还没有找到任何解决方案。我无法RDS instance having MS SQL instance
通过 Linux 连接。
它显示以下错误如果我尝试:
[ec2-user@ip-~]$ sqlcmd -H mssqldb.xxxxxxxxxxxxxx.com -P 1433
-U userXXXXX -P aXXXXXX
-Q 'SELECT TOP 1 [n] FROM [dbbase2].[dbo].[table_people]'
Sqlcmd: Error: Microsoft ODBC Driver 17 for SQL Server :
Login timeout expired.
Sqlcmd: Error: Microsoft ODBC Driver 17 for SQL Server :
TCP Provider: Error code 0x2749.
Sqlcmd: Error: Microsoft ODBC Driver 17 for SQL Server :
A network-related or instance-specific error has occurred while
establishing a connection to SQL Server. The server is not found
or not accessible. Check if instance name is correct and if SQL
Server is configured to allow remote connections. For more
information see SQL Server Books Online.
[ec2-user@ip- ~]$ Check if instance name is correct and if SQL Server is
configured to allow remote connections.
Run Code Online (Sandbox Code Playgroud)
有人可以告诉一下问题和解决方案吗?
谢谢。
小智 0
查看
telnet mssqldb.xxxxxxxxxxxxxx.com 1433
Run Code Online (Sandbox Code Playgroud)
应该打开到端口的连接。
确保默认实例存在(不是命名实例),否则在命令中提供实例名称。
归档时间: |
|
查看次数: |
9842 次 |
最近记录: |