I need to extract the DDL for the indexes on a database via sql query. Can
this be done?