mibuso.com

Microsoft Business Solutions online community
It is currently Wed May 22, 2013 3:50 pm

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: NAV 5.02 Stored Procedures SQL
PostPosted: Fri Dec 04, 2009 12:33 pm 
Offline

Joined: Fri Dec 04, 2009 12:28 pm
Posts: 3
Hi,

I'm getting an error when i start my NAV Client:

17750,"42000",[Microsoft][ODBC SQL Server Driver][SQL Server]Could not load the DLL "C:\Program Files\Microsoft SQL Server\MSSQL.10.NAV\MSSQL\Binn\xp_ndo_x64.dll, or one of the DLLs it references. Reason: 126(failed to retrieve text for this error. Reason 15100).

SQL:
INSERT INTO [#$nd$groups] EXEC [master]..[xp_ndo_enumuserids]

I've executed the following query on my SQL server:
USE master
EXEC sp_addextendedproc xp_ndo_enumusergroups, 'C:\Program Files\Microsoft SQL Server\MSSQL10.NAV\MSSQL\Binn\xp_ndo_x64.dll'
GO
GRANT EXECUTE
ON [xp_ndo_enumusergroups]
TO PUBLIC
GO
USE master
EXEC sp_addextendedproc xp_ndo_enumusersids, '"C:\Program Files\Microsoft SQL Server\MSSQL10.NAV\MSSQL\Binn\xp_ndo_x64.dll'
GO
GRANT EXECUTE
ON [xp_ndo_enumusersids]
TO PUBLIC
GO


I've checked that the dll path is correct, but i still get this error.

My server is running 2008 x64 and SQL 2008 x64.

Thanks in advice...

Best regards,
fandersen


Top
 Profile E-mail  
 
 Post subject: Re: NAV 5.02 Stored Procedures SQL
PostPosted: Fri Dec 04, 2009 1:08 pm 
Offline
MVP Microsoft Dynamics NAV

Joined: Thu Jul 31, 2003 12:00 pm
Posts: 639
Location: Nürnberg
Country: Germany (de)
Hi!

Check for type mismatches - in the error description you are referencing to "xp_ndo_enumuserids" (there's an "s" missing: xp_ndo_enumusersids).

Also, try to create the XP manually, by selecting the DLL.

Does this work?

_________________
Jörg A. Stryk (MVP - Dynamics NAV)
NAV/SQL Performance Optimization & Troubleshooting
STRYK System Improvement
The Blog - The Book - The Tool


Top
 Profile E-mail WWW  
 
 Post subject: Re: NAV 5.02 Stored Procedures SQL
PostPosted: Fri Dec 04, 2009 3:17 pm 
Offline

Joined: Fri Dec 04, 2009 12:28 pm
Posts: 3
Hi,

I removed all my stored procedures and did the following:

USE master
EXEC sp_addextendedproc xp_ndo_enumusergroups, 'C:\Program Files\Microsoft SQL Server\MSSQL10.NAV\MSSQL\Binn\xp_ndo.dll'
GO
GRANT EXECUTE
ON [xp_ndo_enumusergroups]
TO PUBLIC
GO
USE master
EXEC sp_addextendedproc xp_ndo_enumuserids, '"C:\Program Files\Microsoft SQL Server\MSSQL10.NAV\MSSQL\Binn\xp_ndo.dll'
GO
GRANT EXECUTE
ON [xp_ndo_enumuserids]
TO PUBLIC
GO


And i renamed the dll file to xp_ndo.dll

But now the NAV client says:
The extended stored procedure xp_ndo_enumusersids in the library file xp_ndo.dll, is not avilable on the SQL01 server.

Until this procedure and library have been added, it will not be possible to connect to this server from Microsoft Dynamics NAV with Windows Authentication, but you will still be able to connect with Database Server Authentication.

It seems it should be enumusersids

/fandersen


Top
 Profile E-mail  
 
 Post subject: Re: NAV 5.02 Stored Procedures SQL
PostPosted: Fri Dec 04, 2009 3:34 pm 
Offline
MVP Microsoft Dynamics NAV

Joined: Thu Jan 02, 2003 6:37 pm
Posts: 7931
Location: Howell, MI
Country: United States (us)
You shouldn't have to rename the dll, just use the right one and set the proper path and filename. On a SQL Server cluster you will need to put a copy of the dll on both nodes.

_________________
Daniel Rimmelzwaan
MVP - Dynamics NAV


Top
 Profile  
 
 Post subject: Re: NAV 5.02 Stored Procedures SQL
PostPosted: Fri Dec 04, 2009 3:49 pm 
Offline
MVP Microsoft Dynamics NAV

Joined: Thu Jul 31, 2003 12:00 pm
Posts: 639
Location: Nürnberg
Country: Germany (de)
DenSter wrote:
...and set the proper path and filename.

That's why I suggested to select the file with the GUI in SSMS, just to avoid any mismatches ...

_________________
Jörg A. Stryk (MVP - Dynamics NAV)
NAV/SQL Performance Optimization & Troubleshooting
STRYK System Improvement
The Blog - The Book - The Tool


Top
 Profile E-mail WWW  
 
 Post subject: Re: NAV 5.02 Stored Procedures SQL
PostPosted: Fri Dec 04, 2009 4:37 pm 
Offline
MVP Microsoft Dynamics NAV

Joined: Thu Jan 02, 2003 6:37 pm
Posts: 7931
Location: Howell, MI
Country: United States (us)
stryk wrote:
just to avoid any mismatches ...

Exactly why I generally don't use scripts to install the esp's :mrgreen:

_________________
Daniel Rimmelzwaan
MVP - Dynamics NAV


Top
 Profile  
 
 Post subject: Re: NAV 5.02 Stored Procedures SQL
PostPosted: Sat Dec 05, 2009 10:50 pm 
Online
Moderator
MVP Microsoft Dynamics NAV
NAV TechDays 2013 attendee

Joined: Wed Jul 02, 2003 10:13 am
Posts: 7496
Location: Milan
Country: Italy (it)
[Topic moved from 'NAV/Navision' forum to 'SQL General' forum]

_________________
Regards,Alain Krikilion
Use the SEARCH,Luke! || No PM,please use the forum. || May the <SOLVED>-attribute be in your title! || Read Forum Rules before making a posting


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum


Search for:
Jump to: