General information
Forum:
Microsoft SQL Server
Title:
Cast() a blank string to datetime
Im inserting into SQL from Fox using Pass through. Fox has empty Dates {//}. if I use CAST('' AS DATETIME) I get a default datetime 1900-01-01 00:00 ext in SQL. The Date in SQL does not accetp nulls. Can I get SQL to CAST() an empty Date? OR, should I allow SQL date column to accept nulls? I usally allow nulls in cretain columns.
Your input is appreciated.
Regards
Jeff Hart
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