Conversion of Native datbase to SQL Server

upasanisandipupasanisandip Member Posts: 405
Hi all,
Which is the easiest method to transfer native database to SQL Server ?
Is there any readymade tool for this?


Thanks,
Sandip.

Comments

  • krikikriki Member, Moderator Posts: 9,110
    There is a tool called Migrate.fob. This can be found in the upgrade toolkits. You need it to check your database to search for values (e.g. dates) that cannot be handled in SQL. Once you have run it and fixed it, your DB is ready for SQL.
    After that make a Navision backup.
    With the finsql.exe you make a Navision-DB in SQL and you restore your backup.
    After that you can start working on performance. If you put the Navision objects unaltered in SQL, it will work but it will be slow. You will need to finetune the indexes for SQL and this is not something to do for beginners.
    Regards,Alain Krikilion
    No PM,please use the forum. || May the <SOLVED>-attribute be in your title!


  • WaldoWaldo Member Posts: 3,412
    kriki wrote:
    ...
    After that you can start working on performance. If you put the Navision objects unaltered in SQL, it will work but it will be slow. You will need to finetune the indexes for SQL and this is not something to do for beginners.

    And I can back him up in this one!!

    Eric Wauters
    MVP - Microsoft Dynamics NAV
    My blog
  • Marije_BrummelMarije_Brummel Member, Moderators Design Patterns Posts: 4,262
    There are specialists for this. :whistle:
  • vyankuvyanku Member Posts: 791
    Very good information :D:mrgreen: :whistle:
  • WaldoWaldo Member Posts: 3,412
    There are specialists for this.
    _________________
    Mark Brummel
    MVP Microsoft Dynamics Nav | SQL Perform Consultant

    What do you mean? :wink:

    Eric Wauters
    MVP - Microsoft Dynamics NAV
    My blog
  • mggoswamimggoswami Member Posts: 14
    sir twhere can i get migrate.fob to migration native data to sql server 2005


    kriki wrote:
    There is a tool called Migrate.fob. This can be found in the upgrade toolkits. You need it to check your database to search for values (e.g. dates) that cannot be handled in SQL. Once you have run it and fixed it, your DB is ready for SQL.
    After that make a Navision backup.
    With the finsql.exe you make a Navision-DB in SQL and you restore your backup.
    After that you can start working on performance. If you put the Navision objects unaltered in SQL, it will work but it will be slow. You will need to finetune the indexes for SQL and this is not something to do for beginners.
  • kinekine Member Posts: 12,562
    This can be found in the upgrade toolkits
    It is part of Upgrade toolkit. This toolkits can be downloaded from PartnerSource. If you are end-user, you need to contact your partner.
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • GoMaDGoMaD Member Posts: 313
    It could be that the objects in the migrate.fob need to be adjusted to check text field for special characters.
    Now, let's see what we can see.
    ...
    Everybody on-line.
    ...
    Looking good!
  • baldaumbaldaum Member Posts: 13
    Hi,

    I have the same problem. Converting the dates fields works fine with the migrate.fob
    But I have mayn special characters in the NAV native database and when importing into SQL Server it generates an error.

    Can anyone tell me how to adapt the migrate.fob to find and solve the special characters?

    Many thanks
    Markus
  • kinekine Member Posts: 12,562
    If I look into NAV 2009 Migrate.fob into codeunit 104011, there is this code:
    CheckText(FieldName : Text[80];MaxLength : Integer;VAR Value : Text[250])
    IF ChangeMode THEN BEGIN
      IF FindRangeError(FieldName) THEN
        EVALUATE(Value,RangeCheckEntry."New Value");
      EXIT;
    END;
    IF STRLEN(Value) > MaxLength THEN BEGIN
      Value2 := COPYSTR(Value,1,MaxLength);
      WriteRangeError(FieldName,COPYSTR(Value,1,250),Value2);
    END;
    
    You can add own testing there to test the text for problematic characters.

    And the error on SQL is connected to Collation you have selected for the DB...
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • WaldoWaldo Member Posts: 3,412
    You could try to uncheck the "Validate Code Page" on the Alter Database window. But that wouldn't mean it will import the characters correctly .. it's just not giving you the errors anymore... .

    Eric Wauters
    MVP - Microsoft Dynamics NAV
    My blog
  • baldaumbaldaum Member Posts: 13
    Hi,

    I have founf the error. We had one articel in our item table, which was not correct after the move from NAV 4.0 SP3 to NAV 5.0 SP1.
    The item description was a french wine name and we had very strange characters in this field. Every other articel (we have many french special characters in our tables) had no problem and the import was working fine after correction.

    What I did: I just changed this article description in the original NAV 4 db to a common "a" and then everything was working fine. No problem with the rest of the special characters. Strange, but it worked.

    Many thanks
    Markus
  • DenSterDenSter Member Posts: 8,304
    Good catch, and thanks for the feedback.
Sign In or Register to comment.