The object name contains more than the maximum number of prefixes. The maximum is 3
Correct four-part table name is server.database.schema.tablename - you have some excess parts there.
Looks like table name is OPC.WriteRequests? If yes, then you have to use brackets: SQL05.ManufacturingPortal.dbo.[OPC.WriteRequests]
But maybe you just have some part of name incorrect?
Create index error -The object name contains more than the maximum number of prefixes. The maximum is 2
Since the excellent link that Jacob referred to is down I was able to get the page to load but it is horribly slow.
Here is the answer from Grant Fritchey:
Look up the EXECUTE statement in BOL:
EXECUTE ('USE STUFF;DROP INDEX OWNER_idx ON dbo.OWNER') AT SQLnk
The linked server has to support RPC calls:
EXEC master.dbo.sp_serveroption @server=N'SQLnk', @optname=N'rpc',
@optvalue=N'true'
SQL Server Error: maximum number of prefixes. The maximum is 3. with join syntax
Do you really like a lot of typing? :-)
UPDATE s
SET s.DisciplineVarianceAmount = v.VarianceAmount
FROM [ASILIVE].[CustomerManagementSystem].dbo.Sessions AS s
INNER JOIN dbo.Variances AS v
ON s.SessionGUID = v.SessionGUID
AND s.VarianceAmount <> v.VarianceAmount;
Take note that you may want to describe what to do here if either variance amount is currently NULL
.
Object name contains more than the maximum prefixes allowed
Please try this:
["test123.de.company.com"].[Database].[dbo].[Table]
OP also encountered a new problem after implementing this solution above. OP said:
Thank you! This worked for me. To be more precise, the join is for a
view and if I save/close and then later get back to the design option
the quote marks are removed and there is [test123.de.company.com] left
over and the error returns. Is there a way to keep them fixed?
Otherwise if I change anything I always have to add the quote marks
again and again
Then with the help of DaleK that problem also was solved. DaleK:
Don't use the design option, script it as alter instead
error when insert into linked server
I don't think the new table created with the INTO
clause supports 4 part names.
You would need to create the table first, then use INSERT..SELECT
to populate it.
(See note in Arguments section on MSDN: reference)
Related Topics
What Timezone Does MySQL's Now() Follow
Postgresql:JSON Array to Rows Using Lateral Join
How to Find 11Th Entry in SQL Access Database Table
Quartile/Percentile in Ms Access via SQL with a Group by When Some Values Can Be Null
Pivot Table with Non-Cardinal Values
How to Write the Equivalent SQL Case Statement for Query Given Below
How to Add Sequenced Number Based on Sorted Value in Query in Access
Updating Row with Subquery Returning Multiple Rows
Oracle SQL: Variables Used in Place of Table Names
How to Remove Part of the String in Oracle
How to Find All Open/Active Connections in Db2 (8.X)
Sparksql Error Table Not Found
Calculating SQL Server Row_Number() Over() for a Derived Table
Problem with MySQL Insert Max()+1