Jun 5, 2008 #1 R7Dave Programmer Oct 31, 2007 181 US Hello Is there a way to use T-SQL to return a list of databases on a server for SQL2005? Something like Select * from INFORMATION_SCHEMA.??? or select name from sysobjects where ... is there a method that will return a list of databases? Thanks Dave
Hello Is there a way to use T-SQL to return a list of databases on a server for SQL2005? Something like Select * from INFORMATION_SCHEMA.??? or select name from sysobjects where ... is there a method that will return a list of databases? Thanks Dave
Jun 5, 2008 #2 SQLDenis Programmer Oct 1, 2005 5,575 US select name from sys.sysdatabases Denis The SQL Menace -------------------- SQL Server Code,Tips and Tricks, Performance Tuning SQL Server Programming Hacks Upvote 0 Downvote
select name from sys.sysdatabases Denis The SQL Menace -------------------- SQL Server Code,Tips and Tricks, Performance Tuning SQL Server Programming Hacks
Jun 5, 2008 Thread starter #3 R7Dave Programmer Oct 31, 2007 181 US Awesome - Thank You! Upvote 0 Downvote