dbTalk Databases Forums  

using databse roles with ADOMD

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


Discuss using databse roles with ADOMD in the microsoft.public.sqlserver.olap forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Andrea Temporin
 
Posts: n/a

Default using databse roles with ADOMD - 02-06-2004 , 07:58 AM






I'm trying to use database roles in a VB6 application using ADO MD.
Even though the roles I've defined works inside the analyse menager I don't
know hot to use them with a ADOMD connection.
I use a connection string like this:
Data source=server;Provider=MSOLAP.2;Initial catalog=database;User
id=domain\user;password=my_password;
and I set
ActiveConnection.Properties("roles") = role_to_use

Is It right? Is there something mpore I have to do?

Thanks
Andrea



Reply With Quote
  #2  
Old   
Dave Wickert [MSFT]
 
Posts: n/a

Default Re: using databse roles with ADOMD - 02-06-2004 , 09:32 AM






The roles you are "member of" is based on your NT Username (remember that AS
always uses NT authentication). Once that set is established, the roles=
parameter on the connectstring can be used to establish a *subset* of those
roles to use in this particular connection. So, for example, if your NT
Username is a member of "Branch Managers", "District Managers" and
"Analysts", then you can use roles=Analysts to only invoke that role for
this connection. See BOL under the topic "PivotTable Service Properties".
--
Dave Wickert [MS]
dwickert (AT) online (DOT) microsoft.com
Program Manager
BI Practices Team
SQL BI Product Unit (Analysis Services)
--
This posting is provided "AS IS" with no warranties, and confers no rights.


"Andrea Temporin" <NOSPAM_temporin (AT) encopro (DOT) it> wrote

Quote:
I'm trying to use database roles in a VB6 application using ADO MD.
Even though the roles I've defined works inside the analyse menager I
don't
know hot to use them with a ADOMD connection.
I use a connection string like this:
Data source=server;Provider=MSOLAP.2;Initial catalog=database;User
id=domain\user;password=my_password;
and I set
ActiveConnection.Properties("roles") = role_to_use

Is It right? Is there something mpore I have to do?

Thanks
Andrea





Reply With Quote
  #3  
Old   
Andrea Temporin
 
Posts: n/a

Default Re: using databse roles with ADOMD - 02-06-2004 , 10:29 AM



Now it works, but there is still one thing I don't understand.
If I log to the computer with user John.Smith member of role=Role1 and in my
connection string I set User ID=Ann.Ross with roles=Role2 I see everything
as John.Smith. I can work with Ann.Ross and Role2 only if I log to the
computer as Ann.Ross.
Is it right or is there something more I have to do? Does ADO MD consider
the user name i set in the connection string?

Thanks

Andrea

"Dave Wickert [MSFT]" <dwickert (AT) online (DOT) microsoft.com> wrote

Quote:
The roles you are "member of" is based on your NT Username (remember that
AS
always uses NT authentication). Once that set is established, the roles=
parameter on the connectstring can be used to establish a *subset* of
those
roles to use in this particular connection. So, for example, if your NT
Username is a member of "Branch Managers", "District Managers" and
"Analysts", then you can use roles=Analysts to only invoke that role for
this connection. See BOL under the topic "PivotTable Service Properties".
--
Dave Wickert [MS]
dwickert (AT) online (DOT) microsoft.com
Program Manager
BI Practices Team
SQL BI Product Unit (Analysis Services)
--
This posting is provided "AS IS" with no warranties, and confers no
rights.


"Andrea Temporin" <NOSPAM_temporin (AT) encopro (DOT) it> wrote in message
news:%23zToIlL7DHA.1852 (AT) TK2MSFTNGP10 (DOT) phx.gbl...
I'm trying to use database roles in a VB6 application using ADO MD.
Even though the roles I've defined works inside the analyse menager I
don't
know hot to use them with a ADOMD connection.
I use a connection string like this:
Data source=server;Provider=MSOLAP.2;Initial catalog=database;User
id=domain\user;password=my_password;
and I set
ActiveConnection.Properties("roles") = role_to_use

Is It right? Is there something mpore I have to do?

Thanks
Andrea







Reply With Quote
  #4  
Old   
Frank Samuel
 
Posts: n/a

Default Re: using databse roles with ADOMD - 02-09-2004 , 05:54 AM



Hi Andrea,
AS always uses the current Windows account (perhaps restricted by additional
Roles= in the connection string).
You are able to set username and password in the connection string just and
only if you connect AS via an http connection.

HTH
Frank

"Andrea Temporin" <NOSPAM_temporin (AT) encopro (DOT) it> wrote

Quote:
Now it works, but there is still one thing I don't understand.
If I log to the computer with user John.Smith member of role=Role1 and in
my
connection string I set User ID=Ann.Ross with roles=Role2 I see everything
as John.Smith. I can work with Ann.Ross and Role2 only if I log to the
computer as Ann.Ross.
Is it right or is there something more I have to do? Does ADO MD consider
the user name i set in the connection string?

Thanks

Andrea

"Dave Wickert [MSFT]" <dwickert (AT) online (DOT) microsoft.com> wrote in message
news:O5KbQaM7DHA.1804 (AT) TK2MSFTNGP12 (DOT) phx.gbl...
The roles you are "member of" is based on your NT Username (remember
that
AS
always uses NT authentication). Once that set is established, the roles=
parameter on the connectstring can be used to establish a *subset* of
those
roles to use in this particular connection. So, for example, if your NT
Username is a member of "Branch Managers", "District Managers" and
"Analysts", then you can use roles=Analysts to only invoke that role for
this connection. See BOL under the topic "PivotTable Service
Properties".
--
Dave Wickert [MS]
dwickert (AT) online (DOT) microsoft.com
Program Manager
BI Practices Team
SQL BI Product Unit (Analysis Services)
--
This posting is provided "AS IS" with no warranties, and confers no
rights.


"Andrea Temporin" <NOSPAM_temporin (AT) encopro (DOT) it> wrote in message
news:%23zToIlL7DHA.1852 (AT) TK2MSFTNGP10 (DOT) phx.gbl...
I'm trying to use database roles in a VB6 application using ADO MD.
Even though the roles I've defined works inside the analyse menager I
don't
know hot to use them with a ADOMD connection.
I use a connection string like this:
Data source=server;Provider=MSOLAP.2;Initial catalog=database;User
id=domain\user;password=my_password;
and I set
ActiveConnection.Properties("roles") = role_to_use

Is It right? Is there something mpore I have to do?

Thanks
Andrea









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.