in

Dynamics User Group

Since 1995 - The Microsoft Dynamics Online User Community

Dynamics NAV SQL Backups

Last post 07-21-2008 18:12 by Nuno Maia. 12 replies.
Page 1 of 1 (13 items)
Write a New Post Sort Posts: Previous Next
  • 07-16-2008 9:03

    • shanil
    • Top 500 Contributor
      Male
    • Joined on 11-15-2007
    • Colombo, Sri Lanka
    • Posts 31
    • Points 1,372

    Dynamics NAV SQL Backups

    Any known issues in taking SQL backups of a NAV database? Is there a prb in backing up linked obj's. Big Smile

    Shanil.

    • Post Points: 35
  • 07-16-2008 14:52 In reply to

    • Legosz
    • Top 500 Contributor
      Male
    • Joined on 02-19-2008
    • Toronto, ON
    • Posts 58
    • Points 930

    Re: Dynamics NAV SQL Backups

     Have a read of the post in this forum 'Recommended Maintenance Plan for Dynamics NAV on SQL 2005' as it not only covers SQL backups but general best practice (or discussions about) for SQL Server. If you're just asking about SQL backups there is a good chance you have not considered things like DB maintenance.

    • Post Points: 5
  • 07-20-2008 23:44 In reply to

    Re: Dynamics NAV SQL Backups

    shanil:

    Any known issues in taking SQL backups of a NAV database? Is there a prb in backing up linked obj's. Big Smile

    Shanil.

     

     

    Backing up should not be an issue, but when restoring I always restore the linked database first, and then the NAV database. It works the other way as well, but sometime you get annoying error messages. 

    David Singleton - MVP Dynamics NAV
    Dynamics NAV Consultant since 1991
    Available for Navision Go-Live assistance
    Dynamics Book
    • Post Points: 20
  • 07-21-2008 15:13 In reply to

    • Legosz
    • Top 500 Contributor
      Male
    • Joined on 02-19-2008
    • Toronto, ON
    • Posts 58
    • Points 930

    Re: Dynamics NAV SQL Backups

    Can I ask what is meant by 'linked database'? 

    • Post Points: 20
  • 07-21-2008 15:49 In reply to

    Re: Dynamics NAV SQL Backups

     

    Legosz:

    Can I ask what is meant by 'linked database'? 

     

    Sure ask away....

     

    Just kidding. ...

     

    NAV allows you to link a NAV table to a view in another database. This linked view looks just like a normal NAV table, but in fact it exists in another SQL database. I use them a lot, but I know that some people don't like them. 

    David Singleton - MVP Dynamics NAV
    Dynamics NAV Consultant since 1991
    Available for Navision Go-Live assistance
    Dynamics Book
    • Post Points: 20
  • 07-21-2008 15:54 In reply to

    • Legosz
    • Top 500 Contributor
      Male
    • Joined on 02-19-2008
    • Toronto, ON
    • Posts 58
    • Points 930

    Re: Dynamics NAV SQL Backups

     Ok, that's interesting. I wasn't aware Nav could do that. Is there a document on how that works (or can I just ask more questions here)?

    • Post Points: 45
  • 07-21-2008 16:06 In reply to

    Re: Dynamics NAV SQL Backups

    Legosz:

     Ok, that's interesting. I wasn't aware Nav could do that. Is there a document on how that works (or can I just ask more questions here)?

     

    Ask away, I have posted about this a lot of times, so you could try searching as well. The feature first came in verion 2.00 of NAV, but never worked (because they would not sell the C/PLEX interface), but once the SQL option came out it worked.

     

    The most usefull thing is when you are converting data. But not if ou have many records, because of the way the table is built in TempDB on SQL.

    David Singleton - MVP Dynamics NAV
    Dynamics NAV Consultant since 1991
    Available for Navision Go-Live assistance
    Dynamics Book
    • Post Points: 5
  • 07-21-2008 16:09 In reply to

    Re: Dynamics NAV SQL Backups

    Legosz:

     Ok, that's interesting. I wasn't aware Nav could do that. Is there a document on how that works (or can I just ask more questions here)?

     

    Start here http://dynamicsuser.net/search/SearchResults.aspx?q=linked+table

     

    if you find an interesting thread, bump it.

    David Singleton - MVP Dynamics NAV
    Dynamics NAV Consultant since 1991
    Available for Navision Go-Live assistance
    Dynamics Book
    • Post Points: 20
  • 07-21-2008 16:53 In reply to

    • Nuno Maia
    • Top 10 Contributor
      Male
    • Joined on 06-05-2005
    • Lisbon, Portugal
    • Posts 1,391
    • Points 38,388
    • Moderator

    Re: Dynamics NAV SQL Backups

    Legosz:

     Ok, that's interesting. I wasn't aware Nav could do that. Is there a document on how that works (or can I just ask more questions here)?

    If I’m not incorrect in SQL Server Option doc there was a chapter about that.

    Nuno Maia
    • Post Points: 5
  • 07-21-2008 17:01 In reply to

    • Legosz
    • Top 500 Contributor
      Male
    • Joined on 02-19-2008
    • Toronto, ON
    • Posts 58
    • Points 930

    Re: Dynamics NAV SQL Backups

     I've done a little playing and looking through some of the posts.

     I create a table called 'Test Table' on Nav, and from what I understand it will now be looking for "<company name>$Test Table" in SQL. Is Nav only able to look into its database for the table/view?

    • Post Points: 20
  • 07-21-2008 17:10 In reply to

    Re: Dynamics NAV SQL Backups

    If you have the table in another datasae, just crete a view in the NAV database that points to that external table.

     

    By the way its easier if you set the option "Common to all companies" to YES so you don't need the company name, just the table name.

    David Singleton - MVP Dynamics NAV
    Dynamics NAV Consultant since 1991
    Available for Navision Go-Live assistance
    Dynamics Book
    • Post Points: 35
  • 07-21-2008 17:24 In reply to

    • Legosz
    • Top 500 Contributor
      Male
    • Joined on 02-19-2008
    • Toronto, ON
    • Posts 58
    • Points 930

    Re: Dynamics NAV SQL Backups

    I hoped that would be the answer.

    I could see how you could create some really cool solutions using that, and get yourself into trouble in the process if you weren't careful.

     

    • Post Points: 5
  • 07-21-2008 18:12 In reply to

    • Nuno Maia
    • Top 10 Contributor
      Male
    • Joined on 06-05-2005
    • Lisbon, Portugal
    • Posts 1,391
    • Points 38,388
    • Moderator

    Re: Dynamics NAV SQL Backups

    Most of linked tables that I have used were to link tables between Navision and a external system (Web portals, etc) it's trickier because of type conversion (NULL, auto increment, etc). Between 2 Navision databases works like magic.  Stick out tongue  

    Nuno Maia
    • Post Points: 5
Page 1 of 1 (13 items)


Copyright Dynamics User Group, 1995-2008, all rights reserved. This website and user group are independent and not affiliated with the Microsoft Corporation.