1
select * into LinkedServer.[DB_Name].[dbo].[Table_Name] 
FROM Server2.[DB2_Name].[dbo].Table2_Name

Give this error message:

(Msg 117, Level 15, State 1, Line 1 The object name 'DMSSQLCLD01.Guarantees.dbo.guarantees' contains more than the maximum number of prefixes. The maximum is 2.)

1 Answer 1

2

You can't use a linked server table in SELECT ... INTO since it doesn't supports 4 part name.

You have to create the table and then use INSERT INTO.. for populating the data.

INSERT INTO  LinkedServer.[DB_Name].[dbo].[Table_Name]
SELECT * FROM Server2.[DB2_Name].[dbo].Table2_Name

see the comment from MSDN.You can read more over here

enter image description here

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.