Tried every trick I know but I just can't get rid of some old tables that I no longer want in a 2013 db, the problem is they are in the 6M range and so even a developer license will not allow deletion (bad design!).
I even tried doing this with a SQL script but ended up with a db that wouldn't backup as it complained about the deleted object number ](*,)
I'm sure I'm not the first to have this problem, any ideas would be much appreciated! #-o
0
Comments
http://navisionary.com/2011/11/how-to-delete-bsolete-dynamics-nav-objects/
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
Any other ideas?
Lets wait together for solution :roll:
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
Can you create a new database and transfer the objects you want to preserve and then move the data using a backup/restore with data only?
I should have also mentioned that the tables are a mix of compiled & uncompiled ones and it's the uncompiled ones causing me the most headache as they produce errors elsewhere in the system
If you make a fobfile, it should only contain the objects you select. If not, it's a bug.
have found a database version with the objects in question compiled, checked via SQL that no records exist in the tables, yet when I backup (data only) and restore the tables are always created ... and I just can't get rid of them
Help!??!
a) As you described in your first post, you need one SQL query to drop the tables from the SQL database.
b) You need a second SQL query to delete the records from the Object table that are not compiled.
Be sure you have a good backup before trying this. Be sure to test this in a test database. If you aren't sure what the SQL queries are doing, get someone to help you who does.
I have the following script, this example would remove a table named 'Setup Table' with ID 6010001 from the Company Cronus...
DELETE FROM [dbo].[Cronus$Setup Table]
DELETE from [dbo].[Object] where Type = 1 and ID = 6010001
DROP TABLE [dbo].[Cronus$Setup Table]
GO
This does remove the table but causes big problems, backup/restore stops working as it says the above table cannot be found.
Is that because of an entry in the Object table? If so what do I need to do in SQL to remove? Thanks
PS. this problem occurs whether the tables are compiled or not.
I've got a similar problem again and still no clue how to solve, this db has a table in the 1BN object range for every object ie. (Table 3 Payment Terms, Table 1000000003 Payment Terms).
No clue how they got there and I need to get rid of them as they are preventing a restore.
Anybody?
This is a different problem. The 1XXXXXXXXX tables indicate an unfinished restore. You should have a copy of each table in that range.
Complete the restore to get rid of the tables.
Tables in the 1000000003.. range are NOT this problem.
To get rid of them you do Tools->Restore and when it asks you what you want to do with the partially restored data you say to delete it.
(EDIT: ****!! I will forget to look for the next page in this forum #-o )
TVision Technology Ltd