bcp 命令错误 SQLState = 08001,NativeError = -1
bcp comand error SQLState = 08001, NativeError = -1
以下 bcp 命令向我抛出一个 error.My Sql 服务器实例在 AWS RDS 上。
bcp.exe [dbname].[schema].[Tablename] out C:\BCP_OUT\TableName.dat -T -c -U MyUser -P MyPassword -S MyServer\dbname
错误详情:
Error : SQLState = 08001, NativeError = -1
Error = [Microsoft][SQL Server Native Client 11.0]SQL Server Network Interfaces:
Error Locating Server/Instance Specified [xFFFFFFFF].
SQLState = 08001, NativeError = -1
Error = [Microsoft][SQL Server Native Client 11.0]A network-related or instance-
specific error has occurred while establishing a connection to SQL Server. Serve
r is not found or not accessible. Check if instance name is correct and if SQL S
erver is configured to allow remote connections. For more information see SQL Se
rver Books Online.
SQLState = S1T00, NativeError = 0
Error = [Microsoft][SQL Server Native Client 11.0]Login timeout expired
我做错了什么?
以下两个都有效,第一个没有本机数据类型,第二个有本机数据类型(不过,如果有人想使用,这是首选)
bcp.exe [dbname].[schema].[Tablename] out C:\BCP_OUT\TableName.dat -c -U MyUser -P MyPassword -S MyServer
(或)
bcp.exe [dbname].[schema].[Tablename] out C:\BCP_OUT\TableName.dat -U MyUser -P MyPassword -S MyServer -n
以下 bcp 命令向我抛出一个 error.My Sql 服务器实例在 AWS RDS 上。
bcp.exe [dbname].[schema].[Tablename] out C:\BCP_OUT\TableName.dat -T -c -U MyUser -P MyPassword -S MyServer\dbname
错误详情:
Error : SQLState = 08001, NativeError = -1
Error = [Microsoft][SQL Server Native Client 11.0]SQL Server Network Interfaces:
Error Locating Server/Instance Specified [xFFFFFFFF].
SQLState = 08001, NativeError = -1
Error = [Microsoft][SQL Server Native Client 11.0]A network-related or instance-
specific error has occurred while establishing a connection to SQL Server. Serve
r is not found or not accessible. Check if instance name is correct and if SQL S
erver is configured to allow remote connections. For more information see SQL Se
rver Books Online.
SQLState = S1T00, NativeError = 0
Error = [Microsoft][SQL Server Native Client 11.0]Login timeout expired
我做错了什么?
以下两个都有效,第一个没有本机数据类型,第二个有本机数据类型(不过,如果有人想使用,这是首选)
bcp.exe [dbname].[schema].[Tablename] out C:\BCP_OUT\TableName.dat -c -U MyUser -P MyPassword -S MyServer
(或)
bcp.exe [dbname].[schema].[Tablename] out C:\BCP_OUT\TableName.dat -U MyUser -P MyPassword -S MyServer -n