There is no functional difference, but eventually the syntax without
WITH
will not work. This has been deprecated:select customer, zipcode from customers c (nolock)
So you should be using this format:
select customer, zipcode from customers c with (nolock)
Not using the
WITH
keyword for table hints has been deprecated since at least SQL Server 2008. Search the following topic for the phrase Specifying table hints without using the WITH keyword.
:Ref : https://stackoverflow.com/questions/12112855/withnolock-or-nolock-is-there-a-difference
Comments
Post a Comment