不允许远程表值函数调用 [英] Remote table-Valued Function Calls are not allowed

查看:85
本文介绍了不允许远程表值函数调用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我怎样才能做到这一点?我正在从远程链接服务器运行一个表值函数.我尝试不向这 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);

这篇关于不允许远程表值函数调用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆