I modified my SQL so it wouldn't use the sysobjects table. I didn't need the mode values (unchained, chained, etc) that the original query retrieved, and wasn't concerned about the other columns retrieved other than the procedure name and creation date. I didn't do any research to see if maybe the original SQL was not using a correct index or something on the retrieval. My SQL is: SELECT so.name AS name, so.id as groupnumber, user_name(so.uid) AS owner, so.crdate AS crdate, so.id, 'anymode' as mode FROM sysobjects so WHERE so.type = 'P' ORDER BY so.name asc One problem I do notice is that if I change the SQL, it doesn't save it permanently. The next time I open Toad, the SQL has reverted back to its default script. Does it store this syntax in a file under the install directory that I might not have write permissions to?
↧