Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7693583
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T21:07:22+00:00 2026-05-31T21:07:22+00:00

Executing the following sql: USE [WSS_Content] EXEC sp_helplogins returns two result sets, and within

  • 0

Executing the following sql:

USE [WSS_Content]
EXEC sp_helplogins

returns two result sets, and within the second resultset I get several rows but one in particular which looks like this:

LoginName   DBName              UserName                UserOrAlias
DEMO\SPUser SharePoint_Config   SharePoint_Shell_Access MemberOf

This is as expected, and what I want to see. However executing the following sql:

EXEC sp_helprole 'SharePoint_Shell_Access'

gives me an error which says: ‘SharePoint_Shell_Access’ is not a role. But it is! I can see that it is from SQL Server Management Studio and it even shows me the role’s members from right there.

Ideally what I’m trying to accomplish is to be able to use this:

SELECT IS_MEMBER('SharePoint_Shell_Access')

but of course, this returns null because it also thinks that is not a valid role when it most definitely is. What gives, and how do I best query to see if a given user (or the current user) is a member of this custom database role?

I am running SQL Server 2008 R2.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T21:07:23+00:00Added an answer on May 31, 2026 at 9:07 pm

    As it turns out, sp_helplogins returns results across all databases. Which is why that role was showing up when it shouldn’t have if it were limited to the current db like I previously thought.

    For whatever reason I just didn’t notice that and thought that entry was applicable to the WSS_Content. Instead it was from the SharePoint_Config database. The error was correct after all and there was no role by that name on the database where I was looking. I was just getting it confused.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Sometimes I get the following from SQL Server 2005 when executing a stored procedure:
When executing the following (complete) SQL query on Microsoft SQL Server 2000: SELECT B.ARTIFACTTNS,
I am successfully executing the following query in SQL Server 2008 built into VS2008:
I'm currently having following error message when executing a .sql file with about 26MB
I'm running the following statement to see what queries are executing in sql server:
I get an exception while executing following piece of code bool FieldValueMessage::Get(const std::string &field,
while executing the following query, i get an error that there's an error in
I have the following situation... I use CallableStatement from java.sql package. When I use
I am executing a SQL Server 2000 DTS package using C# by following the
Try executing the following in JavaScript: parseInt('01'); //equals 1 parseInt('02'); //equals 2 parseInt('03'); //equals

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.