I have a Form Load event that triggers ...
Using a webservice I get the GUID of the active employee ... I want to use this information to Query a table to get an "OID" for that user for use in further queries ..
//Get the GUID of the current employee
string strGUID = xnMain.SelectSingleNode("/my:myFields/my:GUID", ns).Value;
//Declaure the strOID;
string strOID = null;
//Execute query to get the OID of the User;
AdoQueryConnection dsSQL = (AdoQueryConnection)this.DataConnections["GetOID"];
string strOrigSQL = dsSQL.Command;
dsSQL.Command = "select oid from odb3.vwPersonInfo where employeeguid = '" + strGUID + "';";
dsSQL.Execute();
//Need magic code here;
I need the code that allows me to set strOID = the returned value of the SQL Query
Can anyone help me out?