Using bcp to Migrate Data

If you use DDL scripts to create devices, databases, tables, rules, stored procedures, triggers, and views, you can use bcp to migrate data from a 32-bit SAP ASE to a 64-bit SAP ASE.

If you:
  • Do not have DDL scripts, use the ddlgen utility to re-create the schema for the SAP ASE you are about to migrate. See the Utility Guide.
  • Have DDL scripts to create devices, databases, tables, rules, stored procedures, triggers, and views, you can use bcp to move data out of the old database and into the new.
  1. In the 32-bit SAP ASE, run dbcc checks (checkdb, checkalloc, checkcatalog, and checkstorage) on all databases in the 32-bit SAP ASE to ensure they are error free.
  2. Use bcp to extract all the data from all the tables in the databases.
  3. Create a new 64-bit SAP ASE in a new directory.
  4. Create devices, databases, and tables.
  5. Use bcp to bulk copy data into tables.
  6. Re-create all views, triggers, and stored procedures.
  7. Run dbcc checks on the 64-bit SAP ASE server and make sure they run cleanly.