earthandfire
Programmer
The following code:
TRUNCATE TABLE SVUKSWIPC002513.DealerAuditData.dbo.F5W03
generates the error:
The object name 'SVUKSWIPC002513.DealerAuditData.dbo.' contains more than the maximum number of prefixes. The maximum is 2.
If I remove .dbo, it complains that it can't find a database called 'SVUKSWIPC002513, which is obviously correct since it is a server.
I've linked the server using:
EXEC sp_addlinkedserver 'SVUKSWIPC002513', N'SQL Server'
DealerAuditData is the database and F5W03 is the table.
There are around a dozen tables that I need to Truncate then rebuild using Insert Into. The code works perfectly without the linking - by saving the data in the main server.
Any advice would be greatly appreciated.
![[vampire] [vampire] [vampire]](/data/assets/smilies/vampire.gif)
![[bat] [bat] [bat]](/data/assets/smilies/bat.gif)
TRUNCATE TABLE SVUKSWIPC002513.DealerAuditData.dbo.F5W03
generates the error:
The object name 'SVUKSWIPC002513.DealerAuditData.dbo.' contains more than the maximum number of prefixes. The maximum is 2.
If I remove .dbo, it complains that it can't find a database called 'SVUKSWIPC002513, which is obviously correct since it is a server.
I've linked the server using:
EXEC sp_addlinkedserver 'SVUKSWIPC002513', N'SQL Server'
DealerAuditData is the database and F5W03 is the table.
There are around a dozen tables that I need to Truncate then rebuild using Insert Into. The code works perfectly without the linking - by saving the data in the main server.
Any advice would be greatly appreciated.
![[vampire] [vampire] [vampire]](/data/assets/smilies/vampire.gif)
![[bat] [bat] [bat]](/data/assets/smilies/bat.gif)