Partager via


CheckCatalog Method

Cette fonctionnalité sera supprimée dans une prochaine version de Microsoft SQL Server. Évitez d'utiliser cette fonctionnalité dans de nouveaux travaux de développement, et prévoyez de modifier les applications qui utilisent actuellement cette fonctionnalité.

The CheckCatalog method tests the integrity of the catalog of the referenced database.

Syntaxe

object
.CheckCatalog( )
as String

Parts

  • object
    Expression that evaluates to an object in the Applies To list.

Prototype (C/C++)

HRESULT CheckCatalog(SQLDMO_LPBSTR pResult);
ms144210.note(fr-fr,SQL.90).gifRemarque :
SQL Distributed Management Objects (SQL-DMO) strings are always returned as OLE BSTR objects. A C/C++ application obtains a reference to the string. The application must release the reference using SysFreeString.

Returns

A string that contains error detail information

Notes

The CheckCatalog method is implemented using the Transact-SQL DBCC CHECKCATALOG statement. The return value of the CheckCatalog method is a string representation of the error messages returned by DBCC CHECKCATALOG.

Applies to:

Database Object

Voir aussi

Autres ressources

DBCC CHECKCATALOG (Transact-SQL)

Aide et Informations

Assistance sur SQL Server 2005