IBM.Data.DB2.ISeries
All I am looking to accomplish is return data from one simple select query into a workable format (Collecion, datatable, reader, etc). I don't see the need to write a DAL for this (it's just one query). The db2 database which resides on a AS/400 machine running os/400 seems automtically classifies the database as a Iseries Db2
Heres where I'm at:
Using the IBM.Data.DB2.ISeries, It apears that I can connect to the db2 using a simple connection string then a standard query. My issue is I need to create this blind (meaning I do not have access to the db at my location, and can not simulate the as400 running the db). In theory this should work as long I specify the correct criteria(user,pw,datasource,etc), Correct?
All the application does is return data to a datagrid then export it to excel and email. I am letting the client type/paste his query into a texbox, which then gets saved and ran as thecmd text. If they saved the text "Exec sproc_testProcedure", that shoud also in theory attempt to run the sproc_testprocedure stored procedure correct? The only reason I am wonderig is because the IBM.Data.DB2.Iseries namespace does not seem to have a way to execute procedures and add parameters.
Thanks for the help