Restore sql db with linked table to native

BGI
Member Posts: 176
All,
we have a production sql database. There are some views defined in sql and in navision there are some tables linked to these views.
Now when we do a navision backup, and want to do a restore to a native we get the error that table XXXXX doesn't exist. This table is the linked table.
Is there a way to still restore this db to native format?
Rgds
we have a production sql database. There are some views defined in sql and in navision there are some tables linked to these views.
Now when we do a navision backup, and want to do a restore to a native we get the error that table XXXXX doesn't exist. This table is the linked table.
Is there a way to still restore this db to native format?
Rgds
Rgds
Benny Giebens
Benny Giebens
0
Comments
-
Try to import the objects first. open object designer. Select import and find the backup file .fbk. Make sure you click on show all file type, because navision filters it on .fob. Once you've selected the backup file, load the objects and try to restore again.0
-
ara3n wrote:Try to import the objects first. open object designer. Select import and find the backup file .fbk. Make sure you click on show all file type, because navision filters it on .fob. Once you've selected the backup file, load the objects and try to restore again.
Problem is that then it's not possible to restore Data Common to All Companies.0 -
[Topic moved from Navision to SQL General forum]0
-
Only one way to deal with this that I know of, and that is to script your views to a sql file, and creating the views in the new database before you do a NAV restore. I don't know what would happen if the views link to external tables that are not available on the new server though, don't know if that will cause errors.0
-
DenSter wrote:Only one way to deal with this that I know of, and that is to script your views to a sql file, and creating the views in the new database before you do a NAV restore. I don't know what would happen if the views link to external tables that are not available on the new server though, don't know if that will cause errors.
But problems is that the restore is done on Native DB... :-) no views... 8)0 -
You will lose those views on your native Navision database.
To make this work, you will need to drop the views and create tables with the same name in SQL Server, then do your restore.
Whatever you are using the views for will not work in your Navision database unless you manually build the data in the tables.
After your backup you can drop the SQL Server tables and recreate the views.David Machanick
http://mibuso.com/blogs/davidmachanick/0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions