+ 1

How to backup database only in once in a month in c#.net window form application.

31st Aug 2019, 2:55 PM
Divya Motwani
Divya Motwani - avatar
26 Respuestas
0
I think for this task better using a servise, but not WFA.
1st Sep 2019, 6:41 AM
id001x
id001x - avatar
0
I have used windows form application
1st Sep 2019, 9:35 AM
Divya Motwani
Divya Motwani - avatar
0
It's will be automatically, or for user request?
1st Sep 2019, 9:36 AM
id001x
id001x - avatar
0
and also use backup database code but in that problem is that it occur every time and I want to use only after 1 month
1st Sep 2019, 9:37 AM
Divya Motwani
Divya Motwani - avatar
0
it will be automatically
1st Sep 2019, 9:38 AM
Divya Motwani
Divya Motwani - avatar
0
actually I have used function of backup in login and call in load event of page
1st Sep 2019, 9:39 AM
Divya Motwani
Divya Motwani - avatar
0
You must create a file or database column which will contain a date of last copy, and after this test current date with this date. Or you can read creation date of database copy file and do new copy, if passed a month.
1st Sep 2019, 9:41 AM
id001x
id001x - avatar
0
I have also used Datetime dt=DateTime.Now; and then Dt.Adddays(30);
1st Sep 2019, 9:41 AM
Divya Motwani
Divya Motwani - avatar
0
but what next do in that I am not getting it.
1st Sep 2019, 9:41 AM
Divya Motwani
Divya Motwani - avatar
0
You must use this function in the method of copy create, but this method you must call only if datetime.now >= dt , which located in file or database column
1st Sep 2019, 9:44 AM
id001x
id001x - avatar
0
actually I want that backup function will run after 1month from today
1st Sep 2019, 9:46 AM
Divya Motwani
Divya Motwani - avatar
0
Without logging?
1st Sep 2019, 9:47 AM
id001x
id001x - avatar
0
in my code when I run login page then in every time backup is also create and I don't want that
1st Sep 2019, 9:47 AM
Divya Motwani
Divya Motwani - avatar
0
and in for that I don't want to use database or file for date time I am ussing current system date by DateTimeNow
1st Sep 2019, 9:49 AM
Divya Motwani
Divya Motwani - avatar
0
yes without logging
1st Sep 2019, 9:50 AM
Divya Motwani
Divya Motwani - avatar
0
I want to only know steps for after 1 month backup how can I create
1st Sep 2019, 9:52 AM
Divya Motwani
Divya Motwani - avatar
0
Your app run all time on pc? Or might be closed?
1st Sep 2019, 9:55 AM
id001x
id001x - avatar
0
it is closed
1st Sep 2019, 9:58 AM
Divya Motwani
Divya Motwani - avatar
0
You must use service, sheduler or your app must be run all time. You don't have any another way...
1st Sep 2019, 9:59 AM
id001x
id001x - avatar
0
how to use scheduler
1st Sep 2019, 10:01 AM
Divya Motwani
Divya Motwani - avatar