SELECT 'insert into CurrentDBName.dbo.' + NAME
+ ' select * from dbName.dbo.' + name
FROM sysobjects
WHERE xtype = 'U'
AND name != 'user'
------其他解决方案-------------------- insert into A.dbo.TB1 select * from B.dbo.TB1
insert into A.dbo.TB2 select * from B.dbo.TB2
。。。。
insert into A.dbo.TBN select * from B.dbo.TBN