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

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.