How to read data from database db2 on sql server 2017 ?

  • I work on sql server 2017 i need to know what technology will be quickly and fast for read data from db2 database on sql server

    without using linked server

    so I need which technology or technique i will use to read data from DB2 Database on sql server 2017 database

  • You can use SQL Server Integration services (SSIS) and also there are many other 3rd party tools in the market.

    Azure data factory, Informatica, Ab Initio, Jitterbit, Mulesoft, BOOMI etc.

    =======================================================================

  • We use the following providers for linked servers and use OPENQUERY, which proved much faster than OPENROWSET (with the disclaimer that check was made years ago).  This allows the query to be written in the DB2 language and executed on the DB2 machine.  We load up a table from that and we're ready to rock with joins or whatever.  I'll recommend that you NEVER do a join to a LinkedServer. 😀

    p.s.  And, sorry... just realized you specified "No Linked Server" in your post.

    • This reply was modified 1 year, 2 months ago by  Jeff Moden. Reason: just realized you specified "No Linked Server" in your post

    --Jeff Moden


    RBAR is pronounced "ree-bar" and is a "Modenism" for Row-By-Agonizing-Row.
    First step towards the paradigm shift of writing Set Based code:
    ________Stop thinking about what you want to do to a ROW... think, instead, of what you want to do to a COLUMN.

    Change is inevitable... Change for the better is not.


    Helpful Links:
    How to post code problems
    How to Post Performance Problems
    Create a Tally Function (fnTally)

  • To read data from a DB2 database on SQL Server 2017, you can use the Linked Server feature. First, create a linked server using the "sp_addlinkedserver" system stored procedure. Specify the DB2 server details, like server type, provider, and connection string. Then, use four-part naming convention ("linked_server.catalog.schema.table") to access DB2 tables from SQL Server queries. You might need to install the appropriate OLE DB provider for DB2. This approach allows you to fetch data from DB2 within SQL Server environment seamlessly, enabling cross-database querying and integration.

  • kajaldigital8700@gmail.com wrote:

    To read data from a DB2 database on SQL Server 2017, you can use the Linked Server feature. First, create a linked server using the "sp_addlinkedserver" system stored procedure. Specify the DB2 server details, like server type, provider, and connection string. Then, use four-part naming convention ("linked_server.catalog.schema.table") to access DB2 tables from SQL Server queries. You might need to install the appropriate OLE DB provider for DB2. This approach allows you to fetch data from DB2 within SQL Server environment seamlessly, enabling cross-database querying and integration.

    Did you read the original post? I suspect not, because the words 'without using linked server' appear in it 🙂

    The absence of evidence is not evidence of absence
    - Martin Rees
    The absence of consumable DDL, sample data and desired results is, however, evidence of the absence of my response
    - Phil Parkin

  • This was removed by the editor as SPAM

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

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