我怎样才能做到这一点?我正在从远程链接服务器运行一个表值函数.我尝试不向这 4 部分命名添加锁定,但仍然出现相同的错误.我使用的是 mssql-2008
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)
您需要添加WITH (NOLOCK)
.不完全确定为什么,但我今天刚遇到这个问题,这解决了我的问题.
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);
这篇关于不允许远程表值函数调用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!