Click here to Skip to main content
15,879,239 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
Hi,

I want to add all my contents in my tables in local database to server database at the end of day automatically.Is it possible by setting timer in login page.Or else any other way.

I am using C# ASP.net 2008,SQL 2005.

Please help me.

Thanks.....
Posted
Comments
Ravi Shankar Dokka 4-Aug-15 6:02am    
You can either create a stored procedure with all the insert statements or create an SSIS package.

Create a job to execute the stored procedure/SSIS package at your desired intervals.

Hope it helps.
Thanks.
sayana3 4-Aug-15 6:04am    
Thanks for replying.
Where should i call the procedure then?
Ravi Shankar Dokka 4-Aug-15 6:11am    
On your local database server you need to create a job. Refer the below link for creating the SQL job.
https://msdn.microsoft.com/en-IN/library/ms187910.aspx
sayana3 4-Aug-15 6:10am    
how to check intervals in timer.Please any sample code or limk.

Thanks for replyng..
DamithSL 4-Aug-15 6:23am    
what you mean by local database? asp.net running on server and you may have database server as well, so you have client databases?

Google "asp.net schedule task", this is a very frequently asked question.
 
Share this answer
 
Setting up a timer at the page level will not solve your problem. ASP.Net pages are rendered on the client side and not on the server side.

Maybe you can create some sort of service that will push this data.
It will need to be installed on the client though...
 
Share this answer
 
Comments
sayana3 5-Aug-15 0:30am    
Will you please give any sample link.I have no idea about it.

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