@@ -17,54 +17,48 @@ This is recommended for users whose PC is turned on 24 hours.
1717
1818## Setup
1919
20- ### Step 1 – Download RestartSqlsync Batch File
21-
22- 1 . Download [ RestartSqlsync.bat] ( https://drive.google.com/file/d/1v2V8nUbmCHk6Cpks4P32Zz1JVU2n4zip/view?usp=sharing )
23-
24- ### Step 2 – Place Batch File in SqlSync Folder
25-
26- 1 . Copy and paste ` RestartSqlsync.bat ` to the SqlSync installation folder
27-
28- ::: info
29- The default SqlSync installation folder is ` C:\SQLSync `
30- :::
31-
32- ![ place-batch-file-in-sqlsync-folder] ( ../../../static/img/integration/bi-dashboard/scheduler-restart-sqlsync/1.jpg )
33-
34- ### Step 3 – Create Windows Task Scheduler
20+ ### Step 1 – Create Windows Task Scheduler
3521
36221 . Open ** Task Scheduler** > Click ** Create Basic Task...**
3723
38- ![ create-basic-task] ( ../../../static/img/integration/bi-dashboard/scheduler-restart-sqlsync/2 .jpg )
24+ ![ create-basic-task] ( ../../../static/img/integration/bi-dashboard/scheduler-restart-sqlsync/1 .jpg )
3925
40262 . Enter a name for the task (e.g. ** Restart Sqlsync** ) > ** Next**
4127
42- ![ enter-task-name] ( ../../../static/img/integration/bi-dashboard/scheduler-restart-sqlsync/3 .jpg )
28+ ![ enter-task-name] ( ../../../static/img/integration/bi-dashboard/scheduler-restart-sqlsync/2 .jpg )
4329
44303 . Select ** Daily** > ** Next**
4531
46- ![ select-daily] ( ../../../static/img/integration/bi-dashboard/scheduler-restart-sqlsync/4 .jpg )
32+ ![ select-daily] ( ../../../static/img/integration/bi-dashboard/scheduler-restart-sqlsync/3 .jpg )
4733
48344 . Set start time based on your preference (e.g. ** 5:00:00 AM** ) > ** Next**
4935
50- ![ set-start-time] ( ../../../static/img/integration/bi-dashboard/scheduler-restart-sqlsync/5 .jpg )
36+ ![ set-start-time] ( ../../../static/img/integration/bi-dashboard/scheduler-restart-sqlsync/4 .jpg )
5137
52385 . Select ** Start a program** > ** Next**
5339
54- ![ select-start-a-program] ( ../../../static/img/integration/bi-dashboard/scheduler-restart-sqlsync/6.jpg )
40+ ![ select-start-a-program] ( ../../../static/img/integration/bi-dashboard/scheduler-restart-sqlsync/5.jpg )
41+
42+ 6 . At ** Program/script** field, paste the following command > ** Next**
43+
44+ ```
45+ cmd /c "(net stop Sqlsync || ver > nul) && timeout /t 10 /nobreak && net start Sqlsync"
46+ ```
47+
48+ ![ enter-command] ( ../../../static/img/integration/bi-dashboard/scheduler-restart-sqlsync/6.jpg )
5549
56- 6 . At ** Program/script ** field > ** Browse ** > Select the ` RestartSqlsync.bat ` file path > ** Open ** > ** Next **
50+ 7 . Click ** Yes ** when prompted with "it appears as though arguments have been included"
5751
58- ![ select-batch-file-path ] ( ../../../static/img/integration/bi-dashboard/scheduler-restart-sqlsync/7.jpg )
52+ ![ confirm-arguments ] ( ../../../static/img/integration/bi-dashboard/scheduler-restart-sqlsync/7.jpg )
5953
60- 7 . Check ** Open the Properties dialog for this task when I click Finish** > ** Finish**
54+ 8 . Check ** Open the Properties dialog for this task when I click Finish** > ** Finish**
6155
6256 ![ summary-and-finish] ( ../../../static/img/integration/bi-dashboard/scheduler-restart-sqlsync/8.jpg )
6357
64- 8 . Select ** Run whether user is logged on or not** and ** Run with highest privileges** > ** OK**
58+ 9 . Select ** Run whether user is logged on or not** and ** Run with highest privileges** > ** OK**
6559
6660 ![ run-with-highest-privileges] ( ../../../static/img/integration/bi-dashboard/scheduler-restart-sqlsync/9.jpg )
6761
68- 9 . Enter Windows administrator ** User name** and ** Password** > ** OK**
62+ 10 . Enter Windows administrator ** User name** and ** Password** > ** OK**
6963
70- ![ enter-credentials] ( ../../../static/img/integration/bi-dashboard/scheduler-restart-sqlsync/10.jpg )
64+ ![ enter-credentials] ( ../../../static/img/integration/bi-dashboard/scheduler-restart-sqlsync/10.jpg )
0 commit comments