+ Reply to Thread
Results 1 to 12 of 12

Error PivotTable External Data Source With Linked Table

  1. #1
    Forum Contributor
    Join Date
    01-07-2004
    Posts
    314

    Error PivotTable External Data Source With Linked Table

    Hi all,

    Using Sql Server Express 2012 64 bit
    Office 2013 64 bit

    I Linked from Access to a table in SSE - works
    I created a query on the linked table - works
    I saved and closed Access
    I opened a new excel workbook
    I attempted to use the query as my data source for a new PivotTable and received this error

    The query did not run, or the database table could not be opened.
    Check the database server or contact your database administrator. Make sure the external database is available and hasn't been moved or reorganized, then try the operation again.
    Both SSE and Access are on local machine
    Other than PivotTable, everything else seems to work perfectly.
    SQL Server and SQL Browser are running.

    I can create a PivotTable in excel using other tables from the Access database, just not linked tables or queries that use linked tables.

    Have you seen/hear of this?
    Any solutions?

    thx
    w
    Kind regards,
    w

    http://dataprose.org

  2. #2
    Forum Contributor noboffinme's Avatar
    Join Date
    08-29-2013
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel 2003/7/10/13/16/19
    Posts
    1,071

    Re: Error PivotTable External Data Source With Linked Table

    Hi goss,

    Is it possible that your Access DB needs to be opened?

    Just a guess & the only thing I can think of.
    Remember you are unique, like everyone else

  3. #3
    Forum Contributor
    Join Date
    01-07-2004
    Posts
    314

    Re: Error PivotTable External Data Source With Linked Table

    Hi noboffinme,

    I think it may have something to do with Trusted Connection ion ODBC Connection String instead of passing the UserID and pwd may be required since a table linked back to SQL Express
    I'll tinker with it tonight and post an update.

    Thx
    w
    Last edited by goss; 03-10-2014 at 11:13 AM. Reason: Typo

  4. #4
    Registered User
    Join Date
    05-29-2014
    Posts
    4

    Re: Error PivotTable External Data Source With Linked Table

    Same problem here. Since the upgrade to excel 64bits I can only retrieve tables from access. When the Access query contains a link to sql server, I get the same error. It's a huge problem because most of the reports are linked to an access database which uses sql linked tables.

    Any progress on a solution ?

  5. #5
    Forum Contributor noboffinme's Avatar
    Join Date
    08-29-2013
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel 2003/7/10/13/16/19
    Posts
    1,071

    Re: Error PivotTable External Data Source With Linked Table

    Another thought, are you set up as an administrator user status?

  6. #6
    Registered User
    Join Date
    05-29-2014
    Posts
    4

    Re: Error PivotTable External Data Source With Linked Table

    No, but I think I'm confining the issue to the connection between Access 64 bits and SQL 32bits.

    My guess is that Access x64 doesn't have the drivers to interact with SQL 32bits, thus the problem is not directly related to excel.

  7. #7
    Forum Contributor noboffinme's Avatar
    Join Date
    08-29-2013
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel 2003/7/10/13/16/19
    Posts
    1,071

    Re: Error PivotTable External Data Source With Linked Table

    OK, to backtrack a bit, you have installed SSE & MS Office 2013 on your PC.

    I Linked from Access to a table in SSE - works
    I created a query on the linked table - works
    I saved and closed Access
    I opened a new excel workbook
    I attempted to use the query as my data source for a new PivotTable and received this error
    You linked Access to SSE so you can see the Access tables in SSE
    You created a query in Access that is linked to SSE, can you create the query in SSE using Access?
    How is Excel connecting to SSE? ODBC to where...?

    I could be wrong in what I think may be happening, but thought I'd ask some more questions and offer my view.
    Last edited by noboffinme; 05-29-2014 at 03:43 AM.

  8. #8
    Registered User
    Join Date
    05-29-2014
    Posts
    4

    Re: Error PivotTable External Data Source With Linked Table

    Now , after your idea I'm exploring authentication settings, because are different for servers running sql 64bits and 32bits. (which is strange because in office 32bits works)

    I have queries in Access using linked tables from a master database in sql server. Excel connects to the query in a local access database.

  9. #9
    Forum Contributor noboffinme's Avatar
    Join Date
    08-29-2013
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel 2003/7/10/13/16/19
    Posts
    1,071

    Re: Error PivotTable External Data Source With Linked Table

    I usually connect Excel to SQL Server to access any tables & queries sitting in SQL Server.

    Can you upload your Access query to SQL Server & access it through SQL Server to Excel?

  10. #10
    Forum Contributor noboffinme's Avatar
    Join Date
    08-29-2013
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel 2003/7/10/13/16/19
    Posts
    1,071

    Re: Error PivotTable External Data Source With Linked Table

    I usually connect Excel to SQL Server to access any tables & queries sitting in SQL Server.

    Can you upload your Access query to SQL Server & access it through SQL Server to Excel?

  11. #11
    Registered User
    Join Date
    05-29-2014
    Posts
    4

    Re: Error PivotTable External Data Source With Linked Table

    You were spot on , the problem was related to security authentication. For some reason with office 2013 x64 SQL authentication wasn't working and that was the reason I was getting the error "The query did not run, or the database table could not be opened" . As soon as I removed SQL aunthentication from the ODBC settings everyhting worked fine. Thanks for the idea of looking into administrator user status!!!

  12. #12
    Forum Contributor noboffinme's Avatar
    Join Date
    08-29-2013
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel 2003/7/10/13/16/19
    Posts
    1,071

    Re: Error PivotTable External Data Source With Linked Table

    Glad I could help.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. #DIV/0! Error in Pivot table using external data source
    By bboard in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 11-26-2013, 02:19 PM
  2. Replies: 1
    Last Post: 01-07-2013, 12:22 PM
  3. linked drop down list boxes and external source
    By haggisns in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-26-2010, 03:07 PM
  4. Replies: 0
    Last Post: 05-25-2010, 05:47 PM
  5. [SOLVED] OLE automation with PivotTable and external Data Source
    By Kam in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-28-2006, 08:30 PM

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