General information
Title:
Setting datetime field to NULL in SQL using ADO
Environment versions
Network:
Windows 2003 Server
Hello,
I am connecting to a SQL sevrver 2005 using ADO. in VFP6 prg.
I need to set datetime field in a sql table back to NULL using rs.update.
I tried different ways but it still does not work.
I tried:
rs.Fields("discharge_date").Value=.NULL.
rs.Fields("discharge_date").Value=""
rs.Fields("discharge_date").Value={}
rs.Fields("discharge_date").Value=NULL
rs.Fields("discharge_date").Value="NULL"
None of above works. I am still not unable to remove the value of the datetime field....
Any idea?
Thanks,
Kam Lee
SUNY DMC
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only