Skip to Content
author's profile photo Former Member
Former Member

Import data from MS ACCESS in background mode

Hello experts,

i am facing the following problem. I´ve got to import a MS ACCESS database in background mode via job.

I got a solution which works in dialoge:

create object conn 'ADODB.Connection'.
create object rsdb 'ADODB.Recordset'.

concatenate 'Provider=Microsoft.Jet.OLEDB.4.0;'
'Data Source=C:UserspfahlbeDesktopaccess.mdb'
into sql.

call method of conn 'Open'
  #1 = sql.

Any idea how it can be handled in background?

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Jan 20, 2012 at 02:56 PM

    The system does not have permission to the useru2019s desktop C:\Users\pfahlbe\Desktop\access.mdb when running in the background.

    Recommend moving your MSAccess db to a network location where the system has full-time read-permission, and adjusting your sql accordingly.



    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      The data source path that you have encoded into the variable u201Csqlu201D is only valid and available to the system when you run in dialogue (as you have discovered). I suggest that you put the MSAccess database into a different location, one that is on your network and available to the SAP system full-time. Then you have to adjust the data source path encoded into your variable named u201Csqlu201D so that the background job can open the MSAccess database.

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.