title: Check if user is member of dbo role in SQL Server
body: <p>I need a T-SQL statement to check if a user is member of a database role in SQL Server. Specifically I need to know if the user is member of the dbo role, because then I don't have to grant additional authority to that user.</p>
  
  <p>If I try to add additional authority when the user is dbo it fails, and my script fails...</p>