Click here to Skip to main content
15,886,199 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Insert into expen(schemeno,monyr,exp_date,circle,division, chq_no,amount,passingDate)
 values('W2/2013/11516','201302',CAST('2013-02-24' AS datetime),'01','01','2461225','5000'
 ,CAST('2013-02-28' AS  datetime))


What I have tried:

i have tried insert data into table but error found in sql
Posted
Updated 5-May-18 22:41pm
v2

1 solution

SQL
CAST('2013-02-30' AS datetime)
30th February doesn't exist, so it's an "out-of-range" value.
 
Share this answer
 
Comments
Nishant.Chauhan80 6-May-18 4:25am    
i will try 28 feb but not insert data same error
Nishant.Chauhan80 6-May-18 4:30am    
working thanks sir

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900