Sybase ddlgen tool used to extract the creation script for any server-level or database level object. This is OS level command.
Syntax:
ddlgen
-Ulogin
-Ppassword
-S[[ssl:]server | host_name : port_number]
[-I interfaces_file]
[-Tobject_type]
[-Nobject_name]
[-Ddbname]
[-Xextended_object_type]
[-Ooutput_file]
[-Eerror_file]
[-Lprogress_log_file]
[-Jclient_charset]
[-LC -N logical_cluster_name
-F[ % | SGM | GRP | USR | R | D | UDD | U | V |
P | XP | I | RI | KC | TR | PC ]
Examples:
ddlgen -Usa -TU -Nstudent -Dk2schools -Sk2PRD1
Output: