Hi,
I have just created a role using AMO. I'm supposed to see this role in the Analysis Services Project once I open it, right But I cannot. I tried executing again my codes, and it prompted me an error, which means that it was created successfully.
Error:
Another 'Role' object has the 'TestRole' name.
Why can I not see that in the AS Project
By here is my code:
Svr =
New ServerSvr.Connect(
"Data Source=localhost")DB = Svr.Databases(
"AS17")Cub = DB.Cubes(
"Test")UserRole = DB.Roles.Add(
"TestRole")UserRole.Members.Add(
New RoleMember("xa\chemps"))UserRole.Update()
thanks a lot!
cherriesh