Home Microsoft SQL Server DigiMailing iRN Contact
    Keyword



sys.sp_browsemergesnapshotfolder

  No additional text.


Syntax
create procedure sys.sp_browsemergesnapshotfolder (
    @publication sysname
    )
AS
BEGIN
    SET NOCOUNT ON
    DECLARE @dbname sysname
    DECLARE @alt_directory_type INT
    DECLARE @directory_type INT
    declare @retcode int

    SELECT @alt_directory_type = 25
    SELECT @directory_type = 7

    EXEC @retcode = dbo.sp_MSreplcheck_publish
    IF @@ERROR <> 0 or @retcode <> 0
        return (1)

    IF object_id(N'sysmergepublications') is not NULL AND
       object_id(N'sysmergeschemachange') is not NULL
    BEGIN
        SELECT 'snapshot_folder' = schematext
          FROM dbo.sysmergeschemachange sc
    INNER JOIN dbo.sysmergepublications mp
            ON sc.pubid = mp.pubid
         WHERE mp.name = @publication
           AND upper(mp.publisher) = upper(publishingservername())
           AND publisher_db = db_name()
           AND (schematype = @directory_type OR schematype = @alt_directory_type)
      ORDER BY schematype desc
    END
    ELSE
    BEGIN
        SELECT @dbname = DB_NAME()
        RAISERROR(21147, 16, -1, @dbname)
        RETURN 1
    END
END

 
Last revision 2008RTM
See also

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