Click here to Skip to main content
15,895,799 members
Articles / Programming Languages / C#

problem in updating image in sql database

Rate me:
Please Sign up or sign in to vote.
5.00/5 (1 vote)
4 Oct 2012CPOL 0  
The most likely reason is that your image column in the DB is set as "allow nulls" false.If you do not provide an image with each new row you try to create, the SQL engine will not allow the row to be created, and will throw an exception.Fixes are obvious:1) Provide an image (even if it...

Alternatives

Members may post updates or alternatives to this current article in order to show different approaches or add new features.

Please Sign up or sign in to vote.
5 Oct 2012JeseemRazak619 1 alternative  
Sir, I recently developed an address book application. When I try to update my address info if no new image is inserted the update query fails to execute.private void Update_Click(object sender, EventArgs e) { if (txtfname.Text != "" && txtlname.Text != "") ...

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
CEO
Wales Wales
Born at an early age, he grew older. At the same time, his hair grew longer, and was tied up behind his head.
Has problems spelling the word "the".
Invented the portable cat-flap.
Currently, has not died yet. Or has he?

Comments and Discussions