{"id":1355,"date":"2021-04-15T11:22:38","date_gmt":"2021-04-15T03:22:38","guid":{"rendered":"https:\/\/www.yohz.com\/blogs\/?p=1355"},"modified":"2021-04-15T11:22:38","modified_gmt":"2021-04-15T03:22:38","slug":"locking-data-sets-in-sql-image-viewer","status":"publish","type":"post","link":"https:\/\/www.yohz.com\/blogs\/2021\/04\/15\/locking-data-sets-in-sql-image-viewer\/","title":{"rendered":"Locking data sets in SQL Image Viewer"},"content":{"rendered":"<p>We recently fixed a bug in <a href=\"https:\/\/www.yohz.com\/siv8_details.htm\">SQL Image Viewer<\/a> where locking data sets was not working and resulted in errors.\u00a0 It would seem that not many users are aware of this useful feature, so here&#8217;s more details on what locking does.<\/p>\n<p>When you run a query and want to keep the results but need to run another query, your options in most SQL tools is to set up another connection and run the other query.\u00a0 Or run another instance of the application to be able to run the other query.<\/p>\n<p>In <a href=\"https:\/\/www.yohz.com\/siv8_details.htm\">SQL Image Viewer<\/a>, you can lock the current data set so that it is not replaced by the results of the new query.\u00a0 Say we want to keep this data set containing 99 rows in <a href=\"https:\/\/www.yohz.com\/siv8_details.htm\">SQL Image Viewer<\/a>:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1356\" src=\"https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2021\/04\/lock01.png\" alt=\"\" width=\"790\" height=\"601\" srcset=\"https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2021\/04\/lock01.png 790w, https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2021\/04\/lock01-300x228.png 300w, https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2021\/04\/lock01-768x584.png 768w, https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2021\/04\/lock01-624x475.png 624w\" sizes=\"(max-width: 790px) 100vw, 790px\" \/><\/p>\n<p>Click on the <strong>Lock data set<\/strong> button to keep that data set.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1357\" src=\"https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2021\/04\/lock02.png\" alt=\"\" width=\"553\" height=\"174\" srcset=\"https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2021\/04\/lock02.png 553w, https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2021\/04\/lock02-300x94.png 300w\" sizes=\"(max-width: 553px) 100vw, 553px\" \/><\/p>\n<p>Once we do that, the page caption changes to indicate the data set has been locked.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1358\" src=\"https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2021\/04\/lock03.png\" alt=\"\" width=\"549\" height=\"170\" srcset=\"https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2021\/04\/lock03.png 549w, https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2021\/04\/lock03-300x93.png 300w\" sizes=\"(max-width: 549px) 100vw, 549px\" \/><\/p>\n<p>Now when we run our other query, its results is displayed on a different tab.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1359\" src=\"https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2021\/04\/lock04.png\" alt=\"\" width=\"790\" height=\"601\" srcset=\"https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2021\/04\/lock04.png 790w, https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2021\/04\/lock04-300x228.png 300w, https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2021\/04\/lock04-768x584.png 768w, https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2021\/04\/lock04-624x475.png 624w\" sizes=\"(max-width: 790px) 100vw, 790px\" \/><\/p>\n<p>We can then easily switch between the 2 data sets to view\/compare the results.\u00a0 You can lock as many data sets as you require, subject to having enough storage on your computer.<\/p>\n<p>To unlock a data set, select the data set, then click on the <strong>Unlock data set button<\/strong> button.\u00a0 The data set will be immediately released and closed.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1360\" src=\"https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2021\/04\/lock05.png\" alt=\"\" width=\"563\" height=\"201\" srcset=\"https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2021\/04\/lock05.png 563w, https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2021\/04\/lock05-300x107.png 300w\" sizes=\"(max-width: 563px) 100vw, 563px\" \/><\/p>\n<p>So basically locking allows you to persist data sets across queries, instead of having to create additional sessions.<\/p>\n<div class=\"fcbkbttn_buttons_block\" id=\"fcbkbttn_left\"><div class=\"fcbkbttn_like \"><fb:like href=\"https:\/\/www.yohz.com\/blogs\/2021\/04\/15\/locking-data-sets-in-sql-image-viewer\/\" action=\"like\" colorscheme=\"light\" layout=\"button\"  size=\"small\"><\/fb:like><\/div><div class=\"fb-share-button  \" data-href=\"https:\/\/www.yohz.com\/blogs\/2021\/04\/15\/locking-data-sets-in-sql-image-viewer\/\" data-type=\"button\" data-size=\"small\"><\/div><\/div>","protected":false},"excerpt":{"rendered":"<p>We recently fixed a bug in SQL Image Viewer where locking data sets was not working and resulted in errors.\u00a0 It would seem that not many users are aware of this useful feature, so here&#8217;s more details on what locking does. When you run a query and want to keep the results but need to [&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\/1355"}],"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=1355"}],"version-history":[{"count":1,"href":"https:\/\/www.yohz.com\/blogs\/wp-json\/wp\/v2\/posts\/1355\/revisions"}],"predecessor-version":[{"id":1361,"href":"https:\/\/www.yohz.com\/blogs\/wp-json\/wp\/v2\/posts\/1355\/revisions\/1361"}],"wp:attachment":[{"href":"https:\/\/www.yohz.com\/blogs\/wp-json\/wp\/v2\/media?parent=1355"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.yohz.com\/blogs\/wp-json\/wp\/v2\/categories?post=1355"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.yohz.com\/blogs\/wp-json\/wp\/v2\/tags?post=1355"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}