472,145 Members | 1,433 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,145 software developers and data experts.

Unspecified error when obtaining an ADO recordset from a C# progra

Hi,
I'm using an ADO DB connection in a C# program to retrieve records from
either an MS Access or MS SQL Server 2000 data source. The queries work fine
when tried out in the query analyzers for both data sources but fails within
the program at the point of performing the query:

rsOpen(sQuery.ToString(), m_Conn, ADODB.CursorTypeEnum.adOpenDynamic,
ADODB.LockTypeEnum.adLockOptimistic, (int)ADODB.CommandTypeEnum.adCmdText);

A COMException is being raised, which outputs an 'Unspecified error' and
returns HResult = -2147467259 and _COMPlusExceptionCode = -532459699. Can you
give me more insight to this problem pls?

Thanks and Regards,
Chris
Nov 25 '05 #1
0 841

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Derek Fountain | last post: by
reply views Thread by Sam Sungshik Kong | last post: by
6 posts views Thread by wk6pack | last post: by
1 post views Thread by endo55 | last post: by
13 posts views Thread by Praveen_db2 | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.