以下bcp命令给我一个错误。我的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
我做错了什么?
答案 0 :(得分:0)
两个工作之后,第一个没有本机数据类型,第二个本地数据类型(如果有人想使用,这是首选)
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