ismahmoud (10/13/2016)
i'm using this script :select * into LinkedServer.[DB_Name].[dbo].[Table_Name] FROM Server2.[DB2_Name].[dbo].Table2_Name
but give this error:
Msg 117, Level 15, State 1, Line 1
The object name 'LinkerserverName.DB_Name.dbo.Table_Name' contains more than the maximum number of prefixes. The maximum is 2.
i don't understand how can i use SP to solve this problem ?????
In your example, you cannot use the select...into newtable via a linked server. The four part syntax s not supported for that dynamic creation.
You have to create the table explititly, then use a standard insert into tablename...select
Lowell