Click here to Skip to main content
15,889,200 members
Articles / Database Development / SQL Server

Passing DbNull.Value to an SQL Image column

Rate me:
Please Sign up or sign in to vote.
4.00/5 (4 votes)
20 Sep 2018CPOL 9.8K   1  
If you try to pass a DbNull.Value to an SQL Image column, you get an exception: "Operand type clash: nvarchar is incompatible with image" - not sure why it's throwing that, but it can be done.

Views

Daily Counts

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