Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics RMS (Archived)

Delete all items that don't have a description

(0) ShareShare
ReportReport
Posted on by 890

Long story short, a few items were added that should not have been.  The easiest way to spot these items is the fact that they are the only ones that do not a have description.

Can I run a sql script to remove all of these? Or might I have to delete them one by one?

*This post is locked for comments

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Delete all items that don't have a description

    You can run a script to delete however this is not recommended, deleting items can lead to corrupt data. Best practice is to inactivate the items. This could also be done through a script.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Delete all items that don't have a description

    You can run a script to delete however this is not recommended, deleting items can lead to corrupt data. Best practice is to inactivate the items. This could also be done through a script.

  • jdc03 Profile Picture
    jdc03 890 on at
    RE: Delete all items that don't have a description

    Unfortunately that kicked back an error, and when I tried just Description = null it came back with 0 results ... but I was able to get it to work by Price = 0, another trait they all shared.

  • Verified answer
    archelle16 Profile Picture
    archelle16 1,735 on at
    RE: Delete all items that don't have a description

    The fastest move you can do is to query since you're sure that these were not used.

    DELETE FROM ITEM WHERE Description = null OR Description = ''

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,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans