Click here to Skip to main content
15,901,426 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
How To time(7) data type in sql server 2008 r2 insert this 36:46 value in c#

Example:
SQL
Insert into Accounts_DailyAttendance(UserID,UserName,ShiftStart,ShiftEnd,ProcessDate,Punch1,
LateIn,OutPunch,EarlyOut,Overtime_HHMM,FirstHalf,SecondHalf)
values('1001','SENTHILKUMAR  R','09:00','20:00','5/2/2014 12:00:00 AM','5/2/2014 4:44:00 PM','0','5/2/2014 8:23:00 PM','0','30:46','PR','PR')


This Insertdata Overtime_HHMM values is 30:46 but this value not insert,so how to this 30:46 value insert(time(7)) datatype in sql server2008 R2

Thanks
Posted
Updated 19-Nov-14 0:03am
v3

You can not store more than 23:59:59 Hours in Time datatype.

You can create some other column with other datatype which could store such kind of value.

Check this.

how-work-time-format-hhh-mm-ss-more-than-24-hours[^]
 
Share this answer
 
Refer this Link
 
Share this answer
 

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