77

In sql server enterprise manager, how do you write an insert statement and pass in null values?

MaVRoSCy
  • 17,747
  • 15
  • 82
  • 125
leora
  • 188,729
  • 360
  • 878
  • 1,366

2 Answers2

114
INSERT INTO atable (x,y,z) VALUES ( NULL,NULL,NULL)
64

If you're using SSMS (or old school Enterprise Manager) to edit the table directly, press CTRL+0 to add a null.

mattmc3
  • 17,595
  • 7
  • 83
  • 103