As from DynamicsNAV 5.0, when you want to use Sql Server you need to set trace flag 4616, otherwise an error will occur when you try to connect a Dynamics 5.0 client to a Sql Server database.
What is a trace flag in Sql Server?
Trace flags are used to enable specific properties or to change the behaviour of Sql Server.
What does trace flag 4616 do ?
Well, it makes server-level metadata visible to application roles. In SQL Server 2005, an application role cannot access metadata outside its own database because application roles are not associated with a server-level principal. This is a change of behavior from earlier versions of SQL Server. Setting this global flag disables the new restrictions, and allows for application roles to access server-level metadata.
How do you enable a trace flag in Sql Server 2005 ?
There are several ways to enable or disable a trace flag in Sql Server. Maybe the easiest way is to do it in the Sql Server Configuration Manager:
In the Configuration Manager you then go to the properties of the Sql Server service (default is MSSQLSERVER):
In the Advanced tab, select the StartUp parameters and add ;-T4616 at the end and then click on Ok:
Now we have added the trace flag. It will be enabled as soon as we restart the Sql Server service:
thanks
Posted by: monu | 13/04/2012 at 11:33
thanks
Posted by: Mohammed | 15/11/2011 at 15:26
thanks for the help!. Rgds.
Posted by: Hector | 06/10/2010 at 16:04
It helped me lot. Thank you very much
Posted by: sudarshan | 08/12/2009 at 06:56
Thanks,
Posted by: Deepak Kumar | 31/08/2009 at 12:16
it has been fixed in sp1 however it still require manul start to the sql server that I believe has been left for sp2 ;-)
This article was helpful, btw
Posted by: rick | 17/06/2009 at 08:32
great, thanks a lot.
Posted by: doom | 01/06/2009 at 07:15
This worked perfectly. THANKS!!
Posted by: Robert Brenis | 22/04/2009 at 14:19
Thanks Alot its works know .
Posted by: Riyad Riyan | 18/03/2008 at 09:54
the lag fix the issue
Posted by: daniel cohen | 28/01/2008 at 21:24