–取得所有数据库名 包括系统数据库
–SELECT name FROM master.dbo.sysdatabases
–取得所有非系统数据库名
–select [name] from master.dbo.sysdatabases where DBId>6 Order By [Name]
–取所有信息,包括数据库文件地址
–select * from master.dbo.sysdatabases where DBId>6 Order By [Name]
原创文章,作者:Maggie-Hunter,如若转载,请注明出处:https://blog.ytso.com/tech/database/233534.html