Know which version(Native or SQL) is used

angelotk
angelotk Member Posts: 12
Hello,
I'd like to make work a development both on native and sql version.
Is there a way to know which type of version is actually launched?

Thks

Comments

  • Albertvh
    Albertvh Member Posts: 516
    I seem to remember that there is something about this in the How To section of this forum.
  • kine
    kine Member Posts: 12,562
    angelotk wrote:
    Hello,
    I'd like to make work a development both on native and sql version.
    Is there a way to know which type of version is actually launched?

    Thks

    If you mean by code, see the how to section... http://www.mibuso.com/howtoinfo.asp?FileID=2&Type=howto

    If you mean by user, open the "File-Database-Open and the info is in the Server Type section :-) (but I assume that you wanted it by code ;-))
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • kriki
    kriki Member, Moderator Posts: 9,124
    That is for knowing the server.
    For knowing if it is Native or SQL, use this:
    IF recAnyRecord.RECORDLEVELLOCKING THEN
      MESSAGE('SQL')
    ELSE
      MESSAGE('NATIVE');
    
    Regards,Alain Krikilion
    No PM,please use the forum. || May the <SOLVED>-attribute be in your title!