NAShandler Trigger

Fidelis_DereraFidelis_Derera Member Posts: 9
I have setup NAS server correctly the event log shows that it notices the Database Sever.

I have writen a codeunit to test my Statup Parameter that instatiate a excel. When I restart NAS nothing happens! How should I know my the NAShandler has been successfully triggered.

Pliz Help

Comments

  • garakgarak Member Posts: 3,263
    To start NAS you must place your Parameter and Codeunit Call in Codeunit 1 Function -> NASHandler() (See Parameter 'MAILLOG'. Your called Codeunit should be SingelInstance.

    To check, if your soure are running, you can debug your NAS.

    For starting the NAS in debugmode, do following.

    Stop the Service, be sure, your windows login is authorize to login on the database.

    Open CMD. Go to the folder where your nas.exe or nassql.exe is stored.
    Type following (example for NASSQL).
    nassql debug,appservername="YourNASName",servername="DatabaseServer\NamedInstance",database="YourDatabase",
    company="YourCompany",startupparameter="YourStarUpParameter",
    objectcache=32000,nettype=tcp
    

    Regards
    Do you make it right, it works too!
  • DenSterDenSter Member Posts: 8,305
    One easy way to make sure it gets to the NASHandler function is to program a MESSAGE for your startup parameter. Then restart your NAS and check the event log if your new message shows up.
  • garakgarak Member Posts: 3,263
    hehe, thats so easy, that i not intended on this #-o
    Do you make it right, it works too!
Sign In or Register to comment.