RE: BCP Format Files
From: Nigel Rivett (sqlnr_at_hotmail.com)
Date: 05/01/04
- Next message: Nigel Rivett: "RE: Server: Msg 8626, error on Insert Statement"
- Previous message: Narayana Vyas Kondreddi: "Re: Serious Deadlock Problem"
- In reply to: bc: "BCP Format Files"
- Next in thread: Vlad Vissoultchev: "Re: BCP Format Files"
- Reply: Vlad Vissoultchev: "Re: BCP Format Files"
- Messages sorted by: [ date ] [ thread ]
Date: Sat, 1 May 2004 00:31:02 -0700
Don't think I have ever used a format file for an extract.
bcp will take a query and you can use that to format the data.
You can also build up the extract in a glabal temp table with a single character column and extract that.
If you are doing a lot of these you might want to hold the structure and source of the output in metadata in tables so that the extract is a single SP for all extracts and a new extract is just a mater of adding data to the tables.
I have a metod of doing this for import here
http://www.nigelrivett.net/MoveImportData.html
the export is a lot simpler as you don't have to split rows into separate tables.
- Next message: Nigel Rivett: "RE: Server: Msg 8626, error on Insert Statement"
- Previous message: Narayana Vyas Kondreddi: "Re: Serious Deadlock Problem"
- In reply to: bc: "BCP Format Files"
- Next in thread: Vlad Vissoultchev: "Re: BCP Format Files"
- Reply: Vlad Vissoultchev: "Re: BCP Format Files"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|