I'm trying to write a query to get the names of all Rules and Defaults in the database so I can programatically drop all of them from a database without having to know their names.
They don't seem to be contained in sys.objects
, though - so where can I find them?