本文介紹了不允許遠程表值函數調用的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!
問題描述
限時送ChatGPT賬號..
我怎樣才能做到這一點?我正在從遠程鏈接服務器運行一個表值函數.我嘗試不向這 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模板網!
【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!