Powershell to create link between Access database and an ODBC Pervasive database

So, I have the following script (thanks to JRV!):
function Link-ExternalODBCTable{
      Param(
         $accessFile,
         $tableName,
         $tableName2
     if(-not $tableName2){$tableName2=$tableName1}
     $access.DoCmd.TransferDatabase(
             [microsoft.office.interop.access.AcDataTransferType]::acLink,
            'ODBC Database',
            $accessFile,
            [microsoft.office.interop.access.AcObjectType]::acTable,
             $tableName,
             $tableName2
$testODBC='ODBC;DSN=A1013v2012'
 Add-Type -Assembly Microsoft.Office.Interop.Access
 $access = New-Object -ComObject Access.Application
 $Access.OpenCurrentDataBase("E:\MyDir\TagLink.mdb")
 Link-ExternalODBCTable $testODBC all_per
 $access.CloseCurrentDataBase()
What I get is:
Exception calling "TransferDatabase" with "6" argument(s): "ODBC--connection to 'A1013v2012' failed."
When I try from the ODBC Administrator, it tests fine (Connection Successful!). This is a 32-bit ODBC connection, using the Pervasive ODBC Engine Interface. Same as we use for other ODBC connections to this database. It is a System DSN, as opposed to User
or File.
I tried to skinny this down to:
Add-Type -Assembly Microsoft.Office.Interop.Access
 $Access = New-Object -ComObject Access.Application
 $Connected = $Access.OpenCurrentDataBase("E:\MyDir\TagLink.mdb")
 $access.DoCmd.TransferDatabase(
             [microsoft.office.interop.access.AcDataTransferType]::acLink,
            'ODBC Database',
            'ODBC;DSN=A1013v2012',
            [microsoft.office.interop.access.AcObjectType]::acTable,
             'all_per',
             'all_per'
 $Disconnected = $Access.CloseCurrentDataBase()
...which yields the same error.
Where am I going wrong here?
mpleaf

If I try that, I get a new message:
Exception calling "TransferDatabase" with "6" argument(s): "Could not find installable ISAM."
The article you reference, I believe, is for SQL connection, not Pervasive SQL. I know the DSN works fine. We use it for other things a LOT.
I'm at a loss...and I can't seem to find the right combination...
mpleaf
The point is that newer Access does not appear to support DSNs on ODBC without an full ODBC driver.  If you go DSN-less you will include the provider.
Pervasive has always been a pain.  They break all rules and always have.  If this is Intuit Pervasive then it is even worse.
¯\_(ツ)_/¯

Similar Messages

  • How can i create link between ipad(xcode) and webserver?

    Hi, I'm a new to iPad development and i need help,
    i'm not good with english but i try to explain my question:
    how can i create link between ipad(xcode) and webserver?
    (the webserver ".NET" with driver odbc is connected with DB Oracle)
    so, how can my ipad application access to the Oracle DB?
    Create a webservice (.NET) to be place between iPad and DB, is this correct?
    how can i do it?
    which are libraries to include in the xcode's framework?
    thx

    I think the following URL will be your best answer:
    http://stackoverflow.com/questions/3510468/connecting-iphone-to-an-odbc-database

  • How to create links between SO and PO's

    Basicly the subject tells the question, how can you create links between Sales orders and Purchase orders? Sounds simple but how to do it?

    Hi,
    You can may be do the easy way out then,
    1) Open the Sales Order for which you have created the Procurement Document.
    2) Go to the 'Form Settings' of the Sales Order and 'Table Format'.
    3) In the list, select the Procurement Doc field and make it visible.
    You will be able to see the Procurement Document for the Sales Order raised without using the query.
    Check if this is what you are looking for and the same helps.
    Kind Regards,
    Jitin
    SAP Business One Forum Team

  • Link between SAP Ztables and MS-ACCESS database via XI

    Hi All,
    I have two application one is in Ms-Access and other is in SAP . I have to link the SAP ztables to the MS-Access databse, is this be done with via XI. If yes, do i need to write the interface programs while fetching the data from the XI to SAP, or XI will take care of the updation and linking between the SAP and access application , since the cross flow of data between two application will be there .
    Regards
    Gajendra

    hi !!
    It is possible with XI, of course.
    You can use jdbc as sender at the MS-Access end and at R/3 (as reciever) you can have an RFC to put the data into the tables.
    There is no need of interface programming to be done manually.
    you have to be clear at what condition the synchronizations should happen and there is more enhancements that could be done.
    regards,
    nikhil.
    **reward if helpful

  • API to create a link between Sales order and Requisition

    We are upgrade 11i to R12. We have a custom drop ship process. We have a original SO and through the sales order we create a Reqisition. We send the requisition details to the factory and the factory sends us a flat file with the quantity shipped and dates. There might be multiple lines for each requisition received. We will add the details to the SO and update the Requision with the flat file details for the SO shipment. But We will have to create a link between the SO and the requisition. Is there an API to do the linking between a SO and A requisition line?

    I created a SO and a requisition
    declare
    p_rsv inv_reservation_global.mtl_reservation_rec_type;
    p_dummy_sn inv_reservation_global.serial_number_tbl_type;
    x_msg_count NUMBER;
    x_msg_data VARCHAR2(240);
    x_rsv_id NUMBER;
    x_dummy_sn inv_reservation_global.serial_number_tbl_type;
    x_status VARCHAR2(1);
    x_qty NUMBER;
    l_inventory_item_id number;
    l_source_header_id number;
    l_reservation_qty number;
    l_error_message VARCHAR2(300);
    l_order_number NUMBER;
    begin
    fnd_global.APPS_Initialize(1131,50654,660);
    p_rsv.reservation_id := NULL;
    p_rsv.requirement_date := to_date('30-JUN-2012','DD-MON-YYYY');
    p_rsv.organization_id := 88; ---ship_from_org_id
    p_rsv.inventory_item_id := 147001; --inventory_item_id
    p_rsv.demand_source_type_id := inv_reservation_global.g_source_type_oe;
    p_rsv.demand_source_name := NULL;-------'SALES ORDER';
    p_rsv.demand_source_header_id := 27005; --- sales order header id
    p_rsv.demand_source_line_id := 29010; --- sales order line id
    p_rsv.primary_uom_code := 'EA';
    p_rsv.primary_uom_id := NULL;
    p_rsv.reservation_uom_code := 'EA';
    p_rsv.reservation_uom_id := NULL;
    p_rsv.reservation_quantity := 200;
    p_rsv.primary_reservation_quantity := 200;
    ----p_rsv.supply_source_type_id := inv_reservation_global.g_source_type_internal_req;
    p_rsv.supply_source_type_id :=inv_reservation_global.g_source_type_inv;
    p_rsv.supply_source_header_id :=18001; -- requisition header id
    p_rsv.supply_source_line_id :=12172; -- requisition line id
    p_rsv.supply_source_name := NULL;
    p_rsv.supply_source_line_detail := NULL;
    p_rsv.autodetail_group_id := NULL;
    p_rsv.external_source_code := NULL;
    p_rsv.external_source_line_id := NULL;
    p_rsv.supply_source_line_detail := NULL;
    p_rsv.revision := NULL;
    p_rsv.subinventory_code := NULL;
    p_rsv.subinventory_id := NULL;
    p_rsv.locator_id := NULL;
    p_rsv.lot_number := NULL;
    p_rsv.lot_number_id := NULL;
    p_rsv.pick_slip_number := NULL;
    p_rsv.lpn_id := NULL;
    p_rsv.attribute_category := NULL;
    p_rsv.ship_ready_flag := NULL;
    p_rsv.demand_source_delivery := NULL;
    p_rsv.attribute1 := NULL;
    p_rsv.attribute2 := NULL;
    p_rsv.attribute3 := NULL;
    p_rsv.attribute4 := NULL;
    p_rsv.attribute5 := NULL;
    p_rsv.attribute6 := NULL;
    p_rsv.attribute7 := NULL;
    p_rsv.attribute8 := NULL;
    p_rsv.attribute9 := NULL;
    p_rsv.attribute10 := NULL;
    p_rsv.attribute11 := NULL;
    p_rsv.attribute12 := NULL;
    p_rsv.attribute13 := NULL;
    p_rsv.attribute14 := NULL;
    p_rsv.attribute15 := NULL;
    inv_reservation_pub.create_reservation
    p_api_version_number => 1.0
    , x_return_status => x_status
    , x_msg_count => x_msg_count
    , x_msg_data => x_msg_data
    , p_rsv_rec => p_rsv
    , p_serial_number => p_dummy_sn
    , x_serial_number => x_dummy_sn
    , x_quantity_reserved => x_qty
    , x_reservation_id => x_rsv_id
    IF x_status='S' THEN --- HARD RESERVATION IS DONE SUCCESFULLY ---
    dbms_output.put_line('reservation succesful');
    dbms_output.put_line('reservation id: || x_rsv_id');
    ELSE
    if(nvl(x_msg_count,0) = 0) then
    dbms_output.put_line('no message return');
    else
    for I in 1..x_msg_count LOOP
    l_error_message := fnd_msg_pub.get(I, 'F');
    end LOOP;
    end if;
    --- HARD RESERVATION API fails ---
    dbms_output.put_line('Reservation API Error Message: '||l_error_message);
    END IF;
    EXCEPTION
    WHEN OTHERS THEN ------------------ In case of any pl/sql error
    l_error_message := SQLERRM;
    dbms_output.put_line('Plsql Error Message: '||l_error_message);
    END;
    but i am getting an error
    "Reservation API Error Message: INV_RSV_DS_SO"
    I am stuck and no idea how to fix this. Any help is appreciated.
    Edited by: 901524 on May 23, 2012 1:26 PM

  • Regarding creating a LOOSE LINK between Sales Order and Vehicle

    Hi,
    Does anyone has any idea on how to establish a LOOSE LINK between Sales Order and Vehicle using BAPI_VEHICLE_CREATE or any other Function module.
    Any help will be highly appreciated and rewarded.
    Kind Regards,
    Tanuja

    Dear Kumar,
    Strategy - 40
    Consumption of PIR (not Redution)
    1) the first point in strategy in 40 is, incoming sales order consumes PIR
    2 )both sales order and PIR takes place in MRP planning run
    2) this is where it is in mostly used in many indutries
    just a small example how this strategy works
    1) creat PIR for ur FERT- 100Nos
    2) check in MD04- u will get PIR (VSF) as 100
    3) now creat sales order for 120 for same month
    4 )run MRP for that particular FERT
    5) check the result in MD04, here ur PIR gets vanishied and an plan order will be generated for 120 Nos.
    Regards
    kumar
    Edited by: kumar kumar on Jul 22, 2009 8:29 AM

  • Link between sysssislog.executionid and job_id (in sysjobs, sysjobhistory)

    Using: SQL Server 2014, SSDT-BI 2014 (VS 2013)
    Since last week I log my SSIS tasks in the sysssislog table. For each job that i execute, a new executionID (executionid column in sysssislog) gets written and attached to all my SSIS tasks (source-column in sysssislog).
    Problem: I run the same ssis packages with different environments. Therefore I want to join environment information to the sysssislog table. The executionID itself doesn't show me to which job and environment the task/source execution belongs to. Because
    the environment information is attached to a job, I am searching for a link between the executionID and the job_id. There must be any, since a job is reason for producing all the log informations.
    Does anybody have ideas how to get a link between job_id and executionID?

    Hi, thank you for your answer. I read your post, but I do not understand it well. To you question: Yes, I log to the same database regardless of the invironment.
    Where do you inject the environment information? I could not found any information that connect a scheduled job and an enviroment (of cause it has to be somewhere but i could not find it!).
    You said you log in a Script Task and use textual message to write the . From within Visual Studio one can not access the environment infos since they are stored on the SQL Server, as fas as I know. (Just configurations can be set up and selected within
    Visual Studio.)
    So could you please describe a bit detailled, from where you grad the env info and how you process it?
    Thanks!

  • Can't Find ODBC drivers to link MS Access 2013 and MySQL

    Can't Find ODBC drivers to link MS Access 2013 and MySQL.
    Is one available?
    Thanks,
    Larry

    Could to associate the problem at Office 2013?
    I just installed the ODBC Driver; The data source machine was available; When selected I had received the message. When it was selected I had received the message:
    "ODBC -- falha na chamada.
    [Microsoft][ODBC Driver Manager] O DSN especificado contém uma incompatibilidade de arquiteturas entre o Driver e o Aplicativo (#0)"
    In english, could to say: "ODBC -- fail on call.
    ... The specified DSN contains a architectural incompatibility between Driver and App (#0)"
    I don't know yet the reason for this. Anyone knows?

  • Is there any link between movement types and documents

    hi
    is there any link between sales doc and movement types ?
    is it the only source dependig on schedule line movement type will determined?
    if with out order we are doing delivery how system will determine movement type
    Thanks in advance

    Hi,
    Deliveries that are created without reference to order , contained movement type because to process a delivery you need to have some of the control criteria that are copied from sales document header to delivery document header, as system processes delivery in that way ,that is why you will find default order type is assigned to the delivery document type ie DL. .which helps the delivery document to process without reference to sales document.
    In Addition to above information,
    In VOV4,
    DL+ NORM +   +    -DLN
    In VOV5,
    For Itemcatagory DLN+        --CN
    From this schedule line category CN,movement type 601 is taken during without reference to order –delivery creation.
    MCM

  • Link Between Service Notification and Sales Order

    Hi All,
    In our business process, we will create sales order from Service Notification and we can see the same in the Document flow. But when i check in the VBFA table, there are no entries. I would like to know how the document flow is updated without updating the VBFA Table or is there any other table gets updated for this flow.
    Please guide me.
    With Regards
    Vinu.N

    Hello Vinu
    For one Sales Order # figures in Notification header table- VIQMEL-VBELN.
    Similarly Notification # figures in Sales Order Header table- VBAK-QMNUM
    That is a solid link right there.
    I Also guess technical objects like Equipment, Serial number also form link between the Sales and Service Documents.
    Also check out the logic in document flow program RIBELF20, may be it will give you the clues to the problem.
    Hope this helps.

  • Link between process order and sales order for planning strategy 52

    Hello,
    I investigate the possibility of a link between "sales order" and "planned order / process order" for the usage of planning strategy 52 (planning w/o final assembly, make to stock).
    I know, this is not conform to the basics of planning strategies (EITHER make to order OR make to stock) and I suspect it would be a modification. Of course we have the alternative "make to order" - strategy 50, but we do not want to use individual customer stocks.
    Is anybody there with similar customer requirements or project experiences?
    Thanks in advance,
    Joerg
    Message was edited by:
            Jörg Demtschuk

    Hi Jorg,
    To my understanding if you need hard pegging then in SAP only Individual requirement is possible.
    Or else you need to create a custom transactions/table to identify Sale order and when ever a process order is created by selecting the sale order record, the process order detials should also get updated against that.
    You need to take the help of ABAP expert for this,
    Regards,
    Prasobh
    Reward points if this was useful

  • Link between Purchase order and Attachment list

    Hi All,
    I got a requirement like Purchase orders are from moved from one system to another system.There was a bug in BDC program
    so some Attachment list of the purchase orders are not moved properly to the another system.
                                                   Now my client want a report to generate the Purchase orders which is having attachment list.
    I did not find any table link between Purcahase order and Attachment list.
                                                  So Plz provide me the link between purchase order and attachment list.
    Thanks,
    Ram

    You mean service for object services?
    if yes then u have to create one custom report for Generic Object Services   ( like notes , attachment  , url )

  • Creating links to Word, PDF and Powerpoint files

    I need advice on how to create links to Word, Powerpoint and PDF files in my Captivate project.  How do I also make sure that when my file is published, those links can be accessed by the reader.  I am new to this process.  Thanks!

    Yes. You can place the linked file in your zipped folder. Here is a recommended workflow.
    1. Add a button (Smartshape or regular button) to the slide.
    2. Assign the Open File or URL action to the button. In the URL field, specify the file name (say, Sample.PPTX) which you want to link to.
    3. Click the down arrow button next to the URL field and select New so that the file launches in a new window.
    4. Save and publish your project to a folder.
    5. Go to the published folder and place the linked Sample.pptx file in the folder.
    6. Zip the published folder.
    Absolute Path is where you give the full path of the file's location including the folder structure. For example, C:\<UserName>\Documents\My Adobe Captivate Projects\Sample.pptx. If you use this, then you have to maintain the same folder structure in the published folder as well, which is impractical.
    Relative Path, in this case, is where you just give the file name and make sure that the file is in the published folder. 
    Just Google and you will find several examples of absolute and relative paths. You will even see that you can define sub folders if required.
    Sreekanth

  • How to create dblink between oracle 10G and mysql

    I want to create dblink between oracle 10G and mysql
    I create it in ECC6.0 using DBCO transaction tcode,which database type can choose?Microsoft sql server?Because there have no mysql item.
    I choosed MSS  so that I can test it, but it failed,there is an error that 'ORA-12569:TNS:packet checksun failure'.
    I configured the oracle tnsnames.ora file like this:
         CW.WORLD =
               (DESCRIPTION =
                    (ADDRESS_LIST =
                          (ADDRESS =
                                  (COMMUNITY = SAP,WORLD)
                                  (PROTOCOL = TCP)
                                  (HOST = XX.XX.XX.XX)
                                  (PORT = XXXX)
                   (CONNECT_DATA =
                        (SID = XXX )
                   (HS = ok )
    When I tnsping CW,it will fail,like this " TNS-12569:TNS:packet checksum failure"
    How can I do.

    I want to know if this possible?

  • DB link between Oracle 9i and MS SQL server2000

    Hi,
    Is it possible to create a DB link between Oracle 9i and MS SQL server 2000.
    If it is possible what are the different ways of creating it.
    Is it possible without purchasing any propietery drivers.
    Thanks,
    Rohit

    I've never seen any documents stating that the enterprise edition is a requirement for the heterogeneous connectivity ....
    There are 2 ways to set up the connection with MS SQL - using generic connectivity driver (OLE DB or ODBC) or using the Oracle Transparent Gateway.
    The generic connectivity is free and comes with Oracle DB - it has several limitations - for example you can't call MS SQL stored procedures from Oracle.
    The Oracle Transparent Gateways are packaged , the MS SQL gateway is part of the Open System Gateways package ($15,000.00 per CPU license cost) and i has less restrictions.
    Overview:
    http://www.oracle.com/technology/products/oracle9i/datasheets/gateways/gateway_rel2_ds.html
    http://www.lc.leidenuniv.nl/awcourse/oracle/server.920/a96544/toc.htm
    Chapter 4 - the Oracle Transparent Gateway
    Chapter 7 - the free Generic connectivity.
    Mike

Maybe you are looking for

  • How to get Mashita UJ 825 to work again?

    Hi everybody, I am trying to help out a friend who has a 17" iMac (the model before iSight). She is using Panther 10.3.6. Her Optical Drive is a Matshita UJ 825 (I'm not sure about the spelling of Matshita) and it won't accept discs anymore. As soon

  • How can I add a comma in between every three digits in a numeric value?

    Hello, I would like to have the following number format displayed on my 2D Axis system plot y-axis in my report, (100,000 or nnn,nnn). I have looked through the "Formating Numeric Values in Text" help section but I can't seem to figure out how to do

  • Rhapsody Track Syncronization - IT WORKS!

    I spent another hour with Verizon Support today and we now have this sussed. The answer is not what you would expect, so read carefully! The DRM subscription track updating is now handled through the Rhapsody Droid application. The current version is

  • How to hide navigation panel buttons of interactive form

    Hi Gurs, Can any one expalin how to hide the navigation panel buttons of interactivge form through coding in WD. Thanks Rao. Edited by: rahul raao on Apr 30, 2009 9:57 AM

  • PX Best Practice doc for vSphere?

    Is there a best practice doc for utilizing the PX devices in a vSphere environment?  Specifically I'm interested in 'Boot from SAN' for two vSphere 5.1 Host servers (RD630's) dual switch iSCSI connected to a PX12-450. If no Best Practice then perhaps