hi, i'm trying to write a query that updates/inserts to a database on a linked server. here's a piece of the code-- UPDATE the project intersection set. Only update changes to names and active statesUPDATE [MORIARTY\SEPIALINE].Argos.dbo.argProjectsSET [MORIARTY\SEPIALINE].Argos.dbo.argProjects.[Name] = #TempProtraxProjects.[Name], [MORIARTY\SEPIALINE].Argos.dbo.argProjects.Active = #TempProtraxProjects.ActiveFROM #TempProtraxProjects JOIN [MORIARTY\SEPIALINE].Argos.dbo.argProjectsON ([MORIARTY\SEPIALINE].Argos.dbo.argProjects.Number = #TempProtraxProjects.Number)
however, the code returns the following error:Server: Msg 117, Level 15, State 2, Line 51The number name 'MORIARTY\SEPIALINE.Argos.dbo.argProjects' contains more than the maximum number of prefixes. The maximum is 3.based on what i could find in Books Online, i tried aliasing the external table name like:UPDATE [MORIARTY\SEPIALINE].Argos.dbo.argProjects AS ASET A.[Name] = ...
but this returns a syntax error "near AS" - um, ok. last i checked, this was valid. can anyone shed light on what's going on here? many thanks in advance!..::mirirom::..