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.

徵狀

請試想下列案例:

  • 已將 SQLCLR 函數宣告為「確定性」,且此函數可用於「使用常數取代」優化。

  • 有一個指向 SQLCLR 函數的同義字。

  • Table 值函數(TVF)透過同義字對 SQLCLR 函數所做的參照。

在這種情況下,當應用程式查詢這個 TVF,可能會發生存取衝突,而且您可能會收到類似以下的錯誤訊息:

訊息0,層級11,狀態0,列14

目前的命令發生嚴重錯誤。 結果(如果有的話)應該捨棄。

此外,也會在 SQL Server 錯誤記錄中記錄一則錯誤訊息。

解決方案

SQL Server Service pack 資訊

此問題已在下列 SQL Server service pack 中修正:

       SQL Server 2016 Service Pack 2

       SQL Server 2014 Service Pack 3

Service pack 是累加的。 每個新的 service pack 都包含舊版 service pack 中的所有修正程式,以及任何新的修正程式。 我們建議您將最新的 service pack 和該 service pack 的最新累計更新套用。 在安裝最新的 service pack 之前,您不需要安裝舊版 service pack。 使用下列文章中的表格1,尋找最新 service pack 和最新累計更新的詳細資訊。

如何判斷 SQL Server 及其元件的版本、版本與更新層級

狀態

Microsoft 已確認<適用於>一節中所列的 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!

×