Anyone have the specification for the output of BCP in native? I would like to generate a BCP-able file from a C++ service. I don't want to put the data in a database and then BCP. I want to create files that are equivalent to the output of a BCP comment that I can then use BCP to input to a database (SQL 6.5 or 7.0 in the future).

From binary dumps of the data it looks pretty simple, what is missing is a description of what a 'datetime' is (8 bytes of what?) and what terminators between rows and at the end of a rowset.

???

/harry