Image is stored in the DB? Typically it is better to store an index (file path) then to store the actual image in the DB. Image data is typically large and adding to the DB will drastically effect your performance for indexes and searches on your tables. Not to mention if you are using a MSDE or a DB with a low max limit you may reach capacity at a faster rate.
There are plenty of posts in this board about connecting to a MS SQL DB did you search? Try searching for 'SQLconnection' from the board main. If you can't find anything or need specifics ask again.