SyntaxFix
Write A Post
Hire A Developer
Questions
You can use:
UPDATE s SET s.Field1 = q.Field1, s.Field2 = q.Field2, (list of fields...) FROM ( SELECT Field1, Field2, (list of fields...) FROM ProfilerTest.dbo.BookingDetails WHERE MyID=@MyID ) q WHERE s.MyID2=@ MyID2