sp_iqdroplogin procedure

Function

Drops an Sybase IQ user account.

Syntax1

call sp_iqdroplogin (‘userid’)

Syntax2

sp_iqdroploginuserid

Syntax3

sp_iqdroplogin userid

Syntax4

sp_iqdroplogin (‘userid’)

Permissions

DBA authority required.

Usage

userid User ID of the user to drop.

See also

“sp_iqaddlogin procedure”

REVOKE statement

Chapter 12, “Managing User IDs and Permissions” in Sybase IQ System Administration Guide

Description

sp_iqdroplogin drops the specified user, and removes the user from the IQ_USER_LOGIN_INFO_TABLE.

Errors

The following errors may occur. Causes are listed after each error.

Permission denied: You do not have permission to execute the procedure sp_iqdroplogin.

Cause: A user without DBA role tried to execute sp_iqdroplogin.

RAISERROR executed: User <loginname> does not exist.

Cause: The message will appear if the user tries to drop a nonexistent login.

Examples

The following stored procedure calls remove the user rose.

sp_iqdroplogin 'rose'
sp_iqdroplogin rose
call sp_iqdroplogin ('rose')