Unconfigured Ad Widget

Collapse

Announcement

Collapse
No announcement yet.

AS400 Connection String for Visual Studio

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • AS400 Connection String for Visual Studio

    In web.config: In VB.NET, calling an RPG stored procedure: Dim As400DB As New iDB2Connection(ConfigurationManager.ConnectionStri ngs("AS400DOTNET").ConnectionString) Dim Cmd As New iDB2Command("AS400.TESTLIB.SP_RTVDATA", As400DB) Dim Results As iDB2DataReader Cmd.CommandType = Data.CommandType.StoredProcedure Cmd.Parameters.Add(New iDB2Parameter("Parm", Request.Form("txtParmdata"))) As400DB.Open() Results = Cmd.ExecuteReader Any questions feel free to email Mike Tierney mtierney@gct.com

  • #2
    AS400 Connection String for Visual Studio

    I am in need of some examples. I need to connect to the AS400 (either through ODBC, or the IBM .NET provider) to retrieve some data, and merge with some SQL data to produce a report. I am using VS2005 and .NET Framework 2.0. Either VB or C# examples will be appreciated.

    Comment


    • #3
      AS400 Connection String for Visual Studio

      Connection string examples for every database known to man (at least it seems that way!) can be found here- http://www.connectionstrings.com/

      Comment

      Working...
      X