SQL Server Hidden Gems Perhaps
If you ever wanted to get name of all the databases on your server, you can use this query
In SQL Server 2000, select name from master..sysdatabases
In SQL Server 2005, select name from sys.databases
:-)
In SQL Server 2000, select name from master..sysdatabases
In SQL Server 2005, select name from sys.databases
:-)
Comments