1

How do I extract DDL, Stored Procedures (SP) and other database scripts from Sybase ASE.

Danny Beckett
  • 20,529
  • 24
  • 107
  • 134
antosnowin
  • 221
  • 2
  • 6
  • 13

2 Answers2

1

You can use sp_helptext to show the DDL.

Iswanto San
  • 18,263
  • 13
  • 58
  • 79
  • Yeah tried..But formatting is not proper with sp_helptext. Also any command available to extract DDL script ? – antosnowin Feb 26 '13 at 11:07
1

Look into the ddlgen utility included with sybase, ususally found in the Sybase Central directory, or the $SYBASE/ASEP/bin. This should be able to generate scripts to create all of the database objects including user-defined datatypes (UDD), indexes, stored procedures, etc.

Mike Gardner
  • 6,611
  • 5
  • 24
  • 34