Sybase Technical Library - Product Manuals Home
[Search Forms] [Previous Section with Hits] [Next Section with Hits] [Clear Search] Expand Search

set [Table of Contents] shutdown

Reference Manual: Commands

[-] Chapter 1 Commands
[-] setuser

setuser

Description

Allows a Database Owner to impersonate another user.

Syntax

setuser ["user_name"]

Examples

Example 1

The Database Owner temporarily adopts Mary's identity in the database in order to grant Joe permissions on authors, a table owned by Mary:

setuser "mary" 
go 
grant select on authors to joe 
setuser 
go

Usage

Standards

ANSI SQL - Compliance level: Transact-SQL extension.

Permissions

setuser permission defaults to the Database Owner and is not transferable.

See also

Commands

grant, revoke, use


See also [Table of Contents] shutdown