Click here to Skip to main content
15,892,537 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi,
can any one help me to get the ddl of the already existing table and index in sybase.
we can use

SQL
SELECT c.text From syscomments c, sysobjects o Where o.id=c.id and o.name=@procname Order By c.colid


to get the Scripts for triggers, procedures and view.. but for table it is not working. is there any system procedures available for table and index?

Thank you in advance
Posted
Updated 28-Feb-13 1:11am
v2

1 solution

Try this:
SQL
SELECT *
FROM   sys.sql_modules sm
WHERE  sm.definition LIKE '%ObjectName%'
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900