Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SQL Edit Date to Null Help

Status
Not open for further replies.

excalibur78

IS-IT--Management
Jan 3, 2001
66
US
I'm looking to figure out a way to update a SQL record with existing data in a datetime field with null. When I blank the field I get 1/1/1900 not null. I'm using ADO to do the manipulation of the data. Any help could be great.


David
 
This SQL statement should work:

Code:
UPDATE tablename
SET datecol = NULL

You can add a WHERE clause if you only want to update certain rows.

If this is what you're doing and it's not working, check you haven't got a DEFAULT set on that column.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top