srv_got_attention (Extended Stored Procedure API)
중요: |
---|
Microsoft SQL Server의 이후 버전에서는 이 기능이 제거됩니다. 새 개발 작업에서는 이 기능을 사용하지 말고, 현재 이 기능을 사용하는 응용 프로그램은 가능한 한 빨리 수정하십시오. 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
구문
BOOL srv_got_attention (SRV_PROC *
srvproc
);
매개 변수
- srvproc
Pointer identifying a database connection.
반환 값
TRUE if the connection is killed or the batch is aborted. FALSE if the connection or batch is active.
주의
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.
보안 정보: |
---|
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. |