“Deferred prepare could not be completed” error when using local database as linked server

前端 未结 5 568
旧巷少年郎
旧巷少年郎 2021-01-17 07:49

I created a Linked Server from my local Sql Server, as given in

http://sqlserverplanet.com/dba/local-linked-server

However when I try to execute a stored pro

5条回答
  •  天涯浪人
    2021-01-17 08:21

    Same problem for me: I resolved it just fixing the "target" object, that was not named correctly.

    In my case I was searching for [testDb].[Business.Customer] table, but the correct name was [testDb].[Business].[Customer]...same error as yours:

    Il provider OLE DB "SQLNCLI10" per il server collegato "RIBOWEB10\SQLEXPRESS" ha restituito il messaggio "Deferred prepare could not be completed.".

    I think SQL Server tries to dynamically resolve names that don't match directly with real objects, but not sure of that.

    Quite easy, I hope this helps :)

提交回复
热议问题