i am facing some kind of bug in my code i dont know.....i have the following code:
VB Code:
  1. dim connection as new sqlConnection("<my connection string>")
  2. connection.open()
  3. dim command as sqlcommand = connection.createcommand()
  4. command.commandtext = "SELECT * FROM commentLog WHERE 'id' LIKE '2b5bd2c4-fb7d-487b-b299-044e6daf0008'"
  5. MessageBox.show(command.executereader()(0).ToString())
i get the following error:
Invalid attempt to read when no data is present.

but if i try putting this code into the sql entreprise manager he returns me a line(the one i want to retrieve) so i dont get it how my code doesnt work and the sql entreprise manager does work.

any help plz?