saeed_s261 0 Newbie Poster
SqlConnection con = new SqlConnection(connection string);
 SqlCommand cmd = new SqlCommand("select bookfile from books where bookfile='....' " , con);
                            con.Open();
                            SqlDataReader dr = cmd.ExecuteReader();
                            if (dr.HasRows)
                                {
                                   // Is Exist 
                                }

this code is for check whether a book file is exist in database?