Script the a complete Sybase database

949 Views Asked by At

We are using Sybase 8 and Sybase 16 databases in our current project. I have a requirement where I need to script the a complete Sybase database(with some built-in data in certain tables) with Sybase scripting tools. For example, if I run a Sybase script, it would create a Sybase database for me. I tried using the combination of Dbunload (to create a dump), dbinit (to create a new db) and dbisql (to add data to database) commands but am not able to get at it. Require help regarding this from any Sybase db administrator in this forum.Thanks.

1

There are 1 best solutions below

2
Adam Leszczyński On

If you want to use a complete tool to generate the DDLs then you can use PowerDesigner for example.

If you want to write your own scripts in T-SQL or Watcom SQL what create the DDL scripts then you can also do this. All information about table schema is available in system tables. The full description of columns is also available in the documentation of SQL Anywhere.