Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Setting datetime field to NULL in SQL using ADO
Message
De
24/02/2012 10:25:04
Kam Lee
SUNY-Health Science Center
Brooklyn, New York, États-Unis
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Titre:
Setting datetime field to NULL in SQL using ADO
Versions des environnements
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Desktop
Divers
Thread ID:
01536432
Message ID:
01536432
Vues:
65
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform