select dbid, name from master..sysdatabases where name no...

0

Please login or register to vote for this query.

(click on this box to dismiss)

Stack Overflow

Q&A for programmers

select dbid, name
from master..sysdatabases
where name not in ('Data.StackExchange', 'master', 'model', 'msdb', 'tempdb')

--mathoverflow

Enter Parameters

Options:
Switch sites:
loading Hold tight while we fetch your results