Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 Import/Export (DTS) and Replication (2000)
 File header information using BCP utility!!

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2004-01-07 : 08:02:33
Rami writes "Dear all,


I am designing a system where I'm using bcp utility to transfer data between servers.

I wish to find a way to include data describing the generated bcp file. In other words, I want to include file header information, in any way!

Example: I wanna include information about the system users creating the file, descriptive information, times, some flags and so forth.

Any idea? any example!?

Help needed here guys.. there might not be a direct answers, so get ur brains working gents ::)

Thanks!"

robvolk
Most Valuable Yak

15732 Posts

Posted - 2004-01-07 : 08:04:04
You can try a variation of the technique listed here:

http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=9336

You would need to output the header information to a separate file, then output the data to another file, then use the copy command to append the data to the header file.
Go to Top of Page
   

- Advertisement -