NAV 5.02 Stored Procedures SQL

fandersen
Member Posts: 5
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
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
0
Comments
-
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 Tool0 -
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
/fandersen0 -
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.0
-
DenSter wrote:...and set the proper path and filename.Jörg A. Stryk (MVP - Dynamics NAV)
NAV/SQL Performance Optimization & Troubleshooting
STRYK System Improvement
The Blog - The Book - The Tool0 -
stryk wrote:just to avoid any mismatches ...0
-
[Topic moved from 'NAV/Navision' forum to 'SQL General' forum]Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions