sqlserver列出所有数据库名?
Select name from master..sysdatabases
http://www.foxtable.com/webhelp/scr/0696.htm