Creating Role in SQL Server Database using C#
To handle SQL server Database using .net, you will have to use the .net library Microsoft.AnalysisServices
For this you will need to add reference to the dll Analysis Management Objects. This can be found in the .NET tab of the add reference window. Of course, this will give you the
facility to handle Analysis Services Database. Similarly way can be found for Database Engine also.
The below code shows how to create Role in the Analysis Services Database using C#. The steps can be defined as below: