2017-04-13 257 views
12

我正在使用我的機器(和SSMS)並且一切正常。我做了重新啓動的Windows於是採用10以下更新:更新後的SQL Server錯誤:提供給該函數的令牌無效

Windows Malicious Software Removal Tool for Windows 8, 8.1, 10 and Windows Server 2012, 2012 R2, 2016 x64 Edition - April 2017 (KB890830) 
Security Update for Adobe Flash Player for Windows 10 Version 1607 (for x64-based Systems) (KB4018483) 
Security Update for Microsoft Silverlight (KB4017094) 
Cumulative Update for Windows 10 Version 1607 for x64-based Systems (KB4015217) 

現在,當我嘗試登錄SSMS中,我發現了以下錯誤:

A connection was successfully established with the server, but then an error occurred during the login process. (provider: SSL Provider, error: 0 - The token supplied to the function is invalid (Microsoft SQL Server)

The token supplied to the function is invalid

這看起來是安全相關的,但我不知道該如何解決它。我的機器使用Windows Server Essentials進行備份(並且連接器是綠色的)。

+0

你有沒有找到這個解決方案?我收到與SSMS 17相同的錯誤。 – gymbrall

+0

沒有。我將計算機恢復到更新之前,以便再次運行。但時不時會自動更新並再次導致問題。非常令人沮喪 – WhiskerBiscuit

+1

你有沒有嘗試在https://superuser.com/或https://dba.stackexchange.com/上發帖? – Alex

回答

5

我曾遇到與SQL Server相同的問題。我遵循了一些步驟,並解決了我的問題。這些步驟是 -

  1. 單擊開始,單擊運行,在打開框中鍵入regedit,然後單擊確定。
  2. 找到並單擊以下注冊表子項:HKEY_LOCAL_MACHINE \系統\ CurrentControlSet \控制\ SecurityProviders \ SCHANNEL

  3. 在編輯菜單,指向新建,然後單擊DWORD值。

  4. 鍵入SendExtraRecord作爲DWORD值的名稱,然後按Enter鍵。
  5. 用鼠標右鍵單擊SendExtraRecord,然後單擊修改。
  6. 在數值數據框中,鍵入2以禁用schannel中的拆分記錄,然後單擊確定。
  7. 退出註冊表編輯器。
+0

我以前見過,但不幸的是它並沒有爲我工作。 – WhiskerBiscuit

+0

哎呀..如果我有其他解決方案,我會盡快回復您。 –

3

在具有管理權限並重新啓動的命令行中執行。

netsh winsock reset 
0

似乎其他人已經通過重新啓動機器的IIS成功。

這將是如此簡單:

Click Start, click Run type IISReset , and then click OK. SOURCE (Microsoft)

否則,有在SSCM,你可能需要確保正確地設置一些設置,這可能是一個範圍廣泛的問題的罪魁禍首:

  1. ensure Shared Memory protocol is enabled
  2. ensure Named Pipes protocol is enabled
  3. ensure TCP/IP is enabled, and s ahead of the Named Pipes in the settings SOURCE (SO)

(這些設置在您的SSCM中)。還有一個關於設置這些設置的nice blog post作爲解決其他錯誤的方法。

我希望這有助於激發一些想法!看起來這是一個相當普遍的問題,沒有很多解決方案的具體建議。

如果沒有這些工作(我認爲我會建議他們作爲盡職調查,以防他們解決問題),您可能需要查看Windows Malicious Software Removal Tool正在修改的內容。

在過去類似的更新之後,其他人在使用SSMS時遇到了問題,他們似乎提供了Internet Explorer作爲罪犯。爲了解決這個問題,他們未註冊並註冊他們的ieproxy.dll

他們建議做:

  • Launch command line in administrative mode. Go to C:\Program Files\Internet Explorer or c:\Program Files (x86)\Internet Explorer if you have Win x64.
  • Execute regsvr32 /u ieproxy.dll (this might throw an error if it isn't loaded)
  • Execute regsvr32 ieproxy.dll SOURCE (SO)

這似乎已經成功對他們來說,希望工程!