Unusual Techie
Unusual Techie

Reputation: 1

How to save NULL in SQL DB using c#

I need to save just NULL in a column of SQL DB Table. but it is saving as 'NULL' or "" (blank). How to save just NULL?

Upvotes: 0

Views: 129

Answers (1)

ThorstenC
ThorstenC

Reputation: 1314

There is a special object: DBNULL. You can handle this as null.

Upvotes: 1

Related Questions