开发者

How do I use 'select into' statement between two instances of SQL Server?

开发者 https://www.devze.com 2023-03-23 22:39 出处:网络
Is there a way to do SELECT A, B INTO [SERVER\\INSTANCE_B].DATABASE.DBO.TABLE FROM [SERVER\\INSTANCE_A].DATABASE.D开发者_JS百科BO.TABLE

Is there a way to do

SELECT A, B 
INTO [SERVER\INSTANCE_B].DATABASE.DBO.TABLE
FROM [SERVER\INSTANCE_A].DATABASE.D开发者_JS百科BO.TABLE

between instances? Do I have to create a linked server for this?


I think that you have to create a linked server on one of the instances where you want to run this query to achieve this.

You can also use SQL Server Import and Export Wizard to transfer data if this is a one time transfer. You can right-click on the database where you want the data to be imported to and select Tasks --> Import data... or alternatively select the database where you want the data to be exported from and select Tasks --> Export data...

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号