I am trying to update database fields from one SQL Server table to another.
Our SQL Server [spdbprod.test.com\spprod] , our QA server [spdbQA.test.com\spQA] .
I need to update a table during production from a QA table. I use this SQL statement, but it gives an error.
UPDATE [spdbprod.test.com\spprod].[aspnetdb].[dbo].[Communities_Groups] as t1 SET t1.Show = (Select t2.show from [spdbQA.test.com\spQA].[aspnetdb].[dbo]. [Communities_Groups] as t2 where t1.GroupID = t2.GroupdID)
What am I missing here? Error: UPDATE. ("Invalid syntax next to the how keyword.)
source share