Microsoft Knowledge Base Email Alertz

(253114) - The following error may occur when you use DEConnection in a Visual Basic COM object running under ASP: Run-time error '-2147467259 (80004005)': [Microsoft][ODBC DriverManager] Only SQL_DRIVER_NOPROMPT is allowed when connection pooling is enabled

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: 253114 - Last Review: December 3, 2003 - Revision: 3.1

PRB: SQL_DRIVER_NOPROMPT Error When Using DEconnection in VB COM Object

This article was previously published under Q253114

SYMPTOMS

The following error may occur when you use DEConnection in a Visual Basic COM object running under ASP:
Run-time error '-2147467259 (80004005)':
[Microsoft][ODBC DriverManager]
Only SQL_DRIVER_NOPROMPT is allowed when connection pooling is enabled

CAUSE

This error occurs when properties of the DEConnection are not set correctly.

RESOLUTION

To resolve this problem, make sure that the DEConnection's RunPromptBehavior property is set to adPromptNever and specify values for the RunPassword and RunUserName properties of the control.

STATUS

This behavior is by design.

REFERENCES

For additional information, click the article numbers below to view the articles in the Microsoft Knowledge Base:
198378  (http://kbalertz.com/Feedback.aspx?kbNumber=198378/EN-US/ ) HOWTO: Use the VB DataEnvironment in Your MTS Components
193128  (http://kbalertz.com/Feedback.aspx?kbNumber=193128/EN-US/ ) HOWTO: ODBC and OLEDB Connection Prompt Control in ADO

APPLIES TO
  • Microsoft Active Server Pages 4.0
  • Microsoft Visual Basic 5.0 Professional Edition
  • Microsoft Visual Basic 6.0 Professional Edition
  • Microsoft Visual Basic 5.0 Enterprise Edition
  • Microsoft Visual Basic Enterprise Edition for Windows 6.0
  • Microsoft Data Access Components 2.1
  • Microsoft Data Access Components 2.1 Service Pack 2
  • Microsoft Data Access Components 2.5
  • Microsoft Data Access Components 2.6
  • Microsoft Data Access Components 2.7
Keywords: 
kbdataenv kbprb KB253114
       

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