troubleshooting Question

Returning values to variables from a c# SQL statement

Avatar of pclarke7
pclarke7 asked on
DB2.NET ProgrammingC#
2 Comments1 Solution350 ViewsLast Modified:
I have a C# application which uses an ODBC connection to access data from a DB2 database. Typical SQL statement(s) would be

"Select  field2,  field4,  field10   from   ItemMaster where field1 = '12345678' "

I would like to be able to return these 3 file values  (field2, field4 & field10) to variables defined within the application. Appreciate any pointers as to how I might achieve this.

Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 2 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 2 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros