Skip to content

Latest commit

 

History

History
43 lines (31 loc) · 2.5 KB

File metadata and controls

43 lines (31 loc) · 2.5 KB
title SQL Server Message Results | Microsoft Docs
ms.custom
ms.date 03/14/2017
ms.prod sql
ms.prod_service database-engine, sql-database, sql-data-warehouse, pdw
ms.reviewer
ms.technology native-client
ms.topic reference
helpviewer_keywords
SQL Server Native Client OLE DB provider, errors
errors [OLE DB], SQL Server message results
OLE DB error handling, SQL Server message results
ms.assetid 6663c6f9-def1-4d9e-845b-2085e5efc401
author markingmyname
ms.author maghan
monikerRange >=aps-pdw-2016||=azuresqldb-current||=azure-sqldw-latest||>=sql-server-2016||=sqlallproducts-allversions||>=sql-server-linux-2017||=azuresqldb-mi-current

SQL Server Message Results

[!INCLUDEappliesto-ss-asdb-asdw-pdw-md]

The following [!INCLUDEtsql] statements do not generate [!INCLUDEssNoVersion] Native Client OLE DB provider rowsets or a count of affected rows when executed:

  • PRINT

  • RAISERROR with a severity of 10 or lower

  • DBCC

  • SET SHOWPLAN

  • SET STATISTICS

These statements either return one or more informational messages or cause [!INCLUDEssNoVersion] to return informational messages in place of rowset or count results. On successful execution, the [!INCLUDEssNoVersion] Native Client OLE DB provider returns S_OK, and the messages are available to the [!INCLUDEssNoVersion] Native Client OLE DB provider consumer.

The [!INCLUDEssNoVersion] Native Client OLE DB provider returns S_OK and has one or more informational messages available following the execution of many [!INCLUDEtsql] statements or the consumer execution of a [!INCLUDEssNoVersion] Native Client OLE DB provider member function.

The [!INCLUDEssNoVersion] Native Client OLE DB provider consumer allowing dynamic specification of query text should check error interfaces after every member function execution regardless of the value of the return code, the presence or absence of a returned IRowset or IMultipleResults interface reference, or a count of affected rows.

See Also

Errors