Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to apply hint to update stmt?

Status
Not open for further replies.

sqlsadie108

Programmer
Feb 23, 2007
47
US
Hi,

How and where do I apply the WITH (maxdop=1) hint to an update stmt? I am looking for the correct syntax.

example - similar to my query in structure)
UPDATE myTable a
SET col1 = x, col2 = y, col3 = b -- complexity hidden
FROM myTable b
LEFT JOIN anotherTable...

Thanks much
 
Like this.
Code:
UPDATE myTable a
SET col1 = x, col2 = y, col3 = b -- complexity hidden
FROM myTable b
LEFT JOIN anotherTable
OPTION (MAXDOP 1)

- Paul [batman]
- If at first you don't succeed, find out if the loser gets anything.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top