Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Accidentally write a "delete" sql and the table become not modifiable

Posted on by Microsoft Employee

I run a "delete" sql to a table wishing to delete some records, then the table become non-modifiable. Nevertheless, no records are deleted. The table is a newly-built entity and do not have any base table.  How can I solve this problem? Thanks!

*This post is locked for comments

  • Suggested answer
    Kishor Kumar Profile Picture
    Kishor Kumar 3,702 on at
    RE: Accidentally write a "delete" sql and the table become not modifiable

    Yeah Mary you can recreate an new entity but make sure you take backup copy before performing any operations in database

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Accidentally write a "delete" sql and the table become not modifiable

    What if I do not have a backup? T.T

    Can I delete the entity and built another entity with the same name to replace this truncated entity??

  • Suggested answer
    Nadeeja Bomiriya Profile Picture
    Nadeeja Bomiriya 6,804 on at
    RE: Accidentally write a "delete" sql and the table become not modifiable

    Hi Mary,

    You shouldn't be modifying the CRM database directly. If you have a backup, you could restore the database.

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,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans