web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

NAV 2013: Deleting Obsolete Tables in SQL Server Management Studio

(0) ShareShare
ReportReport
Posted on by 455

Can anyone advise how to delete obsolete tables through SQL Server Management Studio?

I have tried to delete them within the Development Environment but I keep getting a message that I do not have permission to delete the tables. I have tried assigning my user the permission sets for these tables, and I have db_owner role assigned in sql server.

I have also tried the suggestions in this link (which didn't work):

navisionary.com/.../how-to-delete-bsolete-dynamics-nav-objects

Please advise.

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Roberto Stefanetti Profile Picture
    12,998 on at

    hi,

    try this link: Killer Objects

    www.archerpoint.com/.../killer-objects

    look at this post on Mibuso

    www.mibuso.com/.../viewtopic.php

    Example would remove a table named 'Setup Table' with ID 6010001 from the Company Cronus...

    DELETE FROM [dbo].[Cronus$Setup Table]                    > remove object data

    DELETE from [dbo].[Object] where Type = 1 and ID = 6010001     > remove object from NAV data dictionary

    DROP TABLE [dbo].[Cronus$Setup Table]  > drop table

    GO

    This does remove the table but causes big problems, backup/restore stops working as it says the above table cannot be found.

  • Anjan Prakash Profile Picture
    55 on at

    ...

  • Victoria B Profile Picture
    455 on at

    Thanks for your answer!

    When I entered the following, the Development Environment allowed me to create a file backup:

    DELETE FROM [dbo].[Cronus$Setup Table]

    DELETE from [dbo].[Object] where Type = 0 and ID = 6010001

    DELETE from [dbo].[Object] where Type = 1 and ID = 6010001

    DROP TABLE [dbo].[Cronus$Setup Table]

    GO

  • Suggested answer
    Community Member Profile Picture
    on at

    I am looking for a script to delete the change log entries in NAV 2013 from and to a certain date

    thanks

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics NAV (Archived)

#1
HoangNam Profile Picture

HoangNam 7

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans