xp_ndo on clustered environment

DenSter
Member Posts: 8,307
When you add an extended stored procedure, you point it to the dll, which should be stored in the Binn folder on the C drive. In a clustered environment, you don't have access to the C drive from with the dialog in SQL Server, I'm guessing because if the cluster fails, the C drive is no longer the C drive but the C drive of the other cluster node.
For now I put the dll on a shared drive, so we can test, but I want to be able to put the dll on the OS drive. I know I'll have to put a copy of the dll on both cluster nodes, so that's not the issue.
My question is if it is possible to register the dll on both cluster nodes and leave the whole path out of the extended stored procedure. I'd like to hear how others have solved this.
For now I put the dll on a shared drive, so we can test, but I want to be able to put the dll on the OS drive. I know I'll have to put a copy of the dll on both cluster nodes, so that's not the issue.
My question is if it is possible to register the dll on both cluster nodes and leave the whole path out of the extended stored procedure. I'd like to hear how others have solved this.
0
Comments
-
Hello Daniel
I would keep the DLL in c drives in both clusters.
You just need to register it twice in both clusters.
Think of them as two separate sql servers.0 -
Make sure you switch the server over in order to register the second.
I've done this 3 times now and it works perfectly.0 -
The thing is though, that when I click on the "..." button to browse to the dll from where you add the extended stored procedure, it doesn't show me the C drive. Do you just type it in there then (connection problems prevent me from trying at the moment)?
So if I register the dll on both clusters I can just leave out the path and type "xp_ndo.dll" without the path?0 -
hmm. to register the dll.
I put the dll in the bin directory.
Then I connect in enterprise manger, I paste this code.USE master EXEC sp_addextendedproc xp_ndo_enumusergroups, 'C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Binn\xp_ndo.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\MSSQL.1\MSSQL\Binn\xp_ndo.dll' GO GRANT EXECUTE ON [xp_ndo_enumusersids] TO PUBLIC GO
If the there is an error when I execute this, I drop the procedures that exists.
I do this on both clusters.0 -
of course... T-SQL in SQL Server.... why didn't I think of that... :oops: I've been adding them directly in the master database for so long it didn't even dawn on me to try it a different way.
Thanks Ahmed0 -
You are welcome.
When I'm onsite, I am sometimes the same way, there is too many distraction and things going on.0 -
Follow up:
The extended stored procedure itself was present on both clusters as soon as I added it to the first cluster. All you have to do is add the dll to the second cluster.0 -
Where you connecting to the virtual server? or to the actual server?
I was connecting to each actual servers.0 -
I was connected through RDP to the IP address of the different nodes individually. I'm pretty sure I was on the actual server, since the dll was not in the second node's binn folder.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