I don't think there's any difference, it's a matter of which you find more readable. I like to see == because that can be seen to be an equality check at a glance, whereas a method call you actually have to read the word to find out what is happening.
It would appear that you have a PEBKAC error going on.
Why is common sense not common?
Never argue with an idiot. They will drag you down to their level where they are an expert.
Sometimes it takes a lot of work to be lazy
Please stand in front of my pistol, smile and wait for the flash - JSOP 2012
Use a SqlCommand for the actual sql text, and use a SqlConnection for the connection to the database. A simple search will reveal millions of hits on these topics. You need to use the ExecuteNonQuery method for your command.
*pre-emptive celebratory nipple tassle jiggle* - Sean Ewington