Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
coolerbob
Aged Yak Warrior
841 Posts |
Posted - 2005-06-30 : 05:27:15
|
| What would be the "exists" check code (which system tables would I check) for sql2000 to see if the following exists?a particular Rolea particular Usera particular Login |
|
|
coolerbob
Aged Yak Warrior
841 Posts |
Posted - 2005-06-30 : 05:32:25
|
| nevermind, worked it outmaster.dbo.sysloginsdbo.sysusers |
 |
|
|
robvolk
Most Valuable Yak
15732 Posts |
Posted - 2005-06-30 : 07:33:07
|
| There's also:sp_helprolesp_helpusersp_helploginsThe reason you should use these is that you should avoid direct system table queries whenever possible, since they will be locked down in future versions of SQL Server (like 2005). |
 |
|
|
|
|
|