Events
Mar 31, 11 PM - Apr 2, 11 PM
The biggest SQL, Fabric and Power BI learning event. March 31 – April 2. Use code FABINSIDER to save $400.
Register todayThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Applies to:
SQL Server
Returns the information on a business logic handler or the class identifier (CLSID) value of a COM-based custom resolver component that is registered at the Distributor. This stored procedure is executed at the Publisher on the publication database.
Transact-SQL syntax conventions
sp_lookupcustomresolver
[ @article_resolver = ] N'article_resolver'
, [ @resolver_clsid = ] N'resolver_clsid' OUTPUT
[ , [ @is_dotnet_assembly = ] is_dotnet_assembly OUTPUT ]
[ , [ @dotnet_assembly_name = ] N'dotnet_assembly_name' OUTPUT ]
[ , [ @dotnet_class_name = ] N'dotnet_class_name' OUTPUT ]
[ , [ @publisher = ] N'publisher' ]
[ ; ]
Specifies the name of the custom business logic being unregistered. @article_resolver is nvarchar(255), with no default. If the business logic being removed is a COM component, then this parameter is the friendly name of the component. If the business logic is a Microsoft .NET Framework assembly, then this parameter is the name of the assembly.
The CLSID value of the COM object associated with the name of the custom business logic specified in the @article_resolver parameter. @resolver_clsid is an OUTPUT parameter of type nvarchar(50).
Specifies the type of custom business logic that is being registered. @is_dotnet_assembly is an OUTPUT parameter of type bit.
1
indicates that the custom business logic being registered is a business logic handler assembly.0
(default) indicates that it's a COM component.The name of the assembly that implements the business logic handler. @dotnet_assembly_name is an OUTPUT parameter of type nvarchar(255).
The name of the class that overrides BusinessLogicModule to implement the business logic handler. @dotnet_class_name is an OUTPUT parameter of type nvarchar(255).
The name of the Publisher. @publisher is sysname, with a default of NULL
. Use this parameter when the stored procedure isn't called from the Publisher. If not specified, it assumes that the local server is the Publisher.
0
(success) or 1
(failure).
sp_lookupcustomresolver
is used in merge replication.
sp_lookupcustomresolver
returns a NULL
value for resolver_clsid when the component isn't registered at the Distribution and a value of 00000000-0000-0000-0000-000000000000
when the registration belongs to a .NET Framework assembly registered as a business logic handler.
sp_lookupcustomresolver
is called by sp_addmergearticle and sp_changemergearticle to validate the specified article_resolver.
Only members of the db_owner fixed database role on the publication database can execute sp_lookupcustomresolver
.
Events
Mar 31, 11 PM - Apr 2, 11 PM
The biggest SQL, Fabric and Power BI learning event. March 31 – April 2. Use code FABINSIDER to save $400.
Register today