I'm trying to figure out how to use SQL to search for a record and return a Boolean value to tell me whether its there or not.
thanks for the post, but i didnt see anything that would actually let me store the result of a boolean value
These two questions aren't really the same thing, but addressing the original question...
Search for a record, which I am sure was in the tutorials.
If the returned results contain the record set your boolean to true.
first create a boolean and set it to true, then declare the sql statements and then execute it and assign it to a Datareader. then check for if reader has rows. if no rows return false.
Comment