1如果列名一样。
Insert B.dbo.[Table] Select * from A.dbo.[Table]如果列名不一样。
Insert B.dbo.[Table] (Col1,Col2,...) Select Col1,Col2,... from A.dbo.[Table]
Insert B.dbo.[Table] Select * from A.dbo.[Table]如果列名不一样。
Insert B.dbo.[Table] (Col1,Col2,...) Select Col1,Col2,... from A.dbo.[Table]
Insert B.dbo.[Table] Select * from A.dbo.[Table]如果表结构不一样。
Insert B.dbo.[Table] (Col1,Col2,...) Select Col1,Col2,... from A.dbo.[Table]
企业管理器--工具--数据转换服务--导入数据--源:A库 table 目:B库 table(新建的)
2。
select name from sysobjects
where xtype='u'