sp_iqdroplogin procedure

Function

Drops a 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.

By default, you can only drop users with sp_iqdroplogin on a multiplex write server. To enable sp_iqdroplogin on query servers, you must set the database option MPX_LOCAL_SPEC_PRIV to change the default. For details, see “MPX_LOCAL_SPEC_PRIV option”.

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 appears 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')