Share via


srv_got_attention (Extended Stored Procedure API)

ms164635.note(fr-fr,SQL.90).gifImportant :
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 modifiez dès que possible les applications qui utilisent actuellement cette fonctionnalité. Use CLR integration instead.

Checks whether the current connection or task needs to be aborted and returns TRUE if the connection is killed or the batch is aborted

Syntaxe

BOOL srv_got_attention (SRV_PROC * 
srvproc
);

Paramètres

  • srvproc
    Pointer identifying a database connection.

Valeur de retour

TRUE if the connection is killed or the batch is aborted. FALSE if the connection or batch is active.

Notes

A long-running extended stored procedure should check the server attention by calling srv_got_attention periodically so that the procedure may terminate itself when the connection is killed or the batch is aborted.

ms164635.security(fr-fr,SQL.90).gifRemarque relative à la sécurité :
You should thoroughly review the source code of extended stored procedures, and you should test the compiled DLLs before you install them on a production server. For information about security review and testing, see this Microsoft Web site.