dbTalk Databases Forums  

Can you update/process AS2005 cube with AMO and SQL authentication

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


Discuss Can you update/process AS2005 cube with AMO and SQL authentication in the microsoft.public.sqlserver.olap forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Stan Kondrat
 
Posts: n/a

Default Can you update/process AS2005 cube with AMO and SQL authentication - 09-08-2006 , 01:01 PM






I have seen a few post on this before. If you use SQL Server user and
password in Data Source connection string, the password is never returned to
the AMO client. If you're doing any updates to the cube (and call AMO Update
method) the subsequent Process method will fail because the cube was updated
with an incomplete connection string.

Is there any way out of this mess? Are we forced to use Windows
authentication to perform this kind of operations? Did Microsoft overdo
something with security here?

We have an application that updates cube metadata programmatically and
cannot prompt the user for the password.

Stan

Reply With Quote
  #2  
Old   
Jeje
 
Posts: n/a

Default Re: Can you update/process AS2005 cube with AMO and SQL authentication - 09-09-2006 , 09:36 AM






cube metadata vs access to source data are 2 differents things
when you say "We have an application that updates cube metadata
programmatically"
do you talk about an application that add dimension, cubes, measures etc...
in an OLAP Database?
This type of access only use Windows authentication, there is no SQL Server
login because its SSAS not SQL Server.

Can you describe what is your issue, where and when you suffer a limitation?


"Stan Kondrat" <StanKondrat (AT) discussions (DOT) microsoft.com> wrote

Quote:
I have seen a few post on this before. If you use SQL Server user and
password in Data Source connection string, the password is never returned
to
the AMO client. If you're doing any updates to the cube (and call AMO
Update
method) the subsequent Process method will fail because the cube was
updated
with an incomplete connection string.

Is there any way out of this mess? Are we forced to use Windows
authentication to perform this kind of operations? Did Microsoft overdo
something with security here?

We have an application that updates cube metadata programmatically and
cannot prompt the user for the password.

Stan



Reply With Quote
  #3  
Old   
aabdel1@gmail.com
 
Posts: n/a

Default Re: Can you update/process AS2005 cube with AMO and SQL authentication - 09-11-2006 , 08:19 AM



As an example, an attribute can be added to a dimension:
Dimension dim;
DimensionAttribute attr;
dim = db.Dimensions.GetByName("Product");
attr = dim.Attributes.Add("Weight");
attr.KeyColumns.Add(CreateDataItem(db.DataSourceVi ews[0], "DimProduct",
"Weight"));
attr.AttributeHierarchyEnabled = false;
db.Update(UpdateOption.ExpandFull);
db.Process(ProcessType.ProcessFull);

if you have Connection to the datasource as the following using SQL
Server Audentication:
db.DataSources(0).ConnectionString "Provider=SQLNCLI.1;Data
Source=MyServerNamedInstance;Persist Security Info=True;User
ID=sa;Initial Catalog=AdventureWorksDW" String

The following exception will be returned trying to process the
database:
+ ex {"OLE DB error: OLE DB or ODBC error: Login failed for user
'sa'.; 28000.
' Errors in the high-level relational engine. A connection
could not be made to the data source with the DataSourceID of
'AdventureWorksDW', Name of 'AdventureWorksDW'.
' Errors in the OLAP storage engine: An error occurred while
the dimension, with the ID of 'Product', Name of 'Product' was being
processed.
' Errors in the OLAP storage engine: An error occurred while
the 'Category' attribute of the 'Product' dimension from the
'AmoAdventureWorks' database was being processed.
' OLE DB error: OLE DB or ODBC error: Login failed for user
'sa'.; 28000.
' Errors in the high-level relational engine. A connection
could not be made to the data source with the DataSourceID of
'AdventureWorksDW', Name of 'AdventureWorksDW'.
' Errors in the OLAP storage engine: An error occurred while
the dimension, with the ID of 'Product', Name of 'Product' was being
processed.
' Errors in the OLAP storage engine: An error occurred while
the 'Product Line' attribute of the 'Product' dimension from the
'AmoAdventureWorks' database was being processed.
' OLE DB error: OLE DB or ODBC error: Login failed for user
'sa'.; 28000.
' Errors in the high-level relational engine. A connection
could not be made to the data source with the DataSourceID of
'AdventureWorksDW', Name of 'AdventureWorksDW'.
' Errors in the OLAP storage engine: An error occurred while
the dimension, with the ID of 'Product', Name of 'Product' was being
processed.
' Errors in the OLAP storage engine: An error occurred while
the 'List Price' attribute of the 'Product' dimension from the
'AmoAdventureWorks' database was being processed.
' "} System.Exception




Jeje wrote:
Quote:
cube metadata vs access to source data are 2 differents things
when you say "We have an application that updates cube metadata
programmatically"
do you talk about an application that add dimension, cubes, measures etc...
in an OLAP Database?
This type of access only use Windows authentication, there is no SQL Server
login because its SSAS not SQL Server.

Can you describe what is your issue, where and when you suffer a limitation?


"Stan Kondrat" <StanKondrat (AT) discussions (DOT) microsoft.com> wrote in message
news:8CEA8915-22EC-4610-9275-ADE61934F419 (AT) microsoft (DOT) com...
I have seen a few post on this before. If you use SQL Server user and
password in Data Source connection string, the password is never returned
to
the AMO client. If you're doing any updates to the cube (and call AMO
Update
method) the subsequent Process method will fail because the cube was
updated
with an incomplete connection string.

Is there any way out of this mess? Are we forced to use Windows
authentication to perform this kind of operations? Did Microsoft overdo
something with security here?

We have an application that updates cube metadata programmatically and
cannot prompt the user for the password.

Stan


Reply With Quote
  #4  
Old   
Jéjé
 
Posts: n/a

Default Re: Can you update/process AS2005 cube with AMO and SQL authentication - 09-11-2006 , 09:22 AM



so, why you don't use the NT authentication method but based on the service
account (not the user account or a SQL login)?


<aabdel1 (AT) gmail (DOT) com> wrote

Quote:
As an example, an attribute can be added to a dimension:
Dimension dim;
DimensionAttribute attr;
dim = db.Dimensions.GetByName("Product");
attr = dim.Attributes.Add("Weight");
attr.KeyColumns.Add(CreateDataItem(db.DataSourceVi ews[0], "DimProduct",
"Weight"));
attr.AttributeHierarchyEnabled = false;
db.Update(UpdateOption.ExpandFull);
db.Process(ProcessType.ProcessFull);

if you have Connection to the datasource as the following using SQL
Server Audentication:
db.DataSources(0).ConnectionString "Provider=SQLNCLI.1;Data
Source=MyServerNamedInstance;Persist Security Info=True;User
ID=sa;Initial Catalog=AdventureWorksDW" String

The following exception will be returned trying to process the
database:
+ ex {"OLE DB error: OLE DB or ODBC error: Login failed for user
'sa'.; 28000.
' Errors in the high-level relational engine. A connection
could not be made to the data source with the DataSourceID of
'AdventureWorksDW', Name of 'AdventureWorksDW'.
' Errors in the OLAP storage engine: An error occurred while
the dimension, with the ID of 'Product', Name of 'Product' was being
processed.
' Errors in the OLAP storage engine: An error occurred while
the 'Category' attribute of the 'Product' dimension from the
'AmoAdventureWorks' database was being processed.
' OLE DB error: OLE DB or ODBC error: Login failed for user
'sa'.; 28000.
' Errors in the high-level relational engine. A connection
could not be made to the data source with the DataSourceID of
'AdventureWorksDW', Name of 'AdventureWorksDW'.
' Errors in the OLAP storage engine: An error occurred while
the dimension, with the ID of 'Product', Name of 'Product' was being
processed.
' Errors in the OLAP storage engine: An error occurred while
the 'Product Line' attribute of the 'Product' dimension from the
'AmoAdventureWorks' database was being processed.
' OLE DB error: OLE DB or ODBC error: Login failed for user
'sa'.; 28000.
' Errors in the high-level relational engine. A connection
could not be made to the data source with the DataSourceID of
'AdventureWorksDW', Name of 'AdventureWorksDW'.
' Errors in the OLAP storage engine: An error occurred while
the dimension, with the ID of 'Product', Name of 'Product' was being
processed.
' Errors in the OLAP storage engine: An error occurred while
the 'List Price' attribute of the 'Product' dimension from the
'AmoAdventureWorks' database was being processed.
' "} System.Exception




Jeje wrote:
cube metadata vs access to source data are 2 differents things
when you say "We have an application that updates cube metadata
programmatically"
do you talk about an application that add dimension, cubes, measures
etc...
in an OLAP Database?
This type of access only use Windows authentication, there is no SQL
Server
login because its SSAS not SQL Server.

Can you describe what is your issue, where and when you suffer a
limitation?


"Stan Kondrat" <StanKondrat (AT) discussions (DOT) microsoft.com> wrote in message
news:8CEA8915-22EC-4610-9275-ADE61934F419 (AT) microsoft (DOT) com...
I have seen a few post on this before. If you use SQL Server user and
password in Data Source connection string, the password is never
returned
to
the AMO client. If you're doing any updates to the cube (and call AMO
Update
method) the subsequent Process method will fail because the cube was
updated
with an incomplete connection string.

Is there any way out of this mess? Are we forced to use Windows
authentication to perform this kind of operations? Did Microsoft overdo
something with security here?

We have an application that updates cube metadata programmatically and
cannot prompt the user for the password.

Stan




Reply With Quote
  #5  
Old   
aabdel1@gmail.com
 
Posts: n/a

Default Re: Can you update/process AS2005 cube with AMO and SQL authentication - 09-11-2006 , 09:39 AM



Because we do not want to force the client to use Windows
Authentication.

Abdel



Jéjé wrote:
Quote:
so, why you don't use the NT authentication method but based on the service
account (not the user account or a SQL login)?


aabdel1 (AT) gmail (DOT) com> wrote in message
news:1157980775.731991.9660 (AT) p79g2000cwp (DOT) googlegroups.com...
As an example, an attribute can be added to a dimension:
Dimension dim;
DimensionAttribute attr;
dim = db.Dimensions.GetByName("Product");
attr = dim.Attributes.Add("Weight");
attr.KeyColumns.Add(CreateDataItem(db.DataSourceVi ews[0], "DimProduct",
"Weight"));
attr.AttributeHierarchyEnabled = false;
db.Update(UpdateOption.ExpandFull);
db.Process(ProcessType.ProcessFull);

if you have Connection to the datasource as the following using SQL
Server Audentication:
db.DataSources(0).ConnectionString "Provider=SQLNCLI.1;Data
Source=MyServerNamedInstance;Persist Security Info=True;User
ID=sa;Initial Catalog=AdventureWorksDW" String

The following exception will be returned trying to process the
database:
+ ex {"OLE DB error: OLE DB or ODBC error: Login failed for user
'sa'.; 28000.
' Errors in the high-level relational engine. A connection
could not be made to the data source with the DataSourceID of
'AdventureWorksDW', Name of 'AdventureWorksDW'.
' Errors in the OLAP storage engine: An error occurred while
the dimension, with the ID of 'Product', Name of 'Product' was being
processed.
' Errors in the OLAP storage engine: An error occurred while
the 'Category' attribute of the 'Product' dimension from the
'AmoAdventureWorks' database was being processed.
' OLE DB error: OLE DB or ODBC error: Login failed for user
'sa'.; 28000.
' Errors in the high-level relational engine. A connection
could not be made to the data source with the DataSourceID of
'AdventureWorksDW', Name of 'AdventureWorksDW'.
' Errors in the OLAP storage engine: An error occurred while
the dimension, with the ID of 'Product', Name of 'Product' was being
processed.
' Errors in the OLAP storage engine: An error occurred while
the 'Product Line' attribute of the 'Product' dimension from the
'AmoAdventureWorks' database was being processed.
' OLE DB error: OLE DB or ODBC error: Login failed for user
'sa'.; 28000.
' Errors in the high-level relational engine. A connection
could not be made to the data source with the DataSourceID of
'AdventureWorksDW', Name of 'AdventureWorksDW'.
' Errors in the OLAP storage engine: An error occurred while
the dimension, with the ID of 'Product', Name of 'Product' was being
processed.
' Errors in the OLAP storage engine: An error occurred while
the 'List Price' attribute of the 'Product' dimension from the
'AmoAdventureWorks' database was being processed.
' "} System.Exception




Jeje wrote:
cube metadata vs access to source data are 2 differents things
when you say "We have an application that updates cube metadata
programmatically"
do you talk about an application that add dimension, cubes, measures
etc...
in an OLAP Database?
This type of access only use Windows authentication, there is no SQL
Server
login because its SSAS not SQL Server.

Can you describe what is your issue, where and when you suffer a
limitation?


"Stan Kondrat" <StanKondrat (AT) discussions (DOT) microsoft.com> wrote in message
news:8CEA8915-22EC-4610-9275-ADE61934F419 (AT) microsoft (DOT) com...
I have seen a few post on this before. If you use SQL Server user and
password in Data Source connection string, the password is never
returned
to
the AMO client. If you're doing any updates to the cube (and call AMO
Update
method) the subsequent Process method will fail because the cube was
updated
with an incomplete connection string.

Is there any way out of this mess? Are we forced to use Windows
authentication to perform this kind of operations? Did Microsoft overdo
something with security here?

We have an application that updates cube metadata programmatically and
cannot prompt the user for the password.

Stan



Reply With Quote
  #6  
Old   
Jéjé
 
Posts: n/a

Default Re: Can you update/process AS2005 cube with AMO and SQL authentication - 09-11-2006 , 10:15 AM



well...
create an SQL login without a password on the server and use it to access
the database instead of a secured access.
this is not safe but could easely solve the issue.

I don't understand why you don't want to force the client to use Windows
Authentication while its required to access the AS server! (so you currently
use this windows authenticaion)
your users must have administrator access to the AS database to do these
changes, so you are able to give them access to the source database too
using the windows authentication.

but I hope this workaround will help you.

<aabdel1 (AT) gmail (DOT) com> wrote

Because we do not want to force the client to use Windows
Authentication.

Abdel



Jéjé wrote:
Quote:
so, why you don't use the NT authentication method but based on the
service
account (not the user account or a SQL login)?


aabdel1 (AT) gmail (DOT) com> wrote in message
news:1157980775.731991.9660 (AT) p79g2000cwp (DOT) googlegroups.com...
As an example, an attribute can be added to a dimension:
Dimension dim;
DimensionAttribute attr;
dim = db.Dimensions.GetByName("Product");
attr = dim.Attributes.Add("Weight");
attr.KeyColumns.Add(CreateDataItem(db.DataSourceVi ews[0], "DimProduct",
"Weight"));
attr.AttributeHierarchyEnabled = false;
db.Update(UpdateOption.ExpandFull);
db.Process(ProcessType.ProcessFull);

if you have Connection to the datasource as the following using SQL
Server Audentication:
db.DataSources(0).ConnectionString "Provider=SQLNCLI.1;Data
Source=MyServerNamedInstance;Persist Security Info=True;User
ID=sa;Initial Catalog=AdventureWorksDW" String

The following exception will be returned trying to process the
database:
+ ex {"OLE DB error: OLE DB or ODBC error: Login failed for user
'sa'.; 28000.
' Errors in the high-level relational engine. A connection
could not be made to the data source with the DataSourceID of
'AdventureWorksDW', Name of 'AdventureWorksDW'.
' Errors in the OLAP storage engine: An error occurred while
the dimension, with the ID of 'Product', Name of 'Product' was being
processed.
' Errors in the OLAP storage engine: An error occurred while
the 'Category' attribute of the 'Product' dimension from the
'AmoAdventureWorks' database was being processed.
' OLE DB error: OLE DB or ODBC error: Login failed for user
'sa'.; 28000.
' Errors in the high-level relational engine. A connection
could not be made to the data source with the DataSourceID of
'AdventureWorksDW', Name of 'AdventureWorksDW'.
' Errors in the OLAP storage engine: An error occurred while
the dimension, with the ID of 'Product', Name of 'Product' was being
processed.
' Errors in the OLAP storage engine: An error occurred while
the 'Product Line' attribute of the 'Product' dimension from the
'AmoAdventureWorks' database was being processed.
' OLE DB error: OLE DB or ODBC error: Login failed for user
'sa'.; 28000.
' Errors in the high-level relational engine. A connection
could not be made to the data source with the DataSourceID of
'AdventureWorksDW', Name of 'AdventureWorksDW'.
' Errors in the OLAP storage engine: An error occurred while
the dimension, with the ID of 'Product', Name of 'Product' was being
processed.
' Errors in the OLAP storage engine: An error occurred while
the 'List Price' attribute of the 'Product' dimension from the
'AmoAdventureWorks' database was being processed.
' "} System.Exception




Jeje wrote:
cube metadata vs access to source data are 2 differents things
when you say "We have an application that updates cube metadata
programmatically"
do you talk about an application that add dimension, cubes, measures
etc...
in an OLAP Database?
This type of access only use Windows authentication, there is no SQL
Server
login because its SSAS not SQL Server.

Can you describe what is your issue, where and when you suffer a
limitation?


"Stan Kondrat" <StanKondrat (AT) discussions (DOT) microsoft.com> wrote in message
news:8CEA8915-22EC-4610-9275-ADE61934F419 (AT) microsoft (DOT) com...
I have seen a few post on this before. If you use SQL Server user and
password in Data Source connection string, the password is never
returned
to
the AMO client. If you're doing any updates to the cube (and call AMO
Update
method) the subsequent Process method will fail because the cube was
updated
with an incomplete connection string.

Is there any way out of this mess? Are we forced to use Windows
authentication to perform this kind of operations? Did Microsoft
overdo
something with security here?

We have an application that updates cube metadata programmatically
and
cannot prompt the user for the password.

Stan




Reply With Quote
  #7  
Old   
Stan Kondrat
 
Posts: n/a

Default Re: Can you update/process AS2005 cube with AMO and SQL authentica - 09-18-2006 , 08:50 AM



We have cases where the AS server and the Data Source server reside on 2
different machines. The data source is properly secured using SQL Server
login and no serious client will accept the login with no password.

In some cases drillthrough is required from the web application. Using the
windows authetication for the data source is not the preferred solution in
that case as it gives the anonymous users access to the data source outside
the context of the drillthrough data.

This is a serious limitation. Are there any plans to fix this problem?

Stan

"Jéjé" wrote:

Quote:
well...
create an SQL login without a password on the server and use it to access
the database instead of a secured access.
this is not safe but could easely solve the issue.

I don't understand why you don't want to force the client to use Windows
Authentication while its required to access the AS server! (so you currently
use this windows authenticaion)
your users must have administrator access to the AS database to do these
changes, so you are able to give them access to the source database too
using the windows authentication.

but I hope this workaround will help you.

aabdel1 (AT) gmail (DOT) com> wrote in message
news:1157985591.319664.153230 (AT) i42g2000cwa (DOT) googlegroups.com...
Because we do not want to force the client to use Windows
Authentication.

Abdel



Jéjé wrote:
so, why you don't use the NT authentication method but based on the
service
account (not the user account or a SQL login)?


aabdel1 (AT) gmail (DOT) com> wrote in message
news:1157980775.731991.9660 (AT) p79g2000cwp (DOT) googlegroups.com...
As an example, an attribute can be added to a dimension:
Dimension dim;
DimensionAttribute attr;
dim = db.Dimensions.GetByName("Product");
attr = dim.Attributes.Add("Weight");
attr.KeyColumns.Add(CreateDataItem(db.DataSourceVi ews[0], "DimProduct",
"Weight"));
attr.AttributeHierarchyEnabled = false;
db.Update(UpdateOption.ExpandFull);
db.Process(ProcessType.ProcessFull);

if you have Connection to the datasource as the following using SQL
Server Audentication:
db.DataSources(0).ConnectionString "Provider=SQLNCLI.1;Data
Source=MyServerNamedInstance;Persist Security Info=True;User
ID=sa;Initial Catalog=AdventureWorksDW" String

The following exception will be returned trying to process the
database:
+ ex {"OLE DB error: OLE DB or ODBC error: Login failed for user
'sa'.; 28000.
' Errors in the high-level relational engine. A connection
could not be made to the data source with the DataSourceID of
'AdventureWorksDW', Name of 'AdventureWorksDW'.
' Errors in the OLAP storage engine: An error occurred while
the dimension, with the ID of 'Product', Name of 'Product' was being
processed.
' Errors in the OLAP storage engine: An error occurred while
the 'Category' attribute of the 'Product' dimension from the
'AmoAdventureWorks' database was being processed.
' OLE DB error: OLE DB or ODBC error: Login failed for user
'sa'.; 28000.
' Errors in the high-level relational engine. A connection
could not be made to the data source with the DataSourceID of
'AdventureWorksDW', Name of 'AdventureWorksDW'.
' Errors in the OLAP storage engine: An error occurred while
the dimension, with the ID of 'Product', Name of 'Product' was being
processed.
' Errors in the OLAP storage engine: An error occurred while
the 'Product Line' attribute of the 'Product' dimension from the
'AmoAdventureWorks' database was being processed.
' OLE DB error: OLE DB or ODBC error: Login failed for user
'sa'.; 28000.
' Errors in the high-level relational engine. A connection
could not be made to the data source with the DataSourceID of
'AdventureWorksDW', Name of 'AdventureWorksDW'.
' Errors in the OLAP storage engine: An error occurred while
the dimension, with the ID of 'Product', Name of 'Product' was being
processed.
' Errors in the OLAP storage engine: An error occurred while
the 'List Price' attribute of the 'Product' dimension from the
'AmoAdventureWorks' database was being processed.
' "} System.Exception




Jeje wrote:
cube metadata vs access to source data are 2 differents things
when you say "We have an application that updates cube metadata
programmatically"
do you talk about an application that add dimension, cubes, measures
etc...
in an OLAP Database?
This type of access only use Windows authentication, there is no SQL
Server
login because its SSAS not SQL Server.

Can you describe what is your issue, where and when you suffer a
limitation?


"Stan Kondrat" <StanKondrat (AT) discussions (DOT) microsoft.com> wrote in message
news:8CEA8915-22EC-4610-9275-ADE61934F419 (AT) microsoft (DOT) com...
I have seen a few post on this before. If you use SQL Server user and
password in Data Source connection string, the password is never
returned
to
the AMO client. If you're doing any updates to the cube (and call AMO
Update
method) the subsequent Process method will fail because the cube was
updated
with an incomplete connection string.

Is there any way out of this mess? Are we forced to use Windows
authentication to perform this kind of operations? Did Microsoft
overdo
something with security here?

We have an application that updates cube metadata programmatically
and
cannot prompt the user for the password.

Stan





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.