How to create DB2 connection from Dynamics AX 2012

Viewed 23

In AX2012, I would like to create from x++ (in Dynamics) a query to DB2.

In my Server I installed the Microsoft OLE DB Provider for DB2 Version 6.0 enter image description here

Which class have I to use by x++ to create and run the script in order to query the database?

I would like use this code, is right way?

System.Data.SqlClient.SqlCommand                cmd;
System.Data.SqlClient.SqlParameterCollection    parameters;
Int                                             recCount;

Thanks.

0 Answers
Related