Hi All,
Can we use BCP to be loaded in Sequential Files. If yes how can we do it.
I see only options to a SQL Server.
Thanks
Krishna
Can we use a BCP Load to load data into Sequential Files
Moderators: chulett, rschirm, roy
Re: Can we use a BCP Load to load data into Sequential Files
How would you bulk load to a sequential filesck wrote:Hi All,
Can we use BCP to be loaded in Sequential Files. If yes how can we do it.
I see only options to a SQL Server.
Thanks
Krishna
![Wink :wink:](./images/smilies/icon_wink.gif)
Bulk loaders usually take a sequential file and dump it into a database by sidestepping a lot of database checks, temporarily dropping indexes, ... For simple sequential files no such thing exists or would be needed.
Just use a sequential stage.
Ogmios
-
- Premium Member
- Posts: 67
- Joined: Wed Apr 14, 2004 11:33 am
Re: Can we use a BCP Load to load data into Sequential Files
natively in sql server and sybase you used to be able to use bcp with a -out parameter and it would unload tables. It can be handy, when needed.ogmios wrote:How would you bulk load to a sequential filesck wrote:Hi All,
Can we use BCP to be loaded in Sequential Files. If yes how can we do it.
I see only options to a SQL Server.
Thanks
Krishna?
Bulk loaders usually take a sequential file and dump it into a database by sidestepping a lot of database checks, temporarily dropping indexes, ... For simple sequential files no such thing exists or would be needed.
Just use a sequential stage.
Ogmios
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
But then you wouldn't need DataStage.
You could, of course, use DataStage to trigger the bcp -out command if needed as part of something larger. But why not use the graphical design paradigm; SELECT from your SQL Server table and write to a file through a Sequential File stage.
A Sequential File stage is the fastest of all DataStage stage types.
![Confused :?](./images/smilies/icon_confused.gif)
You could, of course, use DataStage to trigger the bcp -out command if needed as part of something larger. But why not use the graphical design paradigm; SELECT from your SQL Server table and write to a file through a Sequential File stage.
A Sequential File stage is the fastest of all DataStage stage types.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.