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?
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?
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
- Segment
- Group
- User
- Rules
- Defaults
- UDDs
- Encrypted Keys
- User Tables
- Proxy Tables
- Triggers
- Functions and Views
- All functions without any dependency
- All views without any dependency
- All functions and all views with any dependency on any objects
- Instead of trigger
- Stored Procedures
- Extended Stored Procedures
- PRS
- User Defined Web Services