Select into from one sql server into another? Select into from one sql server into another? sql-server sql-server

Select into from one sql server into another?


Use Sql Server Management Studio's Import feature.

  1. right click on database in the object explorer and select import
  2. select your source database
  3. select your target database
  4. choose the option to 'specify custom query' and just select your data from T1, in DB1
  5. choose your destination table in the destination database i.e. T2
  6. execute the import


select * into [newtable] from [linked_server].[databasename].dbo.[tablename]