insert into student(firstname,lastname,dateofbirth,fathername,mothername,gender,height,weight) values('Raja','Sekar',CONVERT(datetime,'20-07-2011'),'Sekar','Radha','Male','5.58','70')
hi,
iam amudhan,
anyone please help me what mistake in a above query i got one error please rectify it...
The conversion of a varchar data type to a datetime data type resulted in an out-of-range value.
The statement has been terminated.
this is error 
Manav PandyaRank #166 · 14.3K reputationPosted Mar 4, 2018, 8:34 PM EST
sudipta sanyalRank #1,945 · 753 reputationPosted Mar 4, 2018, 8:22 PM EST
sudipta sanyalRank #1,945 · 753 reputationPosted Mar 4, 2018, 8:29 PM EST
Please Visit
https://www.mssqltips.com/sqlservertip/1145/date-and-time-conversions-using-sql-server/
Amudhan KuppanRank #3,375 · 426 reputationPosted Mar 4, 2018, 8:25 PM EST
Nitin SontakkeRank #264 · 9.6K reputationPosted Mar 4, 2018, 10:09 PM EST
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questionsTop experts