use 你的原库名
go
declare  cursor1 cursor for select name from sysobjects where xtype='u' and name <>'dtproperties'
declare
@ varchar(1000)
open cursor1
fetch cursor1 into @
while @@fetch_status=0
begin
  exec('insert 你的目标库名..'+@+' select * from '+@)
  fetch cursor1 into @
end
close cursor1
deallocate cursor1