Greetings,
I have a dataSet where I return an ID, I now need to associate that ID
with the description, which is in another database. I think I am on
the right track, but am not sure:
DataSet myData = new DataSet();
myAdapter.Fill(myData);
foreach (DataRow dRow in myData.Tables[0].Rows)
{
int prodID = (int)dRow["prod_id"];
string sel = "SELECT prod_desc FROM product_master WHERE
prod_id = " + prodID;
SqlCommand cmd =
new SqlCommand(sel, new
SqlConnection(GetConnectionString(siteCode)));
cmd.Connection.Open();
SqlDataReader dr =
cmd.ExecuteReader(CommandBehavior.CloseConnection) ;
}
return myData;
I am not sure how to update the dataSet???
Thanks in advance!