Dynamic dimensional security - MDX question -
02-22-2005
, 05:57 AM
Hello,
Anyone who has any idea on limiting number of datarole created please
give help. Here is my problem.
Our web application uses 1 NT account to connect (by COM) to database
server. The connection is made with datarole based on which application
user is. We have trouble on creating new role when the number of them
become large.
On searching for this, we run into User Defined Function. But we get
another problem with the MDX function UserName, because the application
only uses 1 NT account, and will return the same all the time.
I try to work around by using calculated member to pass user
information to UDF, and set the Allowed Members field to this
{StrToSet(myUDF(RoleId, "DimId"))}
(where RoleId is a calculated member)
but I got an error "Error occurred while processing security for cube
'<cube name> (Security error)" on save (close) the Edit database role
dialog.
I debug by left out the calculated member and set the field to this
{StrToSet(myUDF("DR_chau", "DimId"))}
and things work.
1. Can I put calculated embers to Allowed Members fields?
2. Is there any approach to this datarole stuff without using UserName
function?
I would highly appreciate any advise/docs.
Thank a lot.
Chau Huynh |