zoukankan      html  css  js  c++  java
  • 运行时错误 2147418113 8000ffff灾难性故障 'Run time error 'c (8000ffff)': Catastrophic Failure'

    FIX: "Catastrophic Failure" Error Message When You Use adPromptAlways to Connect to SQL Server 2000

     

    SYMPTOMS

    When you use the adPromptAlways constant to open a connection to SQL Server 2000...

    When you use the adPromptAlways constant to open a connection to SQL Server 2000, the user receives the following error message:
    'Run time error 'c (8000ffff)': Catastrophic Failure'.
    This problem occurs when you use a trusted connection to SQL Server 2000.

    NOTE: This problem does not occur with Microsoft SQL Server 7.0.

    RESOLUTION
    To work around this problem, do not use adPromptAlways, and pass the information...

    To work around this problem, do not use adPromptAlways, and pass the information in the connection string.

    STATUS
    Microsoft has confirmed that this is a problem in the Microsoft products that ar...

    Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.

    This bug was corrected in Microsoft Data Access Components (MDAC) 2.6 Service Pack 2 and MDAC 2.7. To download the latest version of MDAC, refer to the following Microsoft Web site:
    http://msdn.microsoft.com/en-us/data/aa937729.aspx (http://msdn.microsoft.com/en-us/data/aa937729.aspx)

    MORE INFORMATION
    Steps to Reproduce Behavior Create a new Standard EXE project in Microsoft Visua...

    Steps to Reproduce Behavior

    1. Create a new Standard EXE project in Microsoft Visual Basic. Form1 is created by default.
    2. On the Project menu, click Reference, and then select the Microsoft ActiveX Data Object 2.6 check box.
    3. Add a CommandButton control and a TextBox control to Form1.
    4. Add the following code to the Click event for the command button:
      Dim con As New ADODB.Connection
      con.Provider = "SQLOLEDB"
      con.Properties("Prompt") = adPromptAlways
      con.Open
      Text1.Text = con.ConnectionString
      					
    5. Press the F5 key to run the application, and then click the command button.
    6. In the SQL Server Login dialog box, follow these steps:
      1. Select the Use Trusted Connection check box.
      2. Select the SQL Server 2000 server, and then click Options.
      3. Click Database in the list. You receive the above-mentioned error message.

    APPLIES TO
    • Microsoft Data Access Components 2.6
    • Microsoft SQL Server 2000 Standard Edition
     
    我出错在rs.movenext
    实际上可以调试,看到rs已经是nothing 了,不知怎么 回事就rs被破坏了
    而后来 在自己调用的DBSexecute(Byval Conn As Connection,strSql As String) 改调用 SqlExt(byval strSql As String)似乎行了。
    现在忘了。总之:调试!
  • 相关阅读:
    运算符重载
    vmware 下 ubuntu 不能全屏显示 的解决方法
    最优化
    常见算法(logistic回归,随机森林,GBDT和xgboost)
    转:CRF++词性标注
    条件随机场(CRF)理论及应用
    转:RNN(Recurrent Neural Networks)
    RNN(Recurrent Neural Networks)公式推导和实现
    ML、DL相关资源
    机器学习(周志华西瓜书) 参考答案 总目录
  • 原文地址:https://www.cnblogs.com/no7dw/p/1612840.html
Copyright © 2011-2022 走看看