select 'select * from dbo.' + [name] from dbo.sysobjects where xtype = 'U' order by [name] 转载于:https://www.cnblogs.com/strugglepcx/archive/2010/07/20/1781089.html