title: Setting sql server usermapping programmatically using C#
body: <p>You can set the usermappings voor a user in sql server for a database, is this possible to do it in C#? for example setting db_owner permissions on a database for a user, using SMO.</p>