SqlCommand findProducts = new SqlCommand("SEL ECT PRODUCT_TYPE_ID FROM
PRODUCT_TYPE WHERE [NAME] = 'Meals'", sqlConnection1) ;
This command returns a value of 17. How can i insert this value into
a string variable? Please help . I tried this but it wouldnt work
SqlDataReader myReader = findProducts.Ex ecuteReader();
while (myReader.Read( ))
{
ProdTypeID =
int.Parse(myRea der["PRODUCT_TYPE_I D"].ToString());
}
PRODUCT_TYPE WHERE [NAME] = 'Meals'", sqlConnection1) ;
This command returns a value of 17. How can i insert this value into
a string variable? Please help . I tried this but it wouldnt work
SqlDataReader myReader = findProducts.Ex ecuteReader();
while (myReader.Read( ))
{
ProdTypeID =
int.Parse(myRea der["PRODUCT_TYPE_I D"].ToString());
}
Comment