本文介紹了不允許遠程表值函數(shù)調(diào)用的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!
問題描述
限時送ChatGPT賬號..
我怎樣才能做到這一點?我正在從遠程鏈接服務(wù)器運行一個表值函數(shù).我嘗試不向這 4 部分命名添加鎖定,但仍然出現(xiàn)相同的錯誤.我使用的是 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);
這篇關(guān)于不允許遠程表值函數(shù)調(diào)用的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!
【網(wǎng)站聲明】本站部分內(nèi)容來源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請聯(lián)系我們刪除處理,感謝您的支持!