How do I set a column value to NULL in SQL Server Management Studio?

Zack Peterson picture Zack Peterson · Jan 14, 2009 · Viewed 922.4k times · Source

How do I clear the value from a cell and make it NULL?

Answer

Jeff Martin picture Jeff Martin · Jan 14, 2009

I think @Zack properly answered the question but just to cover all the bases:

Update myTable set MyColumn = NULL

This would set the entire column to null as the Question Title asks.

To set a specific row on a specific column to null use:

Update myTable set MyColumn = NULL where Field = Condition.

This would set a specific cell to null as the inner question asks.