SQL 2019 Linked Server (EXCEL)

James Stirling 1 Reputation point
2022-07-11T11:37:39.367+00:00

Hi,

I am trying to link a spreadsheet using MS Office 12.0 Access Database Engine via a linked server.

The spreadsheet is on a network share and is spaces in the name and macros enabled on it (xlsm)

The Linked server provider has "Allow inprocess" the SQL Man is running as administrator but i keep getting this error:

Cannot Initialize the data source object of OLE DB provider MS SQL ERROR 7399

I have OLEDB 16 install and if i try and do the exact same config as OLEDB12 i get:

Could not find installable ISAM MS SQL ERROR 7303

Both my SQL server and OLEDB are 64bit I am at a complete loss.

I have had this working on a backup Excel sheet but i cannot get this work on my existing instance or a brand new instance.

Can anyone assist and help resolve the issue as i am at a complete loss to troubleshooting and diagnostics.

SQL Server | Other
0 comments No comments
{count} votes

11 answers

Sort by: Most helpful
  1. Olaf Helper 47,586 Reputation points
    2022-07-11T11:54:30.517+00:00

    The spreadsheet is on a network share

    And do the SQL Server service account have access (read) permissions on the share?

    0 comments No comments

  2. James Stirling 1 Reputation point
    2022-07-11T12:21:40.307+00:00

    I have both SA\Windows Auth configured on the server

    The SQL instance is logged under: NT Service\MSSQL$SUPPORTDB

    The Windows user logged on the PC has domain access to the share and can access the sheet.

    0 comments No comments

  3. James Stirling 1 Reputation point
    2022-07-11T14:45:32.35+00:00

    Doing some research, I have changed the SQL service account to the domain logon and restarted the SQL service and MSSM.

    I have also made sure the spreadsheet (XLSM) has full rights for the domain logon.

    Provider: MS Office 12 Access Database Engine OLE DB Provider
    Product Name: Excel
    DataSource: Spreadsheet Location (X:\IT\IT Faults.xlsm)
    Provider String: Excel 12.0 Macro

    As per: https://www.microsoft.com/en-us/download/details.aspx?id=54920

    0 comments No comments

  4. Olaf Helper 47,586 Reputation points
    2022-07-12T05:35:32.497+00:00

    The Windows user logged on the PC has domain access

    User logged on? That doesn't matter in any way, it's the SQL Server service account which accesses the file and requires for this access permissions.

    0 comments No comments

  5. James Stirling 1 Reputation point
    2022-07-12T07:00:19.65+00:00

    Hi,

    Please see screenshots attached of the SQL Service Account and File Security.

    219765-file-security.png219784-sql-service.png

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.