Re: Find The Users and their roles for all the databases on the server
From: Hari Prasad (hari_prasad_k_at_hotmail.com)
Date: 11/05/04
- Next message: Steve Kass: "Re: How I can get only the numeric part of a string?"
- Previous message: Steve Kass: "Re: Complex Select"
- In reply to: MANCPOLYMAN: "Find The Users and their roles for all the databases on the server"
- Next in thread: MANCPOLYMAN: "Re: Find The Users and their roles for all the databases on the se"
- Reply: MANCPOLYMAN: "Re: Find The Users and their roles for all the databases on the se"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 4 Nov 2004 23:29:28 -0600
Hi,
Execute the below system proc edure to get that information.
sp_helplogins <login_name>
To get all the Logins
sp_helplogins
-- Thanks Hari SQL Server MVP "MANCPOLYMAN" <MANCPOLYMAN@discussions.microsoft.com> wrote in message news:D775C11C-5132-418F-BDB7-C9061CE73726@microsoft.com... > can anyone point me in the right direction of how to loop through > sysdatabases, take each dbname and the use thatname.sysusers to display > all > my databases and which users they have. > > I'm pretty new to cursors and am having difficulty with looping through > the > fist cursor, of dbnames. > > Any help greatly appreiated
- Next message: Steve Kass: "Re: How I can get only the numeric part of a string?"
- Previous message: Steve Kass: "Re: Complex Select"
- In reply to: MANCPOLYMAN: "Find The Users and their roles for all the databases on the server"
- Next in thread: MANCPOLYMAN: "Re: Find The Users and their roles for all the databases on the se"
- Reply: MANCPOLYMAN: "Re: Find The Users and their roles for all the databases on the se"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|