dbTalk Databases Forums  

Accessing Cube Data Source from an Assembly

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


Discuss Accessing Cube Data Source from an Assembly in the microsoft.public.sqlserver.olap forum.



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

Default Accessing Cube Data Source from an Assembly - 08-18-2006 , 05:05 AM






Hi all,

within an SSAS project we are using an assembly to retrieve dimension
permissions based on data stored in a adminstration database.
Currently we store the connection string used to access in the
administration database within the assembly:
Dim locCon As New SqlConnection

....

locCon.ConnectionString = "data source=eira; database=ServiceAdmin;
Integrated Security=SSPI;"

....

Obviously this is not a nice solution. As I understand it is not possible to
access a application.config file from a DLL, because the DLL will use the
config file belonging to the corresponding application.

I wonder if it is not possible to access one of the data sources deployed
with the cube from the assembly.

somthing like:

locCon.ConnectionString = "data source=cubedatasource"

with cubedatasource beeing the name of the data source used in the cube

Well, it doesn't seem to work that way. Any help is appreciated

Thanks

bjh



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.