Passing Null to the Image Datatype in SQL Server
Database
2
Posts
2
Posters
0
Views
1
Watching
-
How to pass NULL for the Image Datatype in SQL Server. For example we pass Null to int, string etc. Please tell me how is this possible for Image.
-
How to pass NULL for the Image Datatype in SQL Server. For example we pass Null to int, string etc. Please tell me how is this possible for Image.
You can try using the
System.DBNull
class. It has a propertyValue
which represents a NULL value in the database. It would be like that:myDBVariable = DBNull.Value;
Talal
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." --Rich Cook