Re: Users Role



Maybe you are looking for the IS_MEMBER function. You can
use that to find out if the current user is a member of
whatever database role you pass to the function.

-Sue

On Tue, 17 Jan 2006 16:51:20 -0500, "Rogers"
<naissani@xxxxxxxxxxx> wrote:

>Thanks but I need one query through which I can findout that becauase I am
>creating a cursor and at the runtime I will set the rolname into
>variable....
>
>Thanks
>"samsøe" <samse@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
>news:3BB59877-FADB-4BDB-B3C1-ADEB08A57E5F@xxxxxxxxxxxxxxxx
>>
>>
>> "Rogers" wrote:
>>
>>> I want to findout the users and its role in specific database like that
>>> user
>>> has db_owner rights, I want one query that I can execute in the Query
>>> Analyzer and findout the role.
>>>
>>> Thanks
>>>
>>>
>>>
>> SQL 2000:
>> try
>> exec sp_helpuser or altrenatively
>> exec sp_helpuser <username>
>>
>> change the database context to the relevant database
>

.



Relevant Pages

  • How would I link two records in a single table?
    ... I have an address database. ... Each member of a household has their own record. ... Prev by Date: ...
    (microsoft.public.access.tablesdbdesign)
  • Re: Users Role
    ... Thanks but I need one query through which I can findout that becauase I am ... creating a cursor and at the runtime I will set the rolname into ... > change the database context to the relevant database ...
    (microsoft.public.sqlserver.clients)
  • create a function
    ... i want to findout the whether the time given by user ... is slots availiable or not between those dates in database. ... and the above edt1 and edt2 is the user enter date time, ... whether any slots available based on the bt and et declartions. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: User Pass.
    ... user password. ... I don't wanna change the password, I have a system administrative rights ... is there any way to findout that. ...
    (microsoft.public.sqlserver.clients)
  • Re: HOME BASED JOB OPPORTUNITY - MAKE MILLIONS WITH Rs.60!
    ... Free entry into draw. ... > THIS CAN REALLY MAKE YOU EASY MONEY! ... Try to Remember that you don`t change the Main Database ... > mail/courier with money to the main member and to the other 5 upline ...
    (soc.culture.indian.gujarati)