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.

徵兆

假設您啟用表格上的 [變更資料擷取 (CDC) ] 功能,即可在 Microsoft SQL Server 中執行記錄掃描。 投票 結果參數會在sys.sp_cdc_scan儲存程式中從秒 (的) 轉換為小時 (h) 。 不過,當 投票結果參數大於一小時 (>3600 s) 時,您會注意到轉換後的結果不正確。 

 declare @pollinginterval Bigint, @seconds Bigint, @minutes Bigint, @hours Bigint
  設定 @pollinginterval = 3600
  選取 @seconds = @pollinginterval % 60
  選取 @minutes = ( (@pollinginterval - @seconds) / 60) % 60
  選取 @hours = (@pollinginterval - (@minutes * 60) - @seconds) / 60
---下一次嘗試在
行下方 ---選取 @hours = (@pollinginterval - (@minutes * 60) - @seconds) / 60 /60
  選取 @hours、@minutes、@seconds

解決方案

此問題已在下列SQL Server累積更新中修正:

       SQL Server 2017 的累積更新 12

       SQL Server 2016 SP2 的累積更新 3

       SQL Server 2016 SP1 的累積更新 12

       SQL Server 2014 SP3 的累積更新 1

       SQL Server 2014 SP2 的累積更新 14

每個SQL Server的新累積更新都包含所有 Hotfix 以及先前累積更新隨附的所有安全性修正。 查看SQL Server的最新累積更新:

SQL Server 2017 的最新累積更新

SQL Server 2016 的最新累積更新

2014 年 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!

×