Home Microsoft SQL Server DigiMailing iRN Contact
    Keyword



sys.sp_MSenum3rdpartypublications

  No additional text.


Syntax

create procedure sys.sp_MSenum3rdpartypublications
(
    @vendor_name sysname = NULL,
    @publication sysname = NULL
)
as
BEGIN
    set nocount on
    if (object_id(N'dbo.MSpublications') is null)
        return 0
    
    -- This SP depends on the pre-creation
    -- of the temp table #MSenumpublications
    
    insert into #MSenumpublications
    select    pubs.publisher_db, publication,
            --replication_type, 1 tran, 2 merge ; pub type 0 tran 1 snapshot, 2 merge
            case when (publication_type <> 2) then 1 else 2 end,
            immediate_sync,
            allow_pull,
            allow_anonymous,
            0,                                        --enabled_for_internet,
            case when (publication_type = 0) then 0 else 1 end, --repl_freq,
            --immediate_sync_ready, always return 1 so that UI will not warn
            1,
            0,                                        -- allow_sync_tran,
            independent_agent,
            is_member('db_owner'),
            1,                                        --thirdparty
            pubs.vendor_name,
            srv.srvname,
            N'MSSQLSERVER',
            pubs.description,
            db_name(),
            convert(bit,0),                            --allow_queued_tran
            convert(bit,0),                            --allow_dts
            thirdparty_options,
            convert(int, null),                        -- queue_type
            0                                        -- dynamic_filters
    from  dbo.MSpublications as pubs
            join master.dbo.sysservers as srv on pubs.publisher_id = srv.srvid
    where exists
            (
                select    *
                from    dbo.MSarticles as art
                where    pubs.publication_id = art.publication_id
            )
      and    thirdparty_flag <> 0
      and    (
                  @vendor_name <> N'others' and
                  vendor_name = @vendor_name or
                @vendor_name  = N'others' and
                (vendor_name is null or vendor_name = '') or
                @vendor_name is null
            )
      and (@publication is null or pubs.publication = @publication)
END

 
Last revision 2008RTM
See also

  sp_MSenumallpublications (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