摘要:
转:http://www.cnblogs.com/lixiaofei/archive/2012/05/01/2478192.html--查询所有数据库use masterselect * from sysdatabases where dbid>4;--系统自带的数据库分别是master->1,model->3,msdb->4,tempdb->2--查询数据库中所有数据库(存储过程)exec sp_helpdb;--查询指定数据库中的表use masterselect * from sysobjects where xtype='u' ;if ob 阅读全文