Microsoft Knowledge Base Article
This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved.
Terms
of Use |
Trademarks
Article ID: 242522 - Last Review: October 17, 2003 - Revision: 2.1
FIX: CCommand::Open() Fails with SQL Server 7.0 and LARGE_INTEGER
This article was previously published under Q242522
While performing a
CCommand::Open on a stored procedure with a LARGE_INTEGER as an input parameter, an ATL consumer receives an HRESULT of E_FAIL and the SQL Server crashes.
The ATL consumer converts a
LARGE_INTEGER data type to an OLE DB DBTYPE_I8 data type. This data type is not supported as an input parameter to a SQL Server 7.0 stored procedure in the Microsoft OLE DB Provider for SQL Server (3.70.06.90) that ships with Microsoft Data Access Components (MDAC) 2.1 Service Pack 2 (SP2).
To work around this problem, use the DB_NUMERIC data type instead of a LARGE_INTEGER.
Microsoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article.
APPLIES TO
- Microsoft Data Access Components 2.1
- Microsoft OLE DB Provider for SQL Server 7.01
| kbbug kbfix kbmdac250fix kbmdacnosweep KB242522 |
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