• Jasons query returns the databases that ARE system databases so you would have to flip the logic.

    I THINK SQL2005 includes the resource database in the query but SQL2008 and up don't, but I may have that the wrong way round :-).

    You'll have to test that.

    ---------------------------------------------------------------------