Microsoft Knowledge Base Email Alertz

(314635) - 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...

Search KbAlertz

Advanced Search

Receive Microsoft Knowledge Base articles by E-Mail?

Every night we scan the Microsoft Knowledge Base. If technologies you're interested in are updated, we'll send you an e-mail. You only get one e-mail a day, and only when new articles are added.

Click here to create a
FREE account
Already have an account?
[Click here to Login]











Microsoft Knowledge Base Article

This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks

Article ID: 314635 - Last Review: April 6, 2004 - Revision: 9.3

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

This article was previously published under Q314635

On This Page

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.

RESOLUTION

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 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

  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
Keywords: 
kbbug kbfix KB314635
       

Community Feedback System

Very often, it takes hours to solve a problem. Very often, you've looked high and low, and have tried a lot of solutions. When you finally found it, chances are, it was because someone else helped you. Here's your chance to give back. Use our community feedback tool to let others know what worked for you and what didn't.

Please also understand that the community feedback system is not warranted to be correct, it's simply a system that we've built to let people try and help each other. If something in a feedback response doesn't make sense to you, or you're not comfortable making changes that the feedback talks about (like registry edits), please consult a professional.

Thank you for using kbAlertz.com Feedback System.

-- Scott Cate

David Mortensen Report As Irrelevant  
Written: 4/12/2004 3:53 PM
Worked like a charm but had to use Microsoft ActiveX Data Object 2.7, 2.6 still didn't do the trick. Thanks dm