dbTalk Databases Forums  

Dynamic dimensional security - MDX question

microsoft.public.sqlserver.olap microsoft.public.sqlserver.olap


Discuss Dynamic dimensional security - MDX question in the microsoft.public.sqlserver.olap forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Chau Huynh
 
Posts: n/a

Default 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


Reply With Quote
  #2  
Old   
Bas Kersten [MSFT]
 
Posts: n/a

Default RE: Dynamic dimensional security - MDX question - 02-23-2005 , 07:18 AM






Hi,

Have a look at this webcast:

Support WebCast: Dynamic Dimension Security in Microsoft SQL Server 2000
WGID:439
ID: 828343.KB.EN-US

This Support WebCast session discusses how to implement dynamic Dimension
Security in Microsoft SQL Server 2000 Analysis Services. It reviews some
popular approaches to use during implementation. It also talks about
common issues that may occur and how to resolve them.

HTH,
Bas

"This posting is provided "AS IS" with no warranties, and confers no
rights."


Reply With Quote
  #3  
Old   
Chau Huynh
 
Posts: n/a

Default Re: Dynamic dimensional security - MDX question - 02-24-2005 , 02:55 AM



Hello,

In fact, I studied the WebCast on this stuff, and run into UDF. But our
system uses only 1 NT account for all connections. That's the problem
prevent us from dynamic security (not to use UserName function).
Now I see that my approach by using calculated members is impossible,
too, because of no context for calculation on connection.

I just hope anyone having similar situation (1 NT account) would
suggest a workaround on limiting the number of data role created.

Thanks so much for you help,
Chau Huynh


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.