Advertisement
Guest User

Untitled

a guest
Sep 26th, 2016
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.27 KB | None | 0 0
  1. bcp fully_qualified_table_name out ./data.txt -c -S server -U user -P password
  2.  
  3. usage: /opt/microsoft/bin/bcp {dbtable | query} {in | out | queryout | format} datafile
  4. [-m maxerrors] [-f formatfile] [-e errfile]
  5. [-F firstrow] [-L lastrow] [-b batchsize]
  6. [-n native type] [-c character type] [-w wide character type]
  7. [-N keep non-text native] [-q quoted identifier]
  8. [-t field terminator] [-r row terminator]
  9. [-a packetsize] [-K application intent]
  10. [-S server name or DSN if -D provided] [-D treat -S as DSN]
  11. [-U username] [-P password]
  12. [-T trusted connection] [-v version] [-R regional enable]
  13. [-k keep null values] [-E keep identity values]
  14. [-h "load hints"] [-d database name]
  15.  
  16. BCP - Bulk Copy Program for Microsoft SQL Server.
  17. Copyright (C) Microsoft Corporation. All Rights Reserved.
  18. Version: 11.0.2270.0
  19.  
  20. Microsoft SQL Server 2012 - 11.0.5058.0 (X64)
  21. May 14 2014 18:34:29
  22. Copyright (c) Microsoft Corporation
  23. Enterprise Edition: Core-based Licensing (64-bit) on Windows NT 6.3 <X64> (Build 9600: ) (Hypervisor)
  24.  
  25. Red Hat Enterprise Linux 6.7 (KornShell).
  26.  
  27. bcp THAT_TUB_ACE.oh_nerd.table_name out ./data.txt -c -S sr._bear -U you_sr. -P pass_sword
  28.  
  29. SQLState = S1T00, NativeError = 0
  30. Error = [unixODBC][Microsoft][ODBC Driver 11 for SQL Server]Login timeout expired
  31. SQLState = 08001, NativeError = 11001
  32. Error = [unixODBC][Microsoft][ODBC Driver 11 for SQL Server]A network-related or instance-specific error has occurred while establishing a connection to SQL Server. 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.
  33. SQLState = 08001, NativeError = 11001
  34. Error = [unixODBC][Microsoft][ODBC Driver 11 for SQL Server]TCP Provider: Error code 0x2AF9
  35.  
  36. bcp fully_qualified_table_name ./data.txt -c -S valid_server -U valid_user -P bad_word
  37.  
  38. bcp fully_qualified_table_name out ./data.txt -c -S valid_server -U valid_user -P bad_word
  39. SQLState = 28000, NativeError = 18456
  40. Error = [unixODBC][Microsoft][ODBC Driver 11 for SQL Server][SQL Server]Login failed for user 'valid_user'.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement