Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 Transact-SQL (2000)
 inserting date into sql 2000 server

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2001-09-24 : 01:20:37
Andrew Seah writes "I have a string 19761224(year=1976, month=12, day=24), how am i suppose to write an SQL statement to store this data as datetime format?

Insert CustomerRec (Dateofbirth)
VALUES ('19761224')

Must I format the string into yyyymmdd date format first?

Pls help. Thanks a lot.
"
   

- Advertisement -