Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 Specifying the TableLocks in the LinkedServer

Author  Topic 

vgr.raju
Yak Posting Veteran

95 Posts

Posted - 2006-08-06 : 15:07:32
Hello,
I am getting the Error when I specify the Table Options in the
Linked server queries.
Select * from [server].[db].[dbo].[TableName](NOLOCK).
This returns the Error.
When I remove the nolock option,then It works fine!

AnyHelp would be appreciated!

Thanks!
Raju

nr
SQLTeam MVY

12543 Posts

Posted - 2006-08-06 : 16:45:31
exec [server].[db].[dbo].sp_executesql N'select * from TableName (nolock)'

==========================================
Cursors are useful if you don't know sql.
DTS can be used in a similar way.
Beer is not cold and it isn't fizzy.
Go to Top of Page
   

- Advertisement -