NOC is only given by the discretion of the employer. Doesn't matter if you have worked 6 months or 6 years, you cannot "force" them to give you an NOC. It is up to them whether they will give or not.