SQL Server: How to tell if a database is a system database?

Posted by Vinko Vrsalovic on Stack Overflow See other posts from Stack Overflow or by Vinko Vrsalovic
Published on 2009-11-30T10:50:59Z Indexed on 2010/03/19 19:01 UTC
Read the original article Hit count: 152

I know that so far (until MSSQL 2005 at least), system databases are master, model, msdb and tempdb.

Thing is, as far as I can tell, this is not guaranteed to be preserved in the future. And neither the sys.databases view nor the sys.sysdatabases view tell me if a database is considered as a system database.

Is there someplace where this information (whether a database is considered a system database or not) can be obtained?

© Stack Overflow or respective owner

Related posts about sql-server-2005

Related posts about information-schema