BUG: Execution of IS_MEMBER May Cause AV When Many Roles Exist

ID: Q246189


The information in this article applies to:
  • Microsoft SQL Server version 7.0

BUG #: 56457 (SQLBUG_70)

SYMPTOMS

When many roles exist in a database, and you use the IS_MEMBER() T-SQL function to determine if the current user is a member of a particular role, you may receive an error similar to the following:

ODBC: Msg 0, Level 19, State1 SqlDumpExceptionHandler: Process 8 generated fatal exception c0000005 EXCEPTION_ACCESS_VIOLATION. SQL Server is terminating this process.


WORKAROUND

Use IS_SRVROLEMEMBER('role') instead. Refer to SQL Server Books Online for specifics on the use and syntax of this function.


STATUS

Microsoft has confirmed this to be a problem in SQL Server version 7.0.


MORE INFORMATION

This will not happen when you check every role for membership. For instance, it may appear when you check for membership in the 100th role but the first 99 will check fine.

Additional query words:

Keywords : kbSQLServ700bug
Version : winnt:7.0
Platform : winnt
Issue type : kbbug


Last Reviewed: January 7, 2000
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.