title: TSQL to know database role members
body: <p>I am using SQL 2000 and SQL 2005.</p>
  
  <p>I want to know which logins have db_owner or db_accessadmin rights to which databases.</p>
  
  <p>I can click on users or database roles  in every database to see that.
  Could this be done in an easier way using TSQL?</p>
  
  <p>Thanks in advance</p>