I'm trying to delete an attribute I've created. I keep getting
Delete statement conflicted with the reference constraint "fkey$md_query_attribute$at". The conflict occurred in database "blah", table "dbo.md_query_attribute", column 'md_attribute_type_guid'. The statement has been terminated.
I believe this is telling me there is a query which uses this attribute. I can't find the query. Is there a way to query the DB to find where this attribute is used? An SQL script perhaps?