I have to copy tables from Database 1 at 'x' instance to another database which is empty right now on instance 'y' in SQL Server 2008.
How can I achieve this ?
I have to copy tables from Database 1 at 'x' instance to another database which is empty right now on instance 'y' in SQL Server 2008.
How can I achieve this ?
You could create a linked server on the instance that you are importing data into. You will need to link the server that you are exporting data from. Here are a couple of links on how to set that up.
Calling Linked Server In Query
Once you have the linked server set up, you could do this:
INSERT INTO yourtable --table you are importing data into
SELECT *
FROM [server].[database].[schema].[table] --server you are exporting data from