select * into new_databasename.dbo.tablename from databasename.dbo.tablename
select * into new.dbo.employee from test.dbo.employee where name='pri'
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)