johnnyrmtl (9/10/2012)
Thanks for that and it does indeed work on a sole database at a time.I would need it to run from master and get all databases
you would jsut wrap it with exec sp_msForEachDb and paramterize the databases right? sys.objects becomes ?.sys.objects, etc etc to get teh database context.
i know it's easy for me to do, but did you try that yet? learning to adapt the code you are going to use is going to be invaluable to you. you are the one who has to maintain the code after you've copied it from here.
Lowell