Hello,
Does anyone know how to return the name of all the databases except the system databases on a server for SQL Server 2005?
Thank you
select * from sys.databases where database_id not in (1, 2, 3, 4)
No comments:
Post a Comment