Click here to Skip to main content
15,897,891 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hello friends,
i want to update database automatically after 15 minutes.data will come from live api
it would be store in my own database
how it is possible
Posted

1 solution

There's a number of ways you can accomplish this.

To start with, you need something to poll the live API with, this could either be a console application invoked via a scheduled task, or a windows service:

http://msdn.microsoft.com/en-us/library/0wc2kk78%28v=vs.90%29.aspx[^]

http://support.microsoft.com/kb/308569[^]

http://msdn.microsoft.com/en-us/library/d56de412%28v=vs.100%29.aspx[^]

Then once you have access to the data, you'll need to save it to your database. I'm assuming it's SQL Server because you haven't stated otherwise so you could either go for a SqlClient, Entity Framework or NHibernate:

http://www.csharp-station.com/Tutorial/AdoDotNet[^]

http://msdn.microsoft.com/en-gb/data/ef.aspx[^]

http://nhforge.org/[^]
 
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