Connection to Access in SSIS

  • I want to create a package programatically in VB.NET which should have Access as Destination and SQL Server as Source.

    But I am getting error in AcquireConnection() method for Access Connection Manager. I am using OLEDB as connection Type and my connection string is "Data Source=C:\ACCESSDB.mdb;OLE DB SERVICES=0;Provider=Microsoft.Jet.OLEDB.4.0;Persist Security Info=False;"

    What am I doing wrong in Connection for Access?

  • I would suggest creating a Microsoft Data Link file (UDL) to build & test your connection string. Take a look at this blog post, maybe it will help:

    http://wvmitchell.blogspot.com/2007/02/connection-strings.html

    Once you have that working, you can copy & paste the string out of the UDL into your application.

    EDIT: I haven't worked with vb.net but in C#, if you have a backslash in the connection string you have to either use the @ prefix, or double the backslash like

    @"C:\connection_string_etc")

    or

    "C:\\connection_string_etc"

    Something else to try.

  • This is also giving the same error. Error on AcquireConnection.

  • It worked now.

    I was using 64 bit computer and 64 bit computer doesn't register Jet Provider 4.0. So need to run in x86 mode.

  • Could you please specify how you run  in x86 mode on 64 bit computer for Jet Provider 4.0?

  • Could you let us know how you run x86

  • cvapl2008 (3/24/2009)


    Could you let us know how you run x86

    If you use SQL 2005, in your SQL Job Step you have to select CmdExec execution step, instead of using the SQL Server Integration Services job step. Then go to the command line parameter and select the DTEXEC application located under:

    \\\Program Files (x86)\Microsoft SQL Server\90\DTS\Binn

    This is the 32bit SSIS package executable you have to use with older providers like the Jet (Access) provider.

    In SQL 2008 is much simplified. You have an option in the job step dialog where you can select to use the 32bit executable.

    ---
    SSIS Tasks Components Scripts Services | http://www.cozyroc.com/

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

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