Hint Syntax

  • Simple question:

    Is "SELECT * FROM Table WITH (NOLOCK)" exactly equivalent to "SELECT * FROM Table (NOLOCK)" - in other words, is the "WITH" required for a hint?  The documentation is sufficiently unclear for me to determine this and a DBA is telling me that the second form is locking tables and I don't believe it because if it is locking what the heck does TSQL think the "(NOLOCK)" is in the second form?

  • It's exactly the same. Get a DBA who knows what he's talking about!

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply