You are viewing an old version of this content. View the current version.
Compare with Current
View Version History
« Previous
Version 5
Next »
Problem
Various DCOM settings can cause problems with SQL Trigger calls to NLINK.
Stored Procedure Creation Script
To create an extended stored procedure to call the NLINK Server (running on the same machine as SQL Server or different machine)
- With NLINK Server version 4.2.0.116 or later use the sp_NLINK.sql script which is available from Junot Systems.
- With older version of the NLINK Server, see the corresponding documentation for the NLINK SQL eXtender.
DCOM Settings to Prevent auto-start of NLINK Server
When SQL Trigger calls the NLINK Server and the NLINK Server is not in a running state, by default, the operating system tries to start the NLINK Server. This can cause problems. Auto-starting of the NLINK Server can be prevented using the following steps:
- Run “dcomcnfg” from the command line.
- Navigate to “Component Services->Computers->My Computer->DCOM Config->NLINK”
- Open the Properties window for the NLINK application.
- Select the “Security” tab.
- In the “Launch and Activation Permissions” section, choose “Customize” and click the “Edit…” button.
- For “Group or user names” listed, in permissions window, uncheck “Allow” and “Deny” for “Local Launch” and “Remote Launch”.
Now NLINK can only be started from the Service Control Manager (SCM) or the NLINK Management Module (NMM).
DCOM Settings (NLINK Server and SQL Server on different machines)
If the NLINK Server and Microsoft SQL Server are on different computers, then DCOM security settings have to be properly configured for the trigger to work. The instructions assume that you are familiar with, and have the appropriate privileges to be able to perform systems administration tasks on your Windows system.
Configure DCOM the Computer running the NLINK Server:
- Run “dcomcnfg” from the command line.
- Navigate to “Component Services->Computers->My Computer”
- Open the Properties window for “My Computer”.
- Select the “COM Security” tab.
- In the “Launch and Activation Permissions” section, click the “Edit Limits” button.
- Select the “Everyone” group and check the “Allow” check-box for “Remote Activation”.
- Navigate to “Component Services->Computers->My Computer->DCOM Config->NLINK”
- Open the Properties window for the NLINK application.
- Select the Security tab.
- In the “Launch and Activation Permissions” section, choose “Customize” and click the “Edit…” button.
- Add the domain “Authenticated Users” group and allow “Remote Activation”.
Configure DCOM on the SQL Server computer:
- If NLINK Server is not installed on the machine, then create proper registry entries. Import the “NLink Connector.reg” file (available from Junot Systems) into the registry.
- Run “dcomcnfg” from the command line.
- Navigate to “Component Services->Computers->My Computer->DCOM Config”
- Open the Properties window for “NLINK”
- Select the “Location” tab.
- Un-check “Run application on this computer”.
- Check “Run application on the following computer:”
- Enter the name of the host computer on which NLINK is installed.
Testing Old-Style Stored Procedures
With old-style stored procedure use the Test sp_NLINK.sql script which is available from Junot Systems.
Look at values returned in @ErrorMsg, to debug issues.
Testing New-Style Stored Procedures
With new-style stored procedure use the Test sp_NLINK new.sql script which is available from Junot Systems.
Look at values returned in @ErrorMsg, to debug issues.
Related articles
To create an extended stored procedure to call the NLINK Server (running on the same machine as SQL Server or different machine)