title | description | author | ms.author | ms.reviewer | ms.date | ms.service | ms.subservice | ms.topic | f1_keywords | helpviewer_keywords | dev_langs | ||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
sp_lookupcustomresolver (Transact-SQL) |
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. |
markingmyname |
maghan |
randolphwest |
07/16/2024 |
sql |
replication |
reference |
|
|
|
[!INCLUDE 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.
:::image type="icon" source="../../includes/media/topic-link-icon.svg" border="false"::: 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 [!INCLUDE msCoName] .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 xref:Microsoft.SqlServer.Replication.BusinessLogicSupport.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
.
- Advanced Merge Replication - Conflict Detection and Resolution
- Execute Business Logic During Merge Synchronization
- Implement a Business Logic Handler for a Merge Article
- Specify a Merge Article Resolver
- sp_registercustomresolver (Transact-SQL)
- sp_unregistercustomresolver (Transact-SQL)
- System stored procedures (Transact-SQL)