Using SMO to Create and Set Database Permissions?

Is there a way to create new logins and set database permissions on SQL Server 2005

using C#

and SMO

?

If so, how? If not, what is the best way to do this?

0


source to share


1 answer


You can use the Microsoft.SqlServer.Management.Smo.Login class and call the Create method. See here for details .



0


source







All Articles