Click here to Skip to main content
15,896,111 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi everyone,

Iam extracting data from XML File, This xml file will insert records into sqlserver table.

So, here I want to insert all the previous date records to Till todays date.

Can you please help me.

Thanks
Posted
Comments
OriginalGriff 2-Feb-14 5:55am    
And?
What have you tried?
Where are you stuck?
What help do you need?
Software Engineer 892 2-Feb-14 5:59am    
I have Tried this,

Select * from dbo.stud_Details where JoinDateTime <= DATE_SUB(JoinDateTime (),INTERVAL 1 DAY);

Please can you help me.
I want to display the records less than todays date to Till todays date.

1 solution

Using LINQ, get the list of xml elements less than the given date and then insert them into the table.

For other scenarios, you could try INSERT INTO SELECT - http://www.w3schools.com/sql/sql_insert_into_select.asp[^].
 
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