suser_name  syb_sendmsg

Chapter 2: Transact-SQL Functions

syb_quit

Description

Terminates the connection.

Syntax

syb_quit()

Examples

Example 1

Terminates the connection in which the function is executed and returns an error message.

select syb_quit()
-------------
CT-LIBRARY error:
    ct_results(): network packet layer: 
internal net library error: Net-Library operation terminated due to disconnect

Usage

You can use syb_quit to terminate a script if the isql preprocessor command exit causes an error.

Permissions

Any user can execute syb_quit.





Copyright © 2005. Sybase Inc. All rights reserved. syb_sendmsg

View this book as PDF