Sign in with Microsoft
Sign in or create an account.
Hello,
Select a different account.
You have multiple accounts
Choose the account you want to sign in with.

徵狀

假設您有已安裝 SQL Server 2012 Service Pack 1 (SP1)累加更新7或更新版本更新的 Microsoft SQL Server 2012 實例。 您會執行系統儲存程式 sp_describe_undeclared_parameters,且該存儲程式在 @tsql 參數的語句中包含 always FALSE 語句。 例如:

從 testTable 中 sp_describe_undeclared_parameters @tsql = N'SELECT *,其中欄 1 = @p1,1 = 2 '在這種情況下,執行 sp_describe_undeclared_parameters 失敗,而且您會收到下列錯誤訊息:

Msg 11502、Level 16、State 2、無法在此內容中推導參數 ' @p1」的 Line 28The 類型。

注意: 這個問題也會發生在 SQL Server 2014 中。

解決方案

累積更新資訊

此問題最初是在 SQL Server 的後續累積更新中修正。

每個新的 SQL Server 累計更新都包含所有的修正程式,以及前一個累積更新中所包含的所有安全性修正程式。 我們建議您下載並安裝最新的 SQL Server 累積更新:

狀態

Microsoft 已確認本篇文章<適用於>一節所列之 Microsoft 產品確實有上述問題。

Need more help?

Want more options?

探索訂閱權益、瀏覽訓練課程、瞭解如何保護您的裝置等等。

社群可協助您詢問並回答問題、提供意見反應,以及聆聽來自具有豐富知識的專家意見。

Was this information helpful?

How satisfied are you with the translation quality?
What affected your experience?
By pressing submit, your feedback will be used to improve Microsoft products and services. Your IT admin will be able to collect this data. Privacy Statement.

Thank you for your feedback!

×