Udostępnij przez


Wyniki wiadomości programu SQL Server

Poniżej Transact-SQL instrukcje nie generują. SQL Server Macierzysta zestawów wierszy dostawca klient OLE DB lub liczbę wierszy usterce podczas wykonywania:

  • DRUKOWANIE

  • RAISERROR z wskaźnik ważności dla 10 lub niższy

  • DBCC

  • zestaw plan wykonania

  • zestaw STATYSTYKI

Instrukcje te zwracać jeden lub więcej komunikatów informacyjnych lub spowodować, że SQL Server Aby przywrócić komunikaty informacyjne, zamiast zestaw wierszy lub liczba wyniki. Na pomyślne wykonanie SQL Server S_OK zwraca macierzystego dostawca klient OLE DB, a wiadomości są dostępne dla SQL Server Konsument macierzystego dostawca klient OLE DB.

The SQL Server Native klient OLE DB dostawca returns S_OK and has one or more informational messages available following the execution of many Transact-SQL statements or the consumer execution of a SQL Server Native klient OLE DB dostawca element członkowski funkcja.

The SQL Server Native klient OLE DB dostawca consumer allowing dynamic specification of query text should check error interfaces after every element członkowski funkcja execution regardless of the value of the return code, the presence or absence of a returned IRowset or IMultipleResults interfejs reference, or a count of affected rows.

See Also

Concepts