-1

I am using the ddlgen tool to get DDLs or whole databases. Now I need to re-generate databases into another location (structure only).

Can anyone help me to re-create database schema in another location?

Nathaniel Ford
  • 20,545
  • 20
  • 91
  • 102
Mamta Vyas
  • 93
  • 1
  • 2
  • 9

1 Answers1

1

ddlgen creates sql scripts

To recreate your database structure, just run the scripts in the correct order against your new system.

isql -Uusername -Sservername -iDDLGenScript.sql

If you have multiple scripts, then this is the recommended order from the SAP ASE Documentation

  1. Segment
  2. Group
  3. User
  4. Rules
  5. Defaults
  6. UDDs
  7. Encrypted Keys
  8. User Tables
  9. Proxy Tables
  10. Triggers
  11. Functions and Views
    1. All functions without any dependency
    2. All views without any dependency
    3. All functions and all views with any dependency on any objects
  12. Instead of trigger
  13. Stored Procedures
  14. Extended Stored Procedures
  15. PRS
  16. User Defined Web Services
Mike Gardner
  • 6,611
  • 5
  • 24
  • 34