User-494664520 posted
why in this case i cant use has row keyword? i want to search at bright table and do the if else statement.
using (SqlConnection conStrstock8 = new SqlConnection(ConfigurationManager.ConnectionStrings["ConnectionString"].ToString()))
{
string sqlupStockselect8 = "Select ProductID,ProductColorType,ProductSize WHERE ProductID=@pid AND ProductColorType=@protType AND ProductSize=@size";
using (SqlCommand cmdupstock8 = new SqlCommand(sqlupStockselect8, conStrstock8))
{
cmdupstock8.Parameters.AddWithValue("@pid", Id);
cmdupstock8.Parameters.AddWithValue("@protType", "Type8");
cmdupstock8.Parameters.AddWithValue("@size", " XS");
SqlDataReader myReader = cmdupstock8.ExecuteReader();
while (myReader.HasRows())
{
}
}