dbTalk Databases Forums  

OLAP Connection Settings Excel

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


Discuss OLAP Connection Settings Excel in the microsoft.public.sqlserver.olap forum.



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

Default OLAP Connection Settings Excel - 05-09-2006 , 10:04 AM






Hi,

I'm using Cubes through Excel 2003 and I'd like to be able to change
the connection settings. For example: I'd like top change the server
name.
Any ideas how to do that???

Help much appreciated.

Chris


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

Default Re: OLAP Connection Settings Excel - 05-10-2006 , 10:35 AM






Chris,
I was just trying to do this yesterday and wasn't able to figure out
how or if it's even possible to change connection settings in Excel. I
ended up deleting and recreating it.


Reply With Quote
  #3  
Old   
Quasimodo17
 
Posts: n/a

Default Re: OLAP Connection Settings Excel - 05-16-2006 , 06:33 AM



Try this for Excel 2003 and AS 2000


Sub ChangeDataSource()

For Each pc In ActiveWorkbook.PivotCaches

pc.Connection = "OLEDB;Provider=MSOLAP.2;Datasource=<ServerName>;I nitial
Catalog=<CatalogName>;Client Cache Size=25; Auto Synch Period=10000"
pc.CommandText = "<CubeName>"
Next pc

End Sub

Urs



Kent wrote:
Quote:
Chris,
I was just trying to do this yesterday and wasn't able to figure out
how or if it's even possible to change connection settings in Excel. I
ended up deleting and recreating it.


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.