Click here to Skip to main content
15,886,199 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

How can i retrieve the user login and permissions scripts in sql server 2000.

can anyone help on this.
Posted

1 solution

Try running
exec sp_helplogins
- although from memory you may have to have sysadmin permissions yourself to run it.

Failing that, there are tables in the master database that contain the info you need ... something like this might work (but you may need to tweak it - I don't have SQL2000 to test it on)
SQL
use master
select * from syslogins


[EDIT - I should have looked here first ...]
list user permissions sql 2000 [^]
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900