User Profile

Collapse

Profile Sidebar

Collapse
rabidbunny23
rabidbunny23
Last Activity: Aug 17 '07, 05:43 PM
Joined: Aug 3 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • rabidbunny23
    replied to Unable to connect to AS400 from C#
    in .NET
    Here is the solution found:
    From Windows:
    Go into Admin Tools > Data Sources (ODBC)
    Select the System DSN Tab and Add a new System Data Source
    Select the ODBC driver used to connect to the AS400
    Give it a Data Source Name, AS400 System Name, Library List (*USRLIBL)

    From a c# program:
    Code:
    using System.Data.Odbc;
    
    String connectionString = "Dsn=myAS400dsn;uid=myUser;pwd=myPassword";
    ...
    See more | Go to post

    Leave a comment:


  • rabidbunny23
    started a topic Unable to connect to AS400 from C#
    in .NET

    Unable to connect to AS400 from C#

    I am trying to connect to an AS400 database from C# code and cannot find what I am doing wrong.
    This is the error that I get (thrown by the conn.Open()):
    "Non-NULL controlling IUnknown was specified, and either the requested interface was not IUnknown, or the provider does not support COM aggregation."

    Here is the body of my code:
    Code:
    String connectionString = "Provider=IBMDA400;Data Source=myAS400;User
    ...
    See more | Go to post
No activity results to display
Show More
Working...