Click here to Skip to main content
15,742,357 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to take backup of database at a particular time using c# code .Please help me.................
Posted

1 solution

You can backup/restore database using C#. Here are the details for the same: MSDN: Backing Up and Restoring Databases and Transaction Logs[^]

About @specific time -> You need to schedule it. Probably make a windows service and let it handle it at specific interval.

Another link for reference: Similar discussion[^]
 
Share this answer
 
v2
Comments
arindamrudra 18-Nov-10 2:25am    
Sandeep, your last link is not working. Can you please post it again.
Sandeep Mewara 18-Nov-10 4:50am    
Here you go:
http://www.sqldev.org/transactsql/database-backup-restore-with-cnet-60630.shtml
Sandeep Mewara 18-Nov-10 4:51am    
'l' at the end was missed. Sorry for that!

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