SQL2005出错:CryptUnprotectData: Win32 错误:-2146893813

如上图所示,在我的SQL Server2005企业管理器中注册了几个服务器,但这几天发现,除了本机服务器(zyq-f7860ae5cd1),其他服务器均不能连接了,一连接就出错,提示:CryptUnprotectData: Win32 错误:-2146893813:

Google了下,发觉也有人碰到一样的问题,解决方法是将已注册的服务器删除了重新注册下就好了。后来想起来,在出现这问题前,我有修改了操作系统用户密码,很可能就是这个操作引发了该问题。

异常信息

 

************** 异常文本 **************
System.Exception: CryptUnprotectData: Win32 错误:-2146893813
   在 Microsoft.SqlServer.Management.Smo.RegSvrEnum.DataProtection.UnprotectData(Byte[] data, Int32 dwFlags)
   在 Microsoft.SqlServer.Management.Smo.RegSvrEnum.DataProtection.UnprotectData(String data)
   在 Microsoft.SqlServer.Management.Smo.RegSvrEnum.UIConnectionInfo.get_Password()
   在 Microsoft.SqlServer.Management.UI.VSIntegration.ObjectExplorer.RegisteredServerTree.ConnectOeToCurrentRegServer()
   在 Microsoft.SqlServer.Management.UI.VSIntegration.ObjectExplorer.RegisteredServerTree.OnDoubleClick(EventArgs e)
   在 System.Windows.Forms.TreeView.WndProc(Message& m)
   在 Microsoft.SqlServer.Management.UI.VSIntegration.ObjectExplorer.RegisteredServerTree.WndProc(Message& m)
   在 System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   在 System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   在 System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

 

posted @ 2010-06-23 15:16  呆呆卢  阅读(1129)  评论(1编辑  收藏  举报