To show all MSSQL databases except the normal system databases.
select * from sys.databases WHERE name NOT IN ('master', 'tempdb', 'model', 'msdb');
To show all MSSQL databases except the normal system databases.
select * from sys.databases WHERE name NOT IN ('master', 'tempdb', 'model', 'msdb');