When should I execute an sp_recompile in Sybase?

Submitted by: Administrator
An sp_recompile should be issued any time a new index is added or an update statistics. Dropping an index will cause an automatic recompile of all objects that are dependent on the table.

The sp_recompile command simply increments the schemacnt counter for the given table. All dependent object counter's are checked against this counter and if they are different the SQL Server recompiles the object.
Submitted by: Administrator

Read Online Sybase Job Interview Questions And Answers