Sending Result Sets to the Server (Extended Stored Procedure API)

ms164692.note(ko-kr,SQL.90).gif중요:
Microsoft SQL Server의 이후 버전에서는 이 기능이 제거됩니다. 새 개발 작업에서는 이 기능을 사용하지 말고, 현재 이 기능을 사용하는 응용 프로그램은 가능한 한 빨리 수정하십시오. Use CLR Integration instead.

When sending a result set to Microsoft SQL Server, the extended stored procedure should call the appropriate API as follows:

  • The srv_sendmsg function may be called in any order before or after all rows (if any) have been sent with srv_sendrow. All messages must be sent to the client before the completion status is sent with srv_senddone.
  • The srv_sendrow function is called once for each row sent to the client. All rows must be sent to the client before any messages, status values, or completion statuses are sent with srv_sendmsg, the srv_status argument of srv_pfield, or srv_senddone.
  • Sending a row that has not had all its columns defined with srv_describe causes the application to raise an informational error message and return FAIL to the client. In this case, the row is not sent.

참고 항목

개념

Creating Extended Stored Procedures

도움말 및 정보

SQL Server 2005 지원 받기