Microsoft KB Archive/246189
Article ID: 246189
Article Last Modified on 3/14/2006
- Microsoft SQL Server 7.0 Standard Edition
This article was previously published under Q246189
BUG #: 56457 (SQLBUG_70)
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:
Use IS_SRVROLEMEMBER('role') instead. Refer to SQL Server Books Online for specifics on the use and syntax of this function.
Microsoft has confirmed this to be a problem in SQL Server 7.0. This problem has been corrected in U.S. Service Pack 2 for Microsoft SQL Server 7.0. For more information, click the following article number to view the article in the Microsoft Knowledge Base:
254561 INF: How to Obtain Service Pack 2 for Microsoft SQL Server 7.0 and Microsoft Data Engine (MSDE) 1.0
For more information, contact your primary support provider.
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.
Keywords: kbbug kbfix KB246189