What is the easiest way to tell if a database is not a system database in SQL 2005. What would be a select that would give me this info for a script, I have looked at sys.databases and can not see a column that states this, may be missing it though?
U can check two views sys.databases and sys.sysdatabases then u can easly notice that there 6 sysdatabases given id as 1 to 6 and else are userdefined databases.