The following is not working:
update Query
set Query.col1 = 1
from openquery(LinkedServer, 'select col1, col2 from me.Table where col1 = 2') as Query
, OtherTable as SQLTable
where SQLTable.col2 = Query.col2
You will receive an error that the object 'Query' is unknown.
Seems the alias for openquery in updates is not working!?
Please comment.
Thanx