Is there a way to run a SELECT query on a table ona remote server with something a NOLOCK? I need something to make sure the query doesn't lock the table.
What does the message say? I assume it says, "Cannot specify an index or locking hint for a remote data source." This is NOT permitted. However, you can use the hint when using OpenQuery to execute the query on the remote server.
Select *
from openquery(server2,'Select Name From HR.dbo.employees (nolock) where EmpID=1432') Terry L. Broadbent - DBA
Computing Links:
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.