shsql: identity

SQL database system
| Manual page for identity(TDH)

## IDENTITY

`IDENTITY` is a shsql SQL command extension that allows a user identity to be supplied.`` Since shsql doesn't use logins or passwords, this command provides a way of associating a process with a unique user or session. Only one `IDENTITY` should be supplied for any given process.`` Typically `IDENTITY` is set by the middleware.``

Identity can be represented by any character string.`` A login name, REMOTE_HOST, or other unique session identifier work well.``

`IDENTITY` must be used if a process will access a table that uses record locking.`` Otherwise it is not required.`` `IDENTITY` is also useful, but not required, for showing user identity in the database transaction logs and error logs.`` If it is used, the `IDENTITY` command should be issued before any SQL commands that update the database.`` Identity is in effect during the current process only.``

Usage: `IDENTITY` tag

Example: `identity "steve"`
Copyright Steve Grubb

Markup created by unroff 1.0, `` `` March 18, 2004.