Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

queries not being used? 2

Status
Not open for further replies.

grmman

MIS
Sep 9, 2003
81
US
It there a way to search a database and identify all queries which are not used by any database object?

Thank you
 
Im not *totaly sure* but actualy i use that and it looks ok.

In option check the option "show system file"

then

Look in the table Msysobjects where TYPE = 5 and FLAGS = 0

"TYPE = 5" means querry
FLAGS = 0 seems to be when no object refer to that query otherwise it will be an integer (ie. 5,8, etc)

hope this helps...
jb
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top