{"id":1051,"date":"2020-11-13T15:34:23","date_gmt":"2020-11-13T07:34:23","guid":{"rendered":"https:\/\/www.yohz.com\/blogs\/?p=1051"},"modified":"2020-11-20T09:11:25","modified_gmt":"2020-11-20T01:11:25","slug":"setting-up-a-sql-image-viewer-export-task-in-windows-task-scheduler","status":"publish","type":"post","link":"https:\/\/www.yohz.com\/blogs\/2020\/11\/13\/setting-up-a-sql-image-viewer-export-task-in-windows-task-scheduler\/","title":{"rendered":"Setting up a SQL Image Viewer export task in Windows Task Scheduler"},"content":{"rendered":"<p><a href=\"https:\/\/www.yohz.com\/siv8_details.htm\">SQL Image Viewer<\/a> Professional Edition allows you to save your export tasks and run them unattended using the SQL Image Viewer command line interface.\u00a0 This blog describes how to set up a Windows Task Scheduler recurring task to run SQL Image Viewer export tasks.<\/p>\n<p>You must first set up and save an export settings file using the SQL Image Viewer GUI, described <a href=\"https:\/\/www.yohz.com\/help\/sqlblobviewer\/commmand_line_interface.htm\">here<\/a>.\u00a0 \u00a0Before setting up the export task in Task Scheduler, we should make sure that the export task can be ran successfully from the command prompt.<\/p>\n<p>To do that, open a command prompt window and navigate to the folder where the <a href=\"https:\/\/www.yohz.com\/siv8_details.htm\">SQL Image Viewer<\/a> command line interface executable file (SQLImageViewerCmd.exe) is located.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1056\" src=\"https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2020\/11\/taskscheduler00a.png\" alt=\"\" width=\"870\" height=\"502\" srcset=\"https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2020\/11\/taskscheduler00a.png 870w, https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2020\/11\/taskscheduler00a-300x173.png 300w, https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2020\/11\/taskscheduler00a-768x443.png 768w, https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2020\/11\/taskscheduler00a-624x360.png 624w\" sizes=\"(max-width: 870px) 100vw, 870px\" \/><\/p>\n<p>Enter the command line interface file name, and provide the fully qualified export settings file name as the first parameter.\u00a0 You must enclose the parameter in double quotes if it contains spaces.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1057\" src=\"https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2020\/11\/taskscheduler00b.png\" alt=\"\" width=\"870\" height=\"502\" srcset=\"https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2020\/11\/taskscheduler00b.png 870w, https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2020\/11\/taskscheduler00b-300x173.png 300w, https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2020\/11\/taskscheduler00b-768x443.png 768w, https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2020\/11\/taskscheduler00b-624x360.png 624w\" sizes=\"(max-width: 870px) 100vw, 870px\" \/><\/p>\n<p>Run the command and check that the export task ran successfully.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1058\" src=\"https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2020\/11\/taskscheduler00c.png\" alt=\"\" width=\"870\" height=\"502\" srcset=\"https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2020\/11\/taskscheduler00c.png 870w, https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2020\/11\/taskscheduler00c-300x173.png 300w, https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2020\/11\/taskscheduler00c-768x443.png 768w, https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2020\/11\/taskscheduler00c-624x360.png 624w\" sizes=\"(max-width: 870px) 100vw, 870px\" \/><\/p>\n<p>Now we can start up the Task Scheduler.\u00a0 We will create a basic task in this example.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1052\" src=\"https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2020\/11\/taskscheduler01.png\" alt=\"\" width=\"467\" height=\"365\" srcset=\"https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2020\/11\/taskscheduler01.png 467w, https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2020\/11\/taskscheduler01-300x234.png 300w\" sizes=\"(max-width: 467px) 100vw, 467px\" \/><\/p>\n<p>Enter a name and description for the task.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1053\" src=\"https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2020\/11\/taskscheduler02.png\" alt=\"\" width=\"696\" height=\"488\" srcset=\"https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2020\/11\/taskscheduler02.png 696w, https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2020\/11\/taskscheduler02-300x210.png 300w, https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2020\/11\/taskscheduler02-624x438.png 624w\" sizes=\"(max-width: 696px) 100vw, 696px\" \/><\/p>\n<p>Select your required frequency to run the task, and the frequency settings on the subsequent page.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1054\" src=\"https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2020\/11\/taskscheduler03.png\" alt=\"\" width=\"696\" height=\"488\" srcset=\"https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2020\/11\/taskscheduler03.png 696w, https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2020\/11\/taskscheduler03-300x210.png 300w, https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2020\/11\/taskscheduler03-624x438.png 624w\" sizes=\"(max-width: 696px) 100vw, 696px\" \/><\/p>\n<p>Select the <strong>Start a program<\/strong> action.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1055\" src=\"https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2020\/11\/taskscheduler05.png\" alt=\"\" width=\"696\" height=\"488\" srcset=\"https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2020\/11\/taskscheduler05.png 696w, https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2020\/11\/taskscheduler05-300x210.png 300w, https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2020\/11\/taskscheduler05-624x438.png 624w\" sizes=\"(max-width: 696px) 100vw, 696px\" \/><\/p>\n<p>In the program settings window, enter the <span style=\"text-decoration: underline;\">fully qualified file name<\/span> to SQLImageViewerCmd.exe, enclosed in double quotes.\u00a0 For the arguments, enter the <span style=\"text-decoration: underline;\">fully qualified file name<\/span> to the export settings file, enclosed in double quotes.\u00a0 For the <strong>Start in<\/strong> value, enter the <span style=\"text-decoration: underline;\">fully qualified folder name<\/span> of the folder where SQLImageViewerCmd.exe is located, <strong>without<\/strong> the double quotes.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1060\" src=\"https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2020\/11\/taskscheduler07.png\" alt=\"\" width=\"696\" height=\"488\" srcset=\"https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2020\/11\/taskscheduler07.png 696w, https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2020\/11\/taskscheduler07-300x210.png 300w, https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2020\/11\/taskscheduler07-624x438.png 624w\" sizes=\"(max-width: 696px) 100vw, 696px\" \/><\/p>\n<p>And you&#8217;re done.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1061\" src=\"https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2020\/11\/taskscheduler08.png\" alt=\"\" width=\"696\" height=\"488\" srcset=\"https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2020\/11\/taskscheduler08.png 696w, https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2020\/11\/taskscheduler08-300x210.png 300w, https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2020\/11\/taskscheduler08-624x438.png 624w\" sizes=\"(max-width: 696px) 100vw, 696px\" \/><\/p>\n<p>You can run the task to check if everything has been set up correctly.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1062\" src=\"https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2020\/11\/taskscheduler09.png\" alt=\"\" width=\"554\" height=\"235\" srcset=\"https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2020\/11\/taskscheduler09.png 554w, https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2020\/11\/taskscheduler09-300x127.png 300w\" sizes=\"(max-width: 554px) 100vw, 554px\" \/><\/p>\n<p>A log file is automatically created every time the SQL Image Viewer command line interface runs.\u00a0 The folder where the logs are stored is displayed in the GUI:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1063\" src=\"https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2020\/11\/taskscheduler10.png\" alt=\"\" width=\"714\" height=\"621\" srcset=\"https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2020\/11\/taskscheduler10.png 714w, https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2020\/11\/taskscheduler10-300x261.png 300w, https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2020\/11\/taskscheduler10-624x543.png 624w\" sizes=\"(max-width: 714px) 100vw, 714px\" \/><\/p>\n<p>You would inspect the log files if your export task no longer runs successfully.<\/p>\n<div class=\"fcbkbttn_buttons_block\" id=\"fcbkbttn_left\"><div class=\"fcbkbttn_like \"><fb:like href=\"https:\/\/www.yohz.com\/blogs\/2020\/11\/13\/setting-up-a-sql-image-viewer-export-task-in-windows-task-scheduler\/\" action=\"like\" colorscheme=\"light\" layout=\"button\"  size=\"small\"><\/fb:like><\/div><div class=\"fb-share-button  \" data-href=\"https:\/\/www.yohz.com\/blogs\/2020\/11\/13\/setting-up-a-sql-image-viewer-export-task-in-windows-task-scheduler\/\" data-type=\"button\" data-size=\"small\"><\/div><\/div>","protected":false},"excerpt":{"rendered":"<p>SQL Image Viewer Professional Edition allows you to save your export tasks and run them unattended using the SQL Image Viewer command line interface.\u00a0 This blog describes how to set up a Windows Task Scheduler recurring task to run SQL Image Viewer export tasks. You must first set up and save an export settings file [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[11],"tags":[12],"_links":{"self":[{"href":"https:\/\/www.yohz.com\/blogs\/wp-json\/wp\/v2\/posts\/1051"}],"collection":[{"href":"https:\/\/www.yohz.com\/blogs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.yohz.com\/blogs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.yohz.com\/blogs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.yohz.com\/blogs\/wp-json\/wp\/v2\/comments?post=1051"}],"version-history":[{"count":3,"href":"https:\/\/www.yohz.com\/blogs\/wp-json\/wp\/v2\/posts\/1051\/revisions"}],"predecessor-version":[{"id":1066,"href":"https:\/\/www.yohz.com\/blogs\/wp-json\/wp\/v2\/posts\/1051\/revisions\/1066"}],"wp:attachment":[{"href":"https:\/\/www.yohz.com\/blogs\/wp-json\/wp\/v2\/media?parent=1051"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.yohz.com\/blogs\/wp-json\/wp\/v2\/categories?post=1051"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.yohz.com\/blogs\/wp-json\/wp\/v2\/tags?post=1051"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}