bschechter
IS-IT--Management
Ladies and Gentlemen,
We want to drop and recreate indexes in powerscript using SYBASE ASE 12.0, but we are having problems with the drop side.
We can create them using:
ls_sql = "CREATE INDEX index1 on dba.table1"
EXECUTE IMMEDIATE :ls_sql;
However the drop SQL does not work:
ls_sql = "DROP INDEX dba.table1.index1"
EXECUTE IMMEDIATE :ls_sql;
Neither does:
ls_sql = "DROP INDEX table1.index1"
EXECUTE IMMEDIATE :ls_sql;
Any help would be greatly appreciated.
Regards,
Brian
We want to drop and recreate indexes in powerscript using SYBASE ASE 12.0, but we are having problems with the drop side.
We can create them using:
ls_sql = "CREATE INDEX index1 on dba.table1"
EXECUTE IMMEDIATE :ls_sql;
However the drop SQL does not work:
ls_sql = "DROP INDEX dba.table1.index1"
EXECUTE IMMEDIATE :ls_sql;
Neither does:
ls_sql = "DROP INDEX table1.index1"
EXECUTE IMMEDIATE :ls_sql;
Any help would be greatly appreciated.
Regards,
Brian