Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics RMS (Archived)

SQL command to change image suffix

Posted on by 20

I am using Newestech's Web Integrator pro wi 2.4 along with Kosmos and I have ran into an image problem.  Based upon previous input from this forum, we save all of our images in HQ using the sku.jpg and then save product images using the skew as jpegs.  We have to problems:

1.  We have thousands of items in our dbase and it is tedious calling up each item and adding the image path.

2.  Some of my employees have saved the image files with a jpg suffix in uppercase.  The Unix server does not recognize these images on our web server and so does not assign them to the products.  This leaves us with a lot of our online products without images.  The did not notice a problem due to the fact that the Windows O.S. doesn't care if the suffix is upper or lower case.

Would it be possible to use SQL command or a script to set the image path of each item to the sku.jpg ?

 Thanks

Bill

Hobby Central

 

*This post is locked for comments

  • alexandre Profile Picture
    alexandre 200 on at
    Re: Re: SQL command to change image suffix
    Second, for your first question, since i dont remember and i dont have access to a RMS system right now, i cannot give a 100% sure answer. If RMS stores the file path for the picture, then you can use a SQL command. You could use something like (i don't remember the field name containing the image path): UPDATE dbo_item.image SET dbo_item.image = "C:\IMAGEPATH\" & [dbo_item.itemlookupcode] & ".jpg";
  • alexandre Profile Picture
    alexandre 200 on at
    Re: SQL command to change image suffix
    Sure! First, for your FileName problem, there is quite a load of BatchRenaming freeware tools on the internet. Just google "Batch renaming to lowercase". Else, if the problem is simply renaming XXXX.JPG to XXXX.jpg(renaming the file extension of all pictures files, you could run this command in the Windows Command Prompt(CMD): ren *.JPG *.jpg. Just make sure you are in the right folder in the command prompt.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans