Results 1 to 2 of 2

Creating a connection to Analysis Services

Threaded View

  1. #1
    Valued Forum Contributor
    Join Date
    04-24-2014
    Location
    United States
    MS-Off Ver
    Office 365 ProPlus
    Posts
    853

    Creating a connection to Analysis Services

    I'm trying to learn how to create a connection via VBA to a external Financial Analysis database where I then can create a Pivot Table and run CUBE formulas from that connection.

    Currently, If I want to create a connection, I need to enter

    1. the url address. something like. https://someaddress/blah/blah.dll
    2. A username and password.

    I know after I do this, the connection creates an odc file and the connection is stored on the PC. After that I typically just tell Excel to create the connection only, and then I will add pivot table if needed and start building a spreadsheet with the CUBE formulas.

    I'm trying to perhaps make this easier for others where I may look to include the script in our XLAM add in file where the user would maybe be prompted for the password in creating the connection. Also, is there any to store the connection in the XLAM Add-in file itself and not in an odc file? Does that make sense?

    I'm just not sure even where to start in trying to create the connection.

    If it helps, I did export the odc file and can see this information. So I think I just need to learn how to turn into a script.

    <odc:Connection odc:Type="OLEDB">
       <odc:ConnectionString>Provider=MSOLAP.8;Password=MYPASSWORD;Persist Security Info=True;User ID=MYUSERID;Data Source=https://sourcepath.dll;Update Isolation Level=2;Initial Catalog=MYUSERNAME</odc:ConnectionString>
       <odc:CommandType>Cube</odc:CommandType>
       <odc:CommandText>FILENAME</odc:CommandText>
       <odc:CredentialsMethod>None</odc:CredentialsMethod>
      </odc:Connection>
     </odc:OfficeDataConnection>
    Any help is appreciated.

    Thanks,
    PT
    Last edited by ptmuldoon; 08-30-2019 at 08:02 PM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Excel 2003 & Add-in for Analysis Services
    By mmcardle in forum Excel General
    Replies: 0
    Last Post: 10-08-2010, 06:26 AM
  2. Excel Add-In for Analysis Services - What-If
    By ssauerw in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-17-2006, 04:08 AM
  3. Excel Add-in for SQL Server Analysis Services
    By Robin Krupp in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 07-28-2006, 12:20 PM
  4. [SOLVED] Excel Add-in for SQL Server Analysis Services
    By Robin Krupp in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 07-28-2006, 12:15 PM
  5. PivotTableWizard using SQL Analysis Services
    By Kam in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-29-2006, 03:00 AM
  6. Problem connecting to Analysis Services
    By ln54 in forum Excel General
    Replies: 1
    Last Post: 03-08-2006, 01:10 PM
  7. Issue with Excel Add-in for Analysis Services
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-18-2006, 09:45 PM
  8. [SOLVED] Add-in for SQL Server Analysis Services
    By Hans Knudsen in forum Excel General
    Replies: 0
    Last Post: 08-28-2005, 04:05 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1