I use bcp
to copy Sybase IQ table to sybase ASE server. Actually bcp
first creates some bulk file with extracdet sybase IQ table there, and after just loads that file to Sybase ASE. Is it the one and the best (considering accuracy, speed) way to do that?
Best way to move sybase IQ table to Sybase ASE
bcpmigrationsybase-asesybaseiq
Related Question
- Sybase ASE 12 – Common Questions and Solutions
- Sql-server – SQL query output to Sybase temp table
- Replication Server version 15.7.1 – Sybase ASE 15.5, how to change primary data server in RSSD
- Sybase ASE Replication – Problem Replicating IDENTITY Columns
- Lock a table in Sybase ASE 15.5
- SQL Server BCP – How to Load a Table Using BCP
- SYBASE ASE 16 – Map Login to User in Restored Database
Best Answer
IQ has the ability to output data directly from the data server to a local filesystem. It's faster than returning data over the network to a client tool. Create the output file that way, and then bulkcopy it into Sybase ASE using bcp -c :
This should produce a file that in a suitable format for bcp with the -c option. Be careful about tabs embedded in the data. I'm not sure if they'll be escaped.