2016-07-07 93 views
0

以下bcp命令向我發送一個錯誤。我的Sql服務器實例位於AWS RDS上。bcp comand錯誤SQLState = 08001,NativeError = -1

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

繼雙方的工作,第一個沒有原生數據類型和第二個與原始數據類型(這是最好不過,如果任何人想要使用)

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