Hi All- I've been browsing for a while but finally had to sign up to ask a question. I'm working on a little project that pulls data from a few places, Active Directory, ADAM, and an Informix Database. I've got my ODBC drivers installed and I've got my Data source set up properly and I have finally (after reading through much here) got it returning some results.
Informix CSDK 3.0
So, I added a query under the databasename.xsd page (actually modified the Fill() command) of one table. I want the SQL to be as follows:
SELECT ss_no FROM "informix".id_rec WHERE (id = idnum)
Where idnum is a variable in my C# windows form application. If I hard code the query to say
I get the valid ss_no field for that ID.
So, how would I go about this? I've tried adding it to the Parameters Collection, but I can't figure out what to do with it from there..
I want to take what I return and put it into a variable (no problem... can handle that, I've set it to execute scalar and get a string back, I can cast it to what i need to do with it) but then I need to do an UPDATE command also with a variable included (so, same principal, two problems)
Any help would be much is appreciated, let me know if you need any code scraps!