﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum » .NET Forums » General .NET Discussion  » Anyone have any practical experience with an AS400 dataprovider that works.</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Sun, 31 May 2026 09:12:33 GMT</lastBuildDate><ttl>20</ttl><item><title>Anyone have any practical experience with an AS400 dataprovider that works.</title><link>http://forum.strataframe.net/FindPost2765.aspx</link><description>Our biggest customer uses an AS400 as their database. The very limited programming I have done for them was years ago using Perl and ODBC. Most of the work we do for them currenty is done in RPG but they are now asking for stuff that is better suited to .NET, specifically ASP.NET, for their customers to view inventory on the web.&lt;br&gt;
&lt;br&gt;
I have been looking and have some leads but if someone here has some practical expreience with something that works ( a data provider), I would sure appreciate it.</description><pubDate>Mon, 30 Oct 2006 13:56:17 GMT</pubDate><dc:creator>Keith Chisarik</dc:creator></item><item><title>RE: Anyone have any practical experience with an AS400 dataprovider that works.</title><link>http://forum.strataframe.net/FindPost3979.aspx</link><description>Ok thanks, I can take that directly to my "higher up" and get some breathing room :)</description><pubDate>Mon, 30 Oct 2006 13:56:17 GMT</pubDate><dc:creator>Keith Chisarik</dc:creator></item><item><title>RE: Anyone have any practical experience with an AS400 dataprovider that works.</title><link>http://forum.strataframe.net/FindPost3968.aspx</link><description>We do not have a timetable on this at the moment.&amp;nbsp; This may end up requiring a bit of work.&amp;nbsp; We will discuss this at our next development meeting.&amp;nbsp; Just so you know, we (the developers) are not in total control of our schedule...which is the way any successfully run business should be :) .&amp;nbsp; So we have to report to some "higher-ups" who will make the ultimate decision as to when this goes on the schedule.&amp;nbsp;</description><pubDate>Mon, 30 Oct 2006 13:20:20 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Anyone have any practical experience with an AS400 dataprovider that works.</title><link>http://forum.strataframe.net/FindPost3965.aspx</link><description>:Whistling:&lt;br&gt;
&lt;br&gt;
any word/timetable? Thanks.</description><pubDate>Mon, 30 Oct 2006 13:11:39 GMT</pubDate><dc:creator>Keith Chisarik</dc:creator></item><item><title>RE: Anyone have any practical experience with an AS400 dataprovider that works.</title><link>http://forum.strataframe.net/FindPost3938.aspx</link><description>Any luck with this? Getting the BO Mapper to "see" the DB2 "tables" with the OLE Provider?&lt;br&gt;</description><pubDate>Fri, 27 Oct 2006 21:38:33 GMT</pubDate><dc:creator>Keith Chisarik</dc:creator></item><item><title>RE: Anyone have any practical experience with an AS400 dataprovider that works.</title><link>http://forum.strataframe.net/FindPost3638.aspx</link><description>I think that the IBMDA400 is correct for the OLE DB provider, however, I think that the GetSchema() method of the OleDbConnection object requires different parameters than other OLE DB providers.&amp;nbsp; Where with FoxPro, we use GetSchema("TABLES"), I don't think we can use "TABLES" as a parameter, because the database does not have "TABLES" but files. So, I think you're right on with your use of the DataDirect provider for creating your As400DbDataSourceItem class, but with the BOMapper, I think we're going to have to figure out what constraints we can use with the GetSchema() method to enumerate the database objects.</description><pubDate>Mon, 16 Oct 2006 13:49:10 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item><item><title>RE: Anyone have any practical experience with an AS400 dataprovider that works.</title><link>http://forum.strataframe.net/FindPost3637.aspx</link><description>[quote]how do I implement SF with their ADO object? If I cant use the BO Mapper doesnt everything fall down?&lt;BR&gt;[/quote]&lt;/P&gt;&lt;P&gt;You are correct.&amp;nbsp; You will need to use the OLE DB provider for the BO Mapper portion.&amp;nbsp; You can use their ADO.NET provider for run-time purposes.&amp;nbsp; That is why you need to learn the OLE DB provider type.&amp;nbsp; The nice thing here is that you will not need to distribute the OLE DB provider in this case, just get it working on your development machine.&amp;nbsp; &lt;/P&gt;&lt;P&gt;In either case, just create a simple text program that creates an OleDbConnection and then call the Open...just keep changing out the provider until it works.&amp;nbsp; This is easier than going in and out of the BO Mapper.&amp;nbsp; I cannot give you the information for the provider since I am not familiar with this data provider, but I do know that the provider is where your problem is.</description><pubDate>Mon, 16 Oct 2006 13:34:22 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Anyone have any practical experience with an AS400 dataprovider that works.</title><link>http://forum.strataframe.net/FindPost3636.aspx</link><description>Here is how I tested using their sample code. It worked.&lt;br&gt;
&lt;br&gt;
        Dim conn As DDTek.DB2.DB2Connection&lt;br&gt;
&lt;br&gt;
        conn = New DDTek.DB2.DB2Connection("host=192.168.42.xxx; User ID=xxxxxx;Password=xxxxxx;database=xxxxxx)&lt;br&gt;
&lt;br&gt;
        Try&lt;br&gt;
            conn.Open()&lt;br&gt;
            MsgBox("good")&lt;br&gt;
        Catch ex As DDTek.DB2.DB2Exception&lt;br&gt;
            MsgBox(ex.Message)&lt;br&gt;
        End Try&lt;br&gt;
&lt;br&gt;
        conn.Close()&lt;br&gt;
&lt;br&gt;
I was under the impression that I could use SF with the OLE string in the mapper as long as it referenced the DB2 provider. If that isnt the case, how do I implement SF with their ADO object? If I cant use the BO Mapper doesnt everything fall down?&lt;br&gt;
&lt;br&gt;
I got the OLE to work using Provider=IBMDA400, its just doesnt enumerate the table names correctly, and its slow.&lt;br&gt;
&lt;br&gt;</description><pubDate>Mon, 16 Oct 2006 13:30:29 GMT</pubDate><dc:creator>Keith Chisarik</dc:creator></item><item><title>RE: Anyone have any practical experience with an AS400 dataprovider that works.</title><link>http://forum.strataframe.net/FindPost3635.aspx</link><description>When you use the DataDicrect provider in code, do you create an OleDbCommand object, or is it a Db2Command object from one of their namespaces?&lt;/P&gt;&lt;P&gt;I was under the impression that their provider was not an OLE DB provider, but actually a native ADO.NET provider, with its own classes and everything.</description><pubDate>Mon, 16 Oct 2006 13:24:04 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item><item><title>RE: Anyone have any practical experience with an AS400 dataprovider that works.</title><link>http://forum.strataframe.net/FindPost3634.aspx</link><description>Well, that is much closer to a provider name since it is in COM class name or program ID format.</description><pubDate>Mon, 16 Oct 2006 13:22:25 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Anyone have any practical experience with an AS400 dataprovider that works.</title><link>http://forum.strataframe.net/FindPost3633.aspx</link><description>DataDIrect had me try DDTek.DB2..........</description><pubDate>Mon, 16 Oct 2006 13:19:02 GMT</pubDate><dc:creator>Keith Chisarik</dc:creator></item><item><title>RE: Anyone have any practical experience with an AS400 dataprovider that works.</title><link>http://forum.strataframe.net/FindPost3632.aspx</link><description>Well, I don't think that your provider is correct.&amp;nbsp; I will have to investigate what the provider would be for this type of connection source, but an example is this:&lt;/P&gt;&lt;P&gt;Visual FoxPro = VFPOLEDB.1 OR VFPOLEDB&lt;/P&gt;&lt;P&gt;Microsoft Jet 4.0 OLE DB Provider = Microsoft.Jet.OLEDB.4.0&lt;/P&gt;&lt;P&gt;Notice that the provider will not accept spaces.&amp;nbsp; It is looking for the COM class name in most cases.</description><pubDate>Mon, 16 Oct 2006 13:14:43 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Anyone have any practical experience with an AS400 dataprovider that works.</title><link>http://forum.strataframe.net/FindPost3631.aspx</link><description>they did 15 minute ago       :blink:&lt;br&gt;
&lt;br&gt;
Anyhow I used DbProviderFactories.GetFactoryClasses() to make sure I had the right registered name. It is registered as "DataDirect DB2 Data Provider", which I tried with no luck, same error.&lt;br&gt;
&lt;br&gt;
Here are the images again. Thanks.&lt;br&gt;
&lt;br&gt;</description><pubDate>Mon, 16 Oct 2006 13:10:18 GMT</pubDate><dc:creator>Keith Chisarik</dc:creator></item><item><title>RE: Anyone have any practical experience with an AS400 dataprovider that works.</title><link>http://forum.strataframe.net/FindPost3630.aspx</link><description>Just post the images as attachments.&amp;nbsp; I don't know why they aren't showing up.</description><pubDate>Mon, 16 Oct 2006 13:02:29 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Anyone have any practical experience with an AS400 dataprovider that works.</title><link>http://forum.strataframe.net/FindPost3629.aspx</link><description>not sure why the first image doesnt show, here it is again.&lt;br&gt;
&lt;br&gt;
[img]http://forum.strataframe.net/Attachment240.aspx[/img]</description><pubDate>Mon, 16 Oct 2006 12:19:48 GMT</pubDate><dc:creator>Keith Chisarik</dc:creator></item><item><title>RE: Anyone have any practical experience with an AS400 dataprovider that works.</title><link>http://forum.strataframe.net/FindPost3628.aspx</link><description>Finding it tough to give up considering I am finding that the speed of the DataDirect provider is easily 20x the OLE one.&lt;br&gt;
&lt;br&gt;
Here are some more details of the errors I am getting trying to use the DataDirect provider in the BO Mapper.&lt;br&gt;
&lt;br&gt;
I called their support and they confirmed that the DB2 provider is correctly registered in the GAC and the machine.config, which I tend to believe since everything works using the native .NET tools. Perhaps I am doing something wrong that the shots will illustrate.&lt;br&gt;
&lt;br&gt;
DataDirect says they are more than willing to do anything to help, including talk to you guys.&lt;br&gt;
&lt;br&gt;
[img]http://http://forum.strataframe.net/Attachment238.aspx[/img]&lt;br&gt;
&lt;br&gt;
[img]http://forum.strataframe.net/Attachment239.aspx[/img]&lt;br&gt;
&lt;br&gt;
&lt;br&gt;</description><pubDate>Mon, 16 Oct 2006 12:17:36 GMT</pubDate><dc:creator>Keith Chisarik</dc:creator></item><item><title>RE: Anyone have any practical experience with an AS400 dataprovider that works.</title><link>http://forum.strataframe.net/FindPost3619.aspx</link><description>No problem.&amp;nbsp; We've got an inside contact at IBM that might be able to hook us up... if not, I believe they have a "personal" version of DB2 that you can install for free.</description><pubDate>Mon, 16 Oct 2006 08:53:59 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item><item><title>RE: Anyone have any practical experience with an AS400 dataprovider that works.</title><link>http://forum.strataframe.net/FindPost3618.aspx</link><description>Thanks Ben, I am going to move ahead with my current need without Strataframe as I have a tight timetable but being able to use SF with our AS400 clients is srill very important to us. I appreciate you looking into it. If you need anything from me to help you, please let me know.</description><pubDate>Mon, 16 Oct 2006 08:51:48 GMT</pubDate><dc:creator>Keith Chisarik</dc:creator></item><item><title>RE: Anyone have any practical experience with an AS400 dataprovider that works.</title><link>http://forum.strataframe.net/FindPost3614.aspx</link><description>I think we're going to have to get a DB2 server setup around here to figure this one out.&amp;nbsp; Basically, the BOMapper uses the GetSchema() method of the OleDbConnection object to enumerate the "databases" and "tables" but appearantly, the collections are different when getting the schema.&amp;nbsp; It's going to take some testing, but I'll keep you posted.</description><pubDate>Mon, 16 Oct 2006 08:42:36 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item><item><title>RE: Anyone have any practical experience with an AS400 dataprovider that works.</title><link>http://forum.strataframe.net/FindPost3608.aspx</link><description>I have things cooking in "raw ADO" using the DataDirect provider as well. Since I can access data from my AS400 using both OLE and ADO now, I guess I just need help making these work with SF.</description><pubDate>Sun, 15 Oct 2006 22:32:00 GMT</pubDate><dc:creator>Keith Chisarik</dc:creator></item><item><title>RE: Anyone have any practical experience with an AS400 dataprovider that works.</title><link>http://forum.strataframe.net/FindPost3606.aspx</link><description>Next question....&lt;br&gt;
&lt;br&gt;
I got the initial work done so at least it doesnt blow up on me using:&lt;br&gt;
DataLayer.DataSources.Add(New AS400DataSourceItem("", "Provider=IBMDA400; Data Source=192.168.42.xxx; User ID=xxx; Password=xxx;"))&lt;br&gt;
&lt;br&gt;
I didnt actually change much in the custom datasource item, I figured once I mapped it I could debug.&lt;br&gt;
&lt;br&gt;
My problem is this, I dont seem to be able to use the BO Mapper. I have the project set to use the OLE DB connection string and it connects, but the mapper only shows SQL Server, then the IP address of the server in the treeview when I hit "Specify Data Source", no tables. The AS400 uses libraries, then files instead of databases and tables, this may be the issue.&lt;br&gt;
&lt;br&gt;
This is the code that works not using Strataframe if that helps any. It is just a simple "proof of concept" that loads a single field into a grid.&lt;br&gt;
&lt;br&gt;
Being able to use Strataframe with our AS400 client base is huge for us, I appreciate the ongoing help.&lt;br&gt;
&lt;br&gt;
        Try&lt;br&gt;
            Dim sqlstring As String&lt;br&gt;
            sqlstring = "SELECT CSANCS FROM FRUITF.PLT"&lt;br&gt;
            'setup our connection to the database&lt;br&gt;
            Dim oConn As OleDb.OleDbConnection&lt;br&gt;
&lt;br&gt;
            oConn = New OleDb.OleDbConnection("Provider=IBMDA400; Data Source=192.168.42.xxx; User ID=xxx; Password=xxx;")&lt;br&gt;
            oConn.Open()&lt;br&gt;
&lt;br&gt;
            'setup the data adapter&lt;br&gt;
            Dim myDataAdapter As OleDb.OleDbDataAdapter&lt;br&gt;
&lt;br&gt;
            myDataAdapter = New OleDb.OleDbDataAdapter()&lt;br&gt;
&lt;br&gt;
            myDataAdapter.SelectCommand = New OleDb.OleDbCommand(sqlstring, oConn)&lt;br&gt;
&lt;br&gt;
            Dim myData As DataSet&lt;br&gt;
            myData = New DataSet()&lt;br&gt;
&lt;br&gt;
            myDataAdapter.Fill(myData, "PLT")&lt;br&gt;
&lt;br&gt;
            Dim dt As DataTable&lt;br&gt;
            dt = myData.Tables("PLT")&lt;br&gt;
&lt;br&gt;
            Me.BindingSource1.DataSource = dt&lt;br&gt;
            ''binding the table to datagrid&lt;br&gt;
            Me.DataGridView1.DataSource = Me.BindingSource1&lt;br&gt;
            Me.DataGridView1.AutoResizeColumns(DataGridViewAutoSizeColumnsMode.AllCellsExceptHeader)&lt;br&gt;
            Me.DataGridView1.Refresh()&lt;br&gt;
&lt;br&gt;
            'close the connection&lt;br&gt;
            oConn.Close()&lt;br&gt;
&lt;br&gt;
        Catch ex As Exception&lt;br&gt;
            MsgBox(ex.ToString)&lt;br&gt;
        End Try</description><pubDate>Sun, 15 Oct 2006 21:15:37 GMT</pubDate><dc:creator>Keith Chisarik</dc:creator></item><item><title>RE: Anyone have any practical experience with an AS400 dataprovider that works.</title><link>http://forum.strataframe.net/FindPost3532.aspx</link><description>Awesome, you guys are the best.</description><pubDate>Thu, 12 Oct 2006 10:27:38 GMT</pubDate><dc:creator>Keith Chisarik</dc:creator></item><item><title>RE: Anyone have any practical experience with an AS400 dataprovider that works.</title><link>http://forum.strataframe.net/FindPost3530.aspx</link><description>If all you want do to is create a read only DB2 item, then it will actually be quite easy.&amp;nbsp; You will probably have it done before the day is out.&amp;nbsp; You'll still want to copy over the SqlDataSourceItem and modify it, but you can take the methods like UpdateRow(), and CreateInsertCommand(), etc. and just throw a NotSupportedException from within them.&amp;nbsp; Then, all you need to do is modify the CreateSelectCommand() method to match what the AS400 is expecting.&amp;nbsp; As far as I can tell, the only thing that needs to be modified up front is to remove the TOP keyword and make it a LIMIT at the end of the command (you'll see where it is when you look at the code).&amp;nbsp; The other methods that need to be changed are one-liners... like CreateBlankDbCommand()... it just returns a new OleDbCommand object, or whatever provider you're using.</description><pubDate>Thu, 12 Oct 2006 10:10:46 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item><item><title>RE: Anyone have any practical experience with an AS400 dataprovider that works.</title><link>http://forum.strataframe.net/FindPost3528.aspx</link><description>Write AS400DataSourceItem, check.&lt;br&gt;
&lt;br&gt;
Tell me how realistic this is to save some up-front work. Initially all we need to do for phase one is export, read, and report data. Could I just convert/modify the SELECT type methods from the AccessDataSourceItem template to create a sort of read-only  DbDataSourceItem. All I really want to do do is populate a BO, not update it (yet).&lt;br&gt;
&lt;br&gt;
Then later I could layer on the more complicated (I'm sure) INSERT, UPDATE, and concurrency methods?&lt;br&gt;
&lt;br&gt;
What do you think? Is that viable at all?&lt;br&gt;
&lt;br&gt;
Thanks.</description><pubDate>Thu, 12 Oct 2006 10:04:15 GMT</pubDate><dc:creator>Keith Chisarik</dc:creator></item><item><title>RE: Anyone have any practical experience with an AS400 dataprovider that works.</title><link>http://forum.strataframe.net/FindPost3527.aspx</link><description>I would use either the OleDb* objects or some other ADO.NET provider, like the one from DataDirect (&lt;A href="http://www.datadirect.com/products/net/index.ssp"&gt;http://www.datadirect.com/products/net/index.ssp&lt;/A&gt;).&amp;nbsp; Once you have the provider chosen, you will need to create your own DbDataSourceItem, like SqlDataSourceItem.&amp;nbsp; Your best bet is going to be to copy and modify the SqlDataSourceItem class's code file to create your own DbDataSourceItem for DB2.&amp;nbsp; The DbDataSourceItem class creates all of the actual SQL commands from the QueryInfo objects that are supplied by the DataLayer within the business objects.&amp;nbsp; It will take some work, and you will probably want to setup some unit tests to make sure it's all working, but you can use most of what is in the SqlDataSourceItem, because the two are very similar.&amp;nbsp; You can also cut out pieces of the implementation, for example, if you don't want to be able to support stored procedures.&amp;nbsp; The AccessDataSourceItem class uses OleDb* objects, but does not support stored procedures, so it is much smaller than the SqlDataSourceItem or OracleDataSourceItem.</description><pubDate>Thu, 12 Oct 2006 09:34:23 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item></channel></rss>