Re: Importing directly from BCP files

Поиск
Список
Период
Сортировка
От Adrian Klaver
Тема Re: Importing directly from BCP files
Дата
Msg-id 564A2FCF.70708@aklaver.com
обсуждение исходный текст
Ответ на Re: Importing directly from BCP files  (Tim Uckun <timuckun@gmail.com>)
Ответы Re: Importing directly from BCP files  (Tim Uckun <timuckun@gmail.com>)
Список pgsql-general
On 11/16/2015 11:13 AM, Tim Uckun wrote:
> I don't see any documentation anywhere about the BCP format and as I
> said googling for "BCP format" gives a zillion links about the format
> files.   Every project on github just calls out the BCP command but I am
> on linux and that doesn't help me at all.
>
> Bummer.  This is going to be a huge pain to try and import these files.



On openSuSE 13.2

sudo zypper install freetds-tools

Ubuntu 14.04

sudo apt-get install freetds-bin

aklaver@killi:~> freebcp -h
usage:  freebcp [[database_name.]owner.]table_name {in | out} datafile
         [-m maxerrors] [-f formatfile] [-e errfile]
         [-F firstrow] [-L lastrow] [-b batchsize]
         [-n] [-c] [-t field_terminator] [-r row_terminator]
         [-U username] [-P password] [-I interfaces_file] [-S server]
         [-v] [-d] [-h "hint [,...]" [-O "set connection_option on|off,
...]"
         [-A packet size] [-T text or image size] [-E]
         [-i input_file] [-o output_file]

example: freebcp testdb.dbo.inserttest in inserttest.txt -S mssql -U
guest -P password -c

>
>


--
Adrian Klaver
adrian.klaver@aklaver.com


В списке pgsql-general по дате отправления:

Предыдущее
От: Tim Uckun
Дата:
Сообщение: Re: Importing directly from BCP files
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: Importing directly from BCP files