select into

An Adaptive Server with a 2K page configuration cannot be automatically upgraded to a 4K, 8K, or 16K configuration, nor can the dump and load backup facilities provide this upgrade through the Backup Server. Instead, data (and metadata) must be transferred, or migrated, from one server to another. To accomplish this task, use the ddlgen feature of Sybase Central™ for Adaptive Server. Adaptive Server fully supports DDL, and enables the transfer of server schema and configuration data from one server to another. In addition, a migration tool serves as a driver for the data transfer.

Once metadata has been transferred from one server to another, the migration tool is used to coordinate the data transfer. Create proxy tables at the source server for each table on the target server, and then execute a select into statement to effect the transfer from the source table, which is on local disk, to the target, which is a proxy table referencing the target server.

To facilitate this process, three significant changes to the manner in which the select into command is executed have been made:

To achieve performance levels required, the bulk interface currently in use by Component Integration Services has been modified to support bulk insert array binding. This allows Component Integration Services to buffer a specified number of rows in local memory, and transfer them all with a single bulk transfer command. An Adaptive Server configuration property has been implemented to specify the size of the bulk insert array:

sp_configure “cis bulk insert array size”, no

where n is an integer value greater than 0. The default is 50.

Set commands can override this behavior: