Can Sql Server BULK INSERT read from a named pipe/fifo?

后端 未结 4 1911
北恋
北恋 2021-01-02 17:53

Is it possible for BULK INSERT/bcp to read from a named pipe, fifo-style?

That is, rather than reading from a real text file, can BULK INSERT/bcp be made to read fro

4条回答
  •  执念已碎
    2021-01-02 18:17

    Does BCP accept STDIN? If so, you might want to try just piping it straight through without creating a named pipe...for instance:

    gunzip authors.txt.gz | bcp schema.tablename
    

提交回复
热议问题