Click here to Skip to main content
16,017,788 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am trying to import Excel sheet into sql server database. My excel sheet contains attendance details of employees where fields are: Emp_code,Emp_nm,Work_hrs,Time
Here at Time column both in_time and out_time is combined that is both In_time and out_time are in single column "Time" separated with white space.
I wanted to separate these timing using code(c#) . that is when i import the file before putting it in database the timing must be separated.

Database structure: Emp_code,Emp_nm,Work_hrs,In_time,Out_time

So please, could anybody help me with that.

Thank you.

What I have tried:

I have tried separating the values using split but its not working
Posted
Updated 3-Apr-16 18:25pm
v4
Comments
Karthik_Mahalingam 4-Apr-16 0:46am    
what is the sql data type for In_time,Out_time
Member 12285135 4-Apr-16 1:22am    
@kartik
datatype for in_time and out_time is time
Karthik_Mahalingam 4-Apr-16 1:35am    
ok fine.
post your code.

Herman<T>.Instance 4-Apr-16 3:41am    
uhhh.. is this Oracle? https://gtusqlplsql.wordpress.com/tag/oracle/ ??
Member 12285135 4-Apr-16 5:48am    
no its sqlserver

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