|
|
|
SSCommitted
      
Group: General Forum Members
Last Login: Wednesday, October 24, 2012 8:17 PM
Points: 1,558,
Visits: 247
|
|
Comments posted to this topic are about the item Role Membership
http://brittcluff.blogspot.com/
|
|
|
|
|
Ten Centuries
      
Group: General Forum Members
Last Login: Today @ 10:36 AM
Points: 1,404,
Visits: 253
|
|
OK, so why did my server return NULL ?
Kenneth Spencer
|
|
|
|
|
Mr or Mrs. 500
      
Group: General Forum Members
Last Login: Thursday, May 16, 2013 9:12 AM
Points: 557,
Visits: 1,356
|
|
As did mine. I want my point back
|
|
|
|
|
SSCrazy
      
Group: General Forum Members
Last Login: Today @ 7:07 AM
Points: 2,265,
Visits: 5,948
|
|
Mine did too, but you guys didn't read the question properly. It says select all that apply! And a little check in BOL would have revealed that IS_MEMBER can return 0, 1 or NULL, so no points back
--------------------------------------------------------------------------
The function of good software is to make the complex appear to be simple. (Grady Booch)
|
|
|
|
|
SSCommitted
      
Group: General Forum Members
Last Login: Wednesday, October 24, 2012 8:17 PM
Points: 1,558,
Visits: 247
|
|
Jan has is correct. There is 3 possible returns. If a valid Domain and Group are provided the function will a 0 or 1 depending on whether the user is a member or not. If the Domain or Group do not exist, the function will return a NULL.
http://brittcluff.blogspot.com/
|
|
|
|
|
SSCrazy
      
Group: General Forum Members
Last Login: Today @ 12:55 PM
Points: 2,015,
Visits: 2,847
|
|
I think the quesiton could have been worded better. Something like "What are the valid values that can be returned by IS_MEMBER?"
The question implied or I inferred that we had to use the exact code.

I believe I read somewhere that this is deprecated or will be.
|
|
|
|
|
Forum Newbie
      
Group: General Forum Members
Last Login: Monday, July 09, 2012 12:09 PM
Points: 6,
Visits: 16
|
|
| I agree the wording could have been better. D'oh!
|
|
|
|
|
SSCrazy
      
Group: General Forum Members
Last Login: Today @ 7:07 AM
Points: 2,265,
Visits: 5,948
|
|
Now what's so unclear about What are the valid return values for the following code: (select all that apply)? I've seen QotD's that were WAAAY more misleading.
PS: I was not the one who submittted the question
--------------------------------------------------------------------------
The function of good software is to make the complex appear to be simple. (Grady Booch)
|
|
|
|
|
SSC Eights!
      
Group: General Forum Members
Last Login: Yesterday @ 3:38 AM
Points: 812,
Visits: 1,134
|
|
| Yeah it was perfectly easy to understand. Plus it would be a radio-button answer if it could only be one of them, multiple choice implies multiple results
|
|
|
|
|
Hall of Fame
       
Group: General Forum Members
Last Login: Today @ 12:56 PM
Points: 3,226,
Visits: 64,222
|
|
skjoldtc (10/22/2009)
I think the quesiton could have been worded better. Something like "What are the valid values that can be returned by IS_MEMBER?" The question implied or I inferred that we had to use the exact code.  I believe I read somewhere that this is deprecated or will be.
SELECT IS_MEMBER('DOMAIN\SuperUsers')
Unless you're on an AD domain named DOMAIN, this will obviosly not work. However, if your NT admin had named your domain DOMAIN and created a group called SuperUsers within it, it would work.
--Mark Tassin MCITP - SQL Server DBA Proud member of the Anti-RBAR alliance. For help with Performance click this link For tips on how to post your problems
|
|
|
|