Dynamics NAV requires two extended stored
procedures from xp_ndo_x64.dll to exist on SQL Server. In the case of these
procedures are not found in the SQL Server, you will end up receiving an error
message when trying to log on using Windows Authentication:
Here is the solution;
STEP 1:Manually copy the relevant file from the Product CD to the path given below depending on the Windows version you are running.
C:\Program Files\Microsoft SQL
Server\MSSQL10_50.MSSQLSERVER\MSSQL\Binn
STEP 2:
Run the below scrip file on the SQLQuery Screen. Please note that the below scripts refer to windows 64 bit version. Therefore, if you will be required replace the xp_ndo_x64.dll with xp_ndo.dll
USE master
EXEC sp_addextendedproc xp_ndo_enumusersids, ‘C:\Program
Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\Binn\xp_ndo_x64.dll’
GO
GRANT EXECUTEON [xp_ndo_enumusersids]
TO PUBLIC
GO
USE master
EXEC sp_addextendedproc xp_ndo_enumusergroups, ‘C:\Program
Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\Binn\xp_ndo_x64.dll’GO
GRANT EXECUTE
ON [xp_ndo_enumusergroups]
TO PUBLICGO