Remote table-Valued Function Calls are not allowed

anonymous1110 picture anonymous1110 · Apr 25, 2013 · Viewed 72.4k times · Source

How can I make this work?Im running a table valued function from a remote linked server. i tried adding no lock to this 4 part naming but still i get the same error. Im using mssql-2008

select * from [110.10.10.100].testdbname.dbo.ufn_getdata('4/25/2013') as tb;(NOLOCK)

Answer

ExceptionLimeCat picture ExceptionLimeCat · Jun 21, 2013

You need to add WITH (NOLOCK). Not entirely sure why but I just ran into this issue today and this solved my issue.

SELECT * 
FROM [110.10.10.100].testdbname.dbo.ufn_getdata('4/25/2013') AS tb WITH (NOLOCK);