Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing -o option on Mac #17

Open
jseabold opened this issue Apr 3, 2020 · 2 comments
Open

Missing -o option on Mac #17

jseabold opened this issue Apr 3, 2020 · 2 comments

Comments

@jseabold
Copy link

jseabold commented Apr 3, 2020

I don't have the -o option, so this throws an error.

| $ bcp -h
usage: bcp {dbtable | query} {in | out | queryout | format} datafile
  [-m maxerrors]            [-f formatfile]          [-e errfile]
  [-F firstrow]             [-L lastrow]             [-b batchsize]
  [-n native type]          [-c character type]      [-w wide character type]
  [-N keep non-text native] [-q quoted identifier]
  [-t field terminator]     [-r row terminator]
  [-a packetsize]           [-K application intent]
  [-S server name or DSN if -D provided]             [-D treat -S as DSN]
  [-U username]             [-P password]
  [-T trusted connection]   [-v version]             [-R regional enable]
  [-k keep null values]     [-E keep identity values]
  [-h "load hints"]         [-d database name]
| $ bcp -v
BCP - Bulk Copy Program for Microsoft SQL Server.
Copyright (C) Microsoft Corporation. All Rights Reserved.
Version: 17.5.0002.1
@mikealfare
Copy link
Member

Hmm, I find it interesting that MS would change the API in that way, either by OS or by version. Apparently this is only supported on Windows then. Also, it looks like you have version 17 of BCP, whereas Microsoft lists version 15 as their current release according to their docs. I'll add the specific version of BCP and that this is limited to Windows (for now) to the README.md so that it's explicit. I'll keep this issue open as a backlog item in the future.

@jseabold
Copy link
Author

jseabold commented Apr 3, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants