Tcl API Reference -- ns_dberror

### ns_dberror

#### Overview

Return SQL error information

#### Syntax

ns_dberrorcode dbhandle

ns_dberrormsg dbhandle

ns_dbreturnerror conn dbhandle ?title? ?aftermsg?

#### Description

ns_dberrorcode returns the 5-character SQL error code for the last database error.

ns_dberrormsg returns a text description of the last database error.

ns_dbreturnerror returns an HTML version of the last database error message to the client. The text in aftermsg is appended to the HTML after the error message.

Top of Page
Copyright © 1998-99 America Online, Inc.