The information in this article applies to:
SYMPTOMSWhen using the SQL Server 7.0 Distributed Management Objects (DMO) there are some fundamental differences in how results may be returned with ExecuteWithResults when compared to the 6.5 version of SQLDMO. CAUSE
SQL Server 7.0 is based on the ODBC API so there are some differences in how informational messages are returned to the client compared to SQL Server 6.5. In SQL 6.5 using some of the DBCC commands, the output was returned as a resultset but with the advent of 7.0 all DBCC commands are now returned as messages. Calling the ExecuteWithResults method on SQL Server 7.0 returns a empty resultset as there are not any records in a resultset, only messages. To get access to the messages, call the ExecuteWithResultsAndMessages method.
WORKAROUNDIn most cases the only workaround is to use the ExecuteWithResultsAndMessages method, but some DBCC commands allow the additional qualifier WITH TABLERESULTS to have the information generated as a resultset. Consult the SQL Server 7.0 documentation to see which commands support the WITH TABLERESULTS qualifier. Additional query words: SEM enterprise manager vb basic visual
Keywords : kbSQLServ700 kbDSupport |
Last Reviewed: December 17, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |