If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Unanswered: Bcp

I'm trying to use the bcp utility to copy table data to a text file. I've done it for TABLE A with a file name "test.txt". Now I want to add to this txt file the data from TABLE B, without erasing the info I already have in the txt file.

Do they have the same number of columns? Same relative datatypes by column?

You could create a VIEW and bcp that out....

No, the tables are not identical, but since I'm saving the data to a text file I thought that wouldn't be a problem...
Here's my situtation: I have about 8 tables (CLIENTS, PRODUCTS, INVENTORY_TRANSACTIONS, ETC.) that need to be converted to a single text file (as shown in the attachment). All the tables have different number columns, datatypes, etc. I have tried DTS and BCP but, as I explained before, they can only convert from one table at a time to different file names.