Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

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


View products that this article applies to.

Symptoms

When you use the adPromptAlways constant to open a connection to SQL Server 2000, the user receives the following error message:
'Run time error '-2147418113 (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.

↑ Back to the top


Resolution

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

↑ Back to the top


Status

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:

↑ Back to the top


More information

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.

↑ Back to the top


Keywords: KB314635, kbfix, kbbug

↑ Back to the top

Article Info
Article ID : 314635
Revision : 12
Created on : 4/6/2004
Published on : 4/6/2004
Exists online : False
Views : 390