Home Microsoft SQL Server DigiMailing iRN Contact
    Keyword



sys.sp_helppublication

  No additional text.


Syntax


-- Name:
--          sp_helppublication

-- Description:
--          Returns information about a publication.  If the article
--          name is not specified, it returns information for all publications
--          associated with the publishing database.

--          For a SQL Server publication, this stored procedure is executed
--          at the Publisher on the publishing database.  For a heterogeneous
--          publication, this stored procedure may be executed in any database
--          at the distributor for the associated publisher.

--          When the @publication parameter is NULL, results are only returned
--          for those publications that the current user has PAL access to.

-- Security:
--          SQL Server publication:     'sysadmin', db_owner of publishing database, PAL
--          Heterogeneous publication:  'sysadmin', db_owner of distribution database, PAL

-- Returns:
--          Result set of publication properties

-- Owner:
--          


create procedure sys.sp_helppublication
(
    @publication sysname = N'%',
    @found int = 23456 OUTPUT, -- flag indicate returning row
    @publisher sysname = NULL
)
AS
BEGIN
    SET NOCOUNT ON
    DECLARE @cmd nvarchar(4000)
                ,@retcode int
                ,@publisher_type sysname

    EXEC @retcode = sys.sp_MSrepl_getpublisherinfo
                                            @publisher = @publisher,
                                            @publisher_type = @publisher_type OUTPUT,
                                            @rpcheader = @cmd OUTPUT,
                                            @skipSecurityCheck = 1
    IF @retcode <> 0
        RETURN (@retcode)

    SELECT   @publisher = UPPER(@publisher)
                ,@cmd = case when (@publisher_type = N'MSSQLSERVER')
                            then @cmd + N'sys.sp_MSrepl_helppublication'
                            else @cmd + N'sys.sp_IHhelppublication' end
    EXEC @retcode = @cmd
                                @publication,
                                @found OUTPUT,
                                @publisher,
                                @publisher_type
    RETURN (@retcode)
END

 
Last revision 2008RTM
See also

  sp_addmergepublication (Procedure)
sp_helppublicationsync (Procedure)
sp_helppublication_snapshot (Procedure)
sp_MSaddpub_snapshot (Procedure)
sp_MSdrop_replcom (Procedure)
sp_MSdrop_repltran (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