title: Using SMO to create and set Database permissions?
body: <p>Is there a way to create new logins and set database permissions on a <code>SQL Server 2005</code> using <code>C#</code> and <code>SMO</code>?</p>
  
  <p>If so, how? If not, what is the best way of doing that?</p>