Home Microsoft SQL Server DigiMailing iRN Contact
    Keyword



sys.sp_MSrepl_register_default_resolvers

  No additional text.


Syntax
create procedure sys.sp_MSrepl_register_default_resolvers
@distributiondb sysname
    AS
    declare @additive_resolver      sysname
    declare @average_resolver       sysname
    declare @mindate_resolver       sysname
    declare @maxdate_resolver       sysname
    declare @download_resolver      sysname
    declare @maximum_resolver       sysname
    declare @mergetxt_resolver      sysname
    declare @minimum_resolver       sysname
    declare @pricolumn_resolver     sysname
    declare @subwins_resolver       sysname
    declare @upload_resolver        sysname
    declare @sp_resolver            sysname
    declare @additive_resolver_clsid      nvarchar(60)
    declare @average_resolver_clsid       nvarchar(60)
    declare @mindate_resolver_clsid       nvarchar(60)
    declare @maxdate_resolver_clsid       nvarchar(60)
    declare @download_resolver_clsid      nvarchar(60)
    declare @maximum_resolver_clsid       nvarchar(60)
    declare @mergetxt_resolver_clsid      nvarchar(60)
    declare @minimum_resolver_clsid       nvarchar(60)
    declare @pricolumn_resolver_clsid     nvarchar(60)
    declare @subwins_resolver_clsid       nvarchar(60)
    declare @upload_resolver_clsid        nvarchar(60)
    declare @sp_resolver_clsid            nvarchar(60)
    declare @register_stmt                      nvarchar(1000)
    declare @retcode  int
    set @retcode = 0

    select @additive_resolver   = formatmessage(21701)
    select @average_resolver    = formatmessage(21702)
    select @mindate_resolver    = formatmessage(21703)
    select @maxdate_resolver    = formatmessage(21704)
    select @download_resolver   = formatmessage(21705)
    select @maximum_resolver    = formatmessage(21706)
    select @mergetxt_resolver   = formatmessage(21707)
    select @minimum_resolver    = formatmessage(21708)
    select @pricolumn_resolver  = formatmessage(21709)
    select @subwins_resolver    = formatmessage(21710)
    select @upload_resolver     = formatmessage(21711)
    select @sp_resolver         = formatmessage(21712)

    select @additive_resolver_clsid  = '{D2CCB059-65DD-497B-8822-7660B7778DDF}'
    select @average_resolver_clsid   = '{91DD61BF-D937-4A21-B0EF-36204A328439}'
    select @mindate_resolver_clsid   = '{2FF7564F-9D55-48C0-A4C1-C148076D9119}'
    select @maxdate_resolver_clsid   = '{77209412-47CF-49AF-A347-DCF7EE481277}'
    select @download_resolver_clsid  = '{9602B431-2937-4D51-8CC3-11F8AC1EC26D}'
    select @maximum_resolver_clsid   = '{77209412-47CF-49AF-A347-DCF7EE481277}'
    select @mergetxt_resolver_clsid  = '{0045200C-9126-4432-BC9B-3186D141EB5A}'
    select @minimum_resolver_clsid   = '{2FF7564F-9D55-48C0-A4C1-C148076D9119}'
    select @pricolumn_resolver_clsid = '{77209412-47CF-49AF-A347-DCF7EE481277}'
    select @subwins_resolver_clsid   = '{E93406CC-5879-4143-B70B-29B385BA80C9}'
    select @upload_resolver_clsid    = '{05614E0C-92A9-45F3-84A4-46C8E36424A9}'
    select @sp_resolver_clsid        = '{D264B5C0-1300-471A-80C9-9C1FC34A3691}'

    if ((@distributiondb is null) or (@distributiondb = ''))
        return 1

    -- call sp_registercustomresolver in the distribution database context
    set @register_stmt =  'exec ' + QUOTENAME(@distributiondb) +'.sys.sp_registercustomresolver @additive_resolver, @additive_resolver_clsid'
    exec @retcode =  sp_executesql  @register_stmt,
                                N'@additive_resolver sysname, @additive_resolver_clsid nvarchar(60)',
                                @additive_resolver, @additive_resolver_clsid
    IF @@ERROR <> 0 or @retcode <> 0
    BEGIN
        RAISERROR (21715, 16, -1, @additive_resolver)
        return 1
    END

    set @register_stmt =  'exec ' + QUOTENAME(@distributiondb) +'.sys.sp_registercustomresolver  @average_resolver, @average_resolver_clsid'
    exec @retcode =  sp_executesql @register_stmt,
  N'@average_resolver sysname, @average_resolver_clsid nvarchar(60)',
                                @average_resolver, @average_resolver_clsid
    IF @@ERROR <> 0 or @retcode <> 0
    BEGIN
        RAISERROR (21715, 16, -1, @average_resolver)
        return 1
    END

    set @register_stmt =  'exec ' + QUOTENAME(@distributiondb)+'.sys.sp_registercustomresolver  @mindate_resolver, @mindate_resolver_clsid'
    exec @retcode =  sp_executesql @register_stmt,
                                N'@mindate_resolver sysname, @mindate_resolver_clsid nvarchar(60)',
                                @mindate_resolver, @mindate_resolver_clsid
    IF @@ERROR <> 0 or @retcode <> 0
    BEGIN
        RAISERROR (21715, 16, -1, @mindate_resolver)
        return 1
    END

    set @register_stmt =  'exec ' + QUOTENAME(@distributiondb) +'.sys.sp_registercustomresolver  @maxdate_resolver, @maxdate_resolver_clsid'
    exec @retcode =  sp_executesql @register_stmt,
                                N'@maxdate_resolver sysname, @maxdate_resolver_clsid nvarchar(60)',
                                @maxdate_resolver, @maxdate_resolver_clsid
    IF @@ERROR <> 0 or @retcode <> 0
    BEGIN
        RAISERROR (21715, 16, -1, @maxdate_resolver)
        return 1
    END

    set @register_stmt =  'exec ' + QUOTENAME(@distributiondb) +'.sys.sp_registercustomresolver  @download_resolver, @download_resolver_clsid'
    exec @retcode =  sp_executesql @register_stmt,
                                N'@download_resolver sysname, @download_resolver_clsid nvarchar(60)',
                                @download_resolver, @download_resolver_clsid
    IF @@ERROR <> 0 or @retcode <> 0
    BEGIN
        RAISERROR (21715, 16, -1, @download_resolver)
        return 1
    END

    set @register_stmt =  'exec ' + QUOTENAME(@distributiondb) +'.sys.sp_registercustomresolver   @maximum_resolver, @maximum_resolver_clsid'
    exec @retcode =  sp_executesql @register_stmt,
                                N'@maximum_resolver sysname, @maximum_resolver_clsid nvarchar(60)',
                                 @maximum_resolver, @maximum_resolver_clsid
    IF @@ERROR <> 0 or @retcode <> 0
    BEGIN
        RAISERROR (21715, 16, -1, @maximum_resolver)
        return 1
    END

    set @register_stmt =  'exec ' + QUOTENAME(@distributiondb) +'.sys.sp_registercustomresolver @mergetxt_resolver, @mergetxt_resolver_clsid'
    exec @retcode =  sp_executesql @register_stmt,
                                N'@mergetxt_resolver sysname, @mergetxt_resolver_clsid nvarchar(60)',
                                @mergetxt_resolver, @mergetxt_resolver_clsid
    IF @@ERROR <> 0 or @retcode <> 0
    BEGIN
        RAISERROR (21715, 16, -1, @mergetxt_resolver)
        return 1
    END

    set @register_stmt =  'exec ' + QUOTENAME(@distributiondb) +'.sys.sp_registercustomresolver   @minimum_resolver, @minimum_resolver_clsid'
    exec @retcode =  sp_executesql  @register_stmt,
                                N'@minimum_resolver sysname, @minimum_resolver_clsid nvarchar(60)',
                                @minimum_resolver, @minimum_resolver_clsid
    IF @@ERROR <> 0 or @retcode <> 0
    BEGIN
        RAISERROR (21715, 16, -1, @minimum_resolver)
        return 1
    END

    set @register_stmt =  'exec ' + QUOTENAME(@distributiondb) +'.sys.sp_registercustomresolver  @pricolumn_resolver, @pricolumn_resolver_clsid'
    exec @retcode =  sp_executesql @register_stmt,
                                N'@pricolumn_resolver sysname, @pricolumn_resolver_clsid nvarchar(60)',
                                @pricolumn_resolver, @pricolumn_resolver_clsid
    IF @@ERROR <> 0 or @retcode <> 0
    BEGIN
        RAISERROR (21715, 16, -1, @pricolumn_resolver)
        return 1
    END

    set @register_stmt =  'exec ' + QUOTENAME(@distributiondb) +'.sys.sp_registercustomresolver  @subwins_resolver, @subwins_resolver_clsid'
    exec @retcode =  sp_executesql @register_stmt,
                                N'@subwins_resolver sysname, @subwins_resolver_clsid nvarchar(60)',
                                @subwins_resolver, @subwins_resolver_clsid
    IF @@ERROR <> 0 or @retcode <> 0
    BEGIN
        RAISERROR (21715, 16, -1, @subwins_resolver)
        return 1
    END

    set @register_stmt =  'exec ' + QUOTENAME(@distributiondb) +'.sys.sp_registercustomresolver  @upload_resolver, @upload_resolver_clsid'
    exec @retcode =  sp_executesql @register_stmt,
                                N'@upload_resolver sysname, @upload_resolver_clsid nvarchar(60)',
                                @upload_resolver, @upload_resolver_clsid
    IF @@ERROR <> 0 or @retcode <> 0
    BEGIN
        RAISERROR (21715, 16, -1, @upload_resolver)
        return 1
    END

    set @register_stmt =  'exec ' + QUOTENAME(@distributiondb) +'.sys.sp_registercustomresolver  @sp_resolver, @sp_resolver_clsid'
    exec @retcode =  sp_executesql @register_stmt,
                                N'@sp_resolver sysname, @sp_resolver_clsid nvarchar(60)',
                                @sp_resolver, @sp_resolver_clsid
    IF @@ERROR <> 0 or @retcode <> 0
    BEGIN
        RAISERROR (21715, 16, -1, @sp_resolver)
        return 1
    END

    return @retcode

 
Last revision 2008RTM
See also

  sp_adddistributiondb (Procedure)
sp_MScreate_mergesystables (Procedure)
sp_MSdrop_rladmin (Procedure)
sp_vupgrade_registry (Procedure)
       



News

  Query a named instance
Sybase+ASE+silent+install
SQL 2008 R2
Deprecated procedures in SQL2008
Reporting Services item-level role definitions
Create all your missing indexes
Converting datetime field
Start MSSQL Server Profiler at time
Replicating MSSQL Server views
Exploring Microsoft Sharepoint
The OLE DB provider "SQLNCLI10" for linked server indicates.
Mobile solar charger
Oracle to SQL Server replication
Cannot insert the value NULL into column
Undocumented Microsoft SQL Server 2008
VMware
Zoekmachine optimalisatie
SQL Servers hidden objects
FckEditor
Flash in Ajax
De hype die AJAX heet
Barcode scannen
MySQL; Gratis, makkelijk en snel!
PHP
sIFR; de combinatie tussen HTML en Flash