FIX: DMO ExecuteWithResults Fails with Decimal Data (257515)



The information in this article applies to:

  • Microsoft SQL Server 7.0

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.

Modification Type:MajorLast Reviewed:3/14/2006
Keywords:kbBug kbfix kbQFE KB257515