{"id":1031,"date":"2020-10-06T13:18:38","date_gmt":"2020-10-06T05:18:38","guid":{"rendered":"https:\/\/www.yohz.com\/blogs\/?p=1031"},"modified":"2020-10-06T14:48:51","modified_gmt":"2020-10-06T06:48:51","slug":"using-the-column-name-in-your-file-naming-convention-in-sql-image-viewer","status":"publish","type":"post","link":"https:\/\/www.yohz.com\/blogs\/2020\/10\/06\/using-the-column-name-in-your-file-naming-convention-in-sql-image-viewer\/","title":{"rendered":"Using the column name in your file naming convention in SQL Image Viewer"},"content":{"rendered":"<p>In <a href=\"https:\/\/www.yohz.com\/siv8_details.htm\">SQL Image Viewer<\/a> 10.2, we&#8217;ve added a new option to the system values for your file naming convention.<\/p>\n<p>Using this example:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1022\" src=\"https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2020\/10\/imagedatatype_02.png\" alt=\"\" width=\"794\" height=\"554\" srcset=\"https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2020\/10\/imagedatatype_02.png 794w, https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2020\/10\/imagedatatype_02-300x209.png 300w, https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2020\/10\/imagedatatype_02-768x536.png 768w, https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2020\/10\/imagedatatype_02-624x435.png 624w\" sizes=\"(max-width: 794px) 100vw, 794px\" \/><\/p>\n<p>Each row contains 2 binary-type columns.\u00a0 We can name our exported images using the <strong>ProductPhotoID<\/strong> column, but to identify the source column for the images, we could previously only use the column index<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1033\" src=\"https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2020\/10\/colname_02.png\" alt=\"\" width=\"620\" height=\"88\" srcset=\"https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2020\/10\/colname_02.png 620w, https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2020\/10\/colname_02-300x43.png 300w\" sizes=\"(max-width: 620px) 100vw, 620px\" \/><\/p>\n<p>resulting in file names like these:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1032\" src=\"https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2020\/10\/colname_01.png\" alt=\"\" width=\"537\" height=\"191\" srcset=\"https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2020\/10\/colname_01.png 537w, https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2020\/10\/colname_01-300x107.png 300w\" sizes=\"(max-width: 537px) 100vw, 537px\" \/><\/p>\n<p>The first part of the file name is the <strong>ProductPhotoID<\/strong> value, formatted to 4 digits, and the second part is the column index (columns 2 and 3).<\/p>\n<p>From <a href=\"https:\/\/www.yohz.com\/siv8_details.htm\">SQL Image Viewer<\/a> 10.2 onwards, you can now use the column name as part of the naming convention.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1034\" src=\"https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2020\/10\/colname_03.png\" alt=\"\" width=\"607\" height=\"85\" srcset=\"https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2020\/10\/colname_03.png 607w, https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2020\/10\/colname_03-300x42.png 300w\" sizes=\"(max-width: 607px) 100vw, 607px\" \/><\/p>\n<p>which is used to name the exported files<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1035\" src=\"https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2020\/10\/colname_04.png\" alt=\"\" width=\"601\" height=\"219\" srcset=\"https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2020\/10\/colname_04.png 601w, https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2020\/10\/colname_04-300x109.png 300w\" sizes=\"(max-width: 601px) 100vw, 601px\" \/><\/p>\n<p>You can select this new option (<strong>columnname<\/strong>) in the <strong>File Naming Convention<\/strong> page.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1036\" src=\"https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2020\/10\/colname_05.png\" alt=\"\" width=\"575\" height=\"536\" srcset=\"https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2020\/10\/colname_05.png 575w, https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2020\/10\/colname_05-300x280.png 300w\" sizes=\"(max-width: 575px) 100vw, 575px\" \/><\/p>\n<p>If you want to use a different value for the column name, simply use the alias syntax applicable to your database engine.\u00a0 For SQL Server, this would be using the <strong>AS<\/strong> option e.g.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1037\" src=\"https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2020\/10\/colname_06.png\" alt=\"\" width=\"759\" height=\"79\" srcset=\"https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2020\/10\/colname_06.png 759w, https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2020\/10\/colname_06-300x31.png 300w, https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2020\/10\/colname_06-624x65.png 624w\" sizes=\"(max-width: 759px) 100vw, 759px\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1038\" src=\"https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2020\/10\/colname_07.png\" alt=\"\" width=\"597\" height=\"212\" srcset=\"https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2020\/10\/colname_07.png 597w, https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2020\/10\/colname_07-300x107.png 300w\" sizes=\"(max-width: 597px) 100vw, 597px\" \/><\/p>\n<div class=\"fcbkbttn_buttons_block\" id=\"fcbkbttn_left\"><div class=\"fcbkbttn_like \"><fb:like href=\"https:\/\/www.yohz.com\/blogs\/2020\/10\/06\/using-the-column-name-in-your-file-naming-convention-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\/2020\/10\/06\/using-the-column-name-in-your-file-naming-convention-in-sql-image-viewer\/\" data-type=\"button\" data-size=\"small\"><\/div><\/div>","protected":false},"excerpt":{"rendered":"<p>In SQL Image Viewer 10.2, we&#8217;ve added a new option to the system values for your file naming convention. Using this example: Each row contains 2 binary-type columns.\u00a0 We can name our exported images using the ProductPhotoID column, but to identify the source column for the images, we could previously only use the column index [&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\/1031"}],"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=1031"}],"version-history":[{"count":2,"href":"https:\/\/www.yohz.com\/blogs\/wp-json\/wp\/v2\/posts\/1031\/revisions"}],"predecessor-version":[{"id":1040,"href":"https:\/\/www.yohz.com\/blogs\/wp-json\/wp\/v2\/posts\/1031\/revisions\/1040"}],"wp:attachment":[{"href":"https:\/\/www.yohz.com\/blogs\/wp-json\/wp\/v2\/media?parent=1031"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.yohz.com\/blogs\/wp-json\/wp\/v2\/categories?post=1031"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.yohz.com\/blogs\/wp-json\/wp\/v2\/tags?post=1031"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}