The provider ran out of memory.

  • Hi,

    We are running openrowset and we're getting this. SQL Server is 2008 R2 SP1

    Msg 7399, Level 16, State 1, Line 2

    The OLE DB provider "Microsoft.Jet.OLEDB.4.0" for linked server "(null)" reported an error. The provider ran out of memory.

    Any ideas?

    Thanks!

  • Are you reading Excel files?

    The JET OLE DB provider is 32-bit only.

    Need an answer? No, you need a question
    My blog at https://sqlkover.com.
    MCSE Business Intelligence - Microsoft Data Platform MVP

  • Yes..

    all are 32 bit. But still getting that error.

  • Is your SQL Server also a 32 bit ?If yes then it looks like the linked server has no memory available to pull the data.

    How much memory does your server has ?

    --------------------------------------------------------------------------------------------------
    I am just an another naive wannabe DBA trying to learn SQL Server

  • yes, SQL Server is 32 bit. Server's memory is 8GB.

  • whitesql (6/23/2014)


    Yes..

    all are 32 bit. But still getting that error.

    You can perhaps use the ACE OLE DB provider, which is available in 64-bit (and can thus use more memory).

    Use the first connection string of this page:

    https://www.connectionstrings.com/ace-oledb-12-0/

    Need an answer? No, you need a question
    My blog at https://sqlkover.com.
    MCSE Business Intelligence - Microsoft Data Platform MVP

  • Tried it (ACE) and now I'm getting this error:

    Cannot create an instance of OLE DB provider "Microsoft.ACE.OLEDB.12.0" for linked server "(null)".

  • Is AWE enabled for your server ?

    --------------------------------------------------------------------------------------------------
    I am just an another naive wannabe DBA trying to learn SQL Server

  • Yes, it is enabled

  • What is the value of physical memory allocated to sql instance set to ?I think not enough memory(VAS) is available for the linked server.

    How big is the Excel data ?

    --------------------------------------------------------------------------------------------------
    I am just an another naive wannabe DBA trying to learn SQL Server

  • physical memory allocated is the default in sql server. Excel file size is only 26 KB.

  • physical memory is default in sql server.. 2147483647 ... excel file is only 26KB

  • how I allocate or adjust memory for linked server?

  • Try setting up as "Outprocess"

    To connect to Microsoft Access, SQL Server must start the Microsoft Access Database Engine. Unlike most other providers, Microsoft Access is not a light-weight provider, but is the entire Microsoft Access Database Engine. Opening Microsoft Access in the SQL Server process space can cause failures due to lack of disk, processor, or memory resources. Errors include, "Cannot initialize the data source object of OLE DB provider." To avoid out of memory errors, configure the provider to open outside of the SQL Server memory process space.

    http://technet.microsoft.com/en-us/library/ms175866%28v=SQL.105%29.aspx

    --------------------------------------------------------------------------------------------------
    I am just an another naive wannabe DBA trying to learn SQL Server

  • Hi Sachin,

    I tried your suggestion but I'm still getting this error:

    Msg 7399, Level 16, State 1, Line 2

    The OLE DB provider "Microsoft.Jet.OLEDB.4.0" for linked server "(null)" reported an error. The provider ran out of memory.

Viewing 15 posts - 1 through 15 (of 15 total)

You must be logged in to reply to this topic. Login to reply