Microsoft KB Archive/257515

= FIX: DMO ExecuteWithResults Fails with Decimal Data =

Article ID: 257515

Article Last Modified on 3/14/2006

-

APPLIES TO


 * Microsoft SQL Server 7.0 Standard Edition

-



This article was previously published under Q257515



BUG #: 54311 (SQLBUG_70)

BUG #: 53042 (SQLBUG_70)



SYMPTOMS
Retrieving a recordset that has five (5) or more columns through the ExecuteWithResults SQL Distributed Management Objects (DMO) method may fail if the datatype of any of the columns is money or decimal/numeric with a scale of 1 or greater. The error returned is either 440:

Automation error.

-or-

Invalid Descriptor Index.



WORKAROUND
Use an API (ActiveX Data Objects (ADO), OLE DB, ODBC) that is more focused on data access. SQL DMO is intended primarily for administrative activities. For more information, see the "Choosing an API" topic in SQL Server Books Online.



STATUS
Microsoft has confirmed this to be a problem in SQL Server 7.0. This problem has been corrected in U.S. Service Pack 1 for Microsoft SQL Server 7.0. For more information, click the following article number to view the article in the Microsoft Knowledge Base:

232570INF: How to Obtain Service Pack 1 for Microsoft SQL Server 7.0 and Microsoft Data Engine (MSDE) 1.0

For more information, contact your primary support provider.

Additional query words: DMO SQL-DMO Distributed Management Objects SQLSTATE 07009 ExecuteWithResultsAndMessages 440

Keywords: kbbug kbfix kbqfe KB257515

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.