2016-07-07 7 views
0

Der folgende Befehl bcp wirft mich einen Fehler.Meine SQL-Serverinstanz ist in AWS RDS. Einzelheitenbcp comand Fehler SQLState = 08001, NativeError = -1

bcp.exe [dbname].[schema].[Tablename] out C:\BCP_OUT\TableName.dat -T -c -U MyUser -P MyPassword -S MyServer\dbname 

Fehler:

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 

Was mache ich falsch?

Antwort

0

beide folgend arbeitete zunächst eine ohne nativen Datentypen und zweite mit nativen Datentypen (dies obwohl bevorzugt wird, wenn irgend jemand verwenden möchte)

bcp.exe [dbname].[schema].[Tablename] out C:\BCP_OUT\TableName.dat -c -U MyUser -P MyPassword -S MyServer 

(oder)

bcp.exe [dbname].[schema].[Tablename] out C:\BCP_OUT\TableName.dat -U MyUser -P MyPassword -S MyServer -n 
Verwandte Themen