Quantcast
Channel: Microsoft Dynamics RMS Forum - Recent Threads
Viewing all articles
Browse latest Browse all 4469

RE: Query to rename Item Pictures

$
0
0

Gooday,

1 - This will select the items that don't have Picture Name data or is not as ILUC.jpg Please do not type brackets

(select

ItemLookupCode, PictureName, description, SubDescription3, quantity, cost, priceA from item

where PictureName not like ItemLookupCode+'.jpg')

2 - This will replace ALL items Picture Names with ILUC.jpg which have not one as they should.

(update Item

set Item.PictureName = Item.ItemLookUpCode+'.jpg'

where Item.PictureName not like ItemLookupCode + '.jpg')

3 - A word of warning... you will working for ALL items in the database, changes cannot be undone.

4 - You probably have some pix missing, misspelled, or wrong name if you do and want to test email me on theos.sif727@gmail.com


Viewing all articles
Browse latest Browse all 4469

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>