问题
How do I extract DDL, Stored Procedures (SP) and other database scripts from Sybase ASE.
回答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.
回答2:
You can use sp_helptext to show the DDL.
来源:https://stackoverflow.com/questions/15081975/extract-sp-and-ddl-scripts-in-sybase-server