Navision SQL table names

RoddyMcLeanRoddyMcLean Posts: 101Member
Hi,

I need to access Navision tables for reporting purposes and other than . being converted to _ as in "CRONUS UK Ltd." becoming "CRONUS UK Ltd_" are there any other character conversions to consider.

Thanks
Roddy

Comments

  • Mark_BrummelMark_Brummel Posts: 4,243Member, Moderators Design Patterns
    Have a look at File -> Database -> Alter and then the Integration Tab.

    Here is a field called Remove Characters. These are replaced by an '_'.

    There is also somewhere a SQL script that you can download that converts the tablenames based on this but I can't recall where that was.
  • matttraxmatttrax Posts: 2,309Member
    / are converted. & are not. In fact I think just . and / are converted.
  • davmac1davmac1 Posts: 1,174Member
    I don't know what the impact is on using queries and stored procedures on large databases, but you can define synonyms in SQL Server and use those instead of table names. I have found this useful when dealing with multi-company setups where only one person at a time is running reports.
    I am guessing with a bit more work, I could find a way to make it multi-user.
  • BeliasBelias Posts: 2,951Member
    just a funny thing...i think that some of you already tried to do this just to see what error is being generated :mrgreen:
    create a table named "a.b" and then another table named "a/b"... :twisted:
    -Mirko-
    "Never memorize what you can easily find in a book".....Or Mibuso
    My Blog
  • einsTeIn.NETeinsTeIn.NET Posts: 1,027Member
    So, what is the result?
    "Money is likewise the greatest chance and the greatest scourge of mankind."
  • BeliasBelias Posts: 2,951Member
    The a/b table name conflicts with an existing SQL Server object company.dbo.company$a_b.

    You must choose another table name or set the LinkedObject table property to Yes if you would like to link to this object.
    for sure!
    -Mirko-
    "Never memorize what you can easily find in a book".....Or Mibuso
    My Blog
  • einsTeIn.NETeinsTeIn.NET Posts: 1,027Member
    Well, that is what I would expect.... I thought you're going to tell a new amazing story. :wink:
    "Money is likewise the greatest chance and the greatest scourge of mankind."
  • BeliasBelias Posts: 2,951Member
    Well, that is what I would expect.... I thought you're going to tell a new amazing story. :wink:
    no, unfortunately not an amazing story...sorry :roll:
    hopefully none of us uses dots in table names [-o<
    -Mirko-
    "Never memorize what you can easily find in a book".....Or Mibuso
    My Blog
  • einsTeIn.NETeinsTeIn.NET Posts: 1,027Member
    Belias wrote:
    hopefully none of us uses dots in table names [-o<
    hehehe... I guess in this business only the sky is the limit. :wink:
    "Money is likewise the greatest chance and the greatest scourge of mankind."
  • RoddyMcLeanRoddyMcLean Posts: 101Member
    Thanks for the barrage of replies :D Good Karma to you all.

    Roddy
Sign In or Register to comment.