users and roles

  • Hi Folks,

    can anyone help me with a script to find db users and roles in sql 2000?

  • Hi,

    May be you can try this:

    sp_MSforeachdb sp_helpuser --for database wise user info

    sp_MSforeachdb sp_helprole --for database wise roles info

    [font="Verdana"]Renuka__[/font]

  • Yes, there are s4ch ones, and thry're installed on your workstation.

    Start SQL Profiler against one not busy server, desirably the one where there is nobody else but you.

    Go to Entrprise Manager and expand dtabse users. If it was expanded refresh it.

    Return to Profiler and see which commands EM used to get the list of the users.

    _____________
    Code for TallyGenerator

Viewing 3 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply