Results 1 to 10 of 10

Thread: MSSQL & AS400 DB2 (Linked Server)

  1. #1
    Join Date
    Oct 2007
    Posts
    22

    MSSQL & AS400 DB2 (Linked Server)

    I have created a Linked Server in MSSQL. When i run a select command in query analyzer thru openquery, i shows me less rows compared to the rows existing on AS400 DB2.
    What could be possible reason?

  2. #2
    Join Date
    Sep 2002
    Posts
    5,938
    Which provider do you use for linked server?

  3. #3
    Join Date
    Oct 2007
    Posts
    22
    Driver={Client Access ODBC Driver (32-bit)};System=my_system_name;Uid=myUsername;Pwd=myP assword;

  4. #4
    Join Date
    Sep 2002
    Posts
    5,938
    Tried with Microsoft ole db provider for odbc driver?

  5. #5
    Join Date
    Feb 2008
    Posts
    14

    what does

    the function of creating a linked server provide? does it allow you to be able to query information from the server

  6. #6
    Join Date
    Sep 2002
    Posts
    5,938
    There is no function to create provider, you have to get them from vendors.

  7. #7
    Join Date
    Sep 2002
    Location
    Fantasy
    Posts
    4,254

  8. #8
    Join Date
    Oct 2007
    Posts
    22
    Quote Originally Posted by MAK
    Dear MAK
    Thanks for the help, i tried exactly as you explained, but when i run the command in query analyze, i got this error message:
    Server: Msg 7399, Level 16, State 1, Line 1
    OLE DB provider 'MSDASQL' reported an error.
    [OLE/DB provider returned message: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified]

  9. #9
    Join Date
    Feb 2008
    Posts
    14

    take a look

    Pledge
    Donor/Contributor ID
    Pledge Date
    Pledge Amount
    Pledge Expiration
    Pledge Receipt confirmation

    Donation
    Date
    Donor/Contributor ID
    Amount
    Thank you note


    Donor
    Name
    Address
    City,State, Postal
    Phone
    Email


    Contributor
    Name
    Address
    City,State,Postal
    Phone
    Email

    Campaign
    Campaign Date
    Donor/Contributor ID

    I would create these tables how do they look each with many to many relationship now i gotta think where and how to enter it.

  10. #10
    Join Date
    Sep 2002
    Location
    Fantasy
    Posts
    4,254
    humayun

    1. your subsystem, plan name and catlog prefix may be different. check with your DB2 Admin.

    2. did you create the ODBC system DSN DB2C?

    3. Did you create the ODBC DSN on the SQL Server machine?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •