Home Microsoft SQL Server DigiMailing iRN Contact
    Keyword



sys.sp_MSrepl_checkOraclepackageversion

  No additional text.


Syntax

CREATE PROCEDURE sys.sp_MSrepl_checkOraclepackageversion
(
    @publisher          sysname,
    @versionsmatch      int OUTPUT,
    @packageversion		nvarchar(256) OUTPUT
)
AS
BEGIN
    set nocount on
    DECLARE @retcode            int
    DECLARE @version			nvarchar(256)

    -- Set version string from SERVERPROPERTY
    SET @version = N'Microsoft SQL Server ' +  convert(nvarchar(100),SERVERPROPERTY('ProductLevel')) +
		+ N' Version:' + convert(nvarchar(100),SERVERPROPERTY('ProductVersion'))

    -- Security check.  'sysadmin' or db_owner of distribution db required.
    EXEC @retcode = sys.sp_MSreplcheck_publish
    IF @@ERROR <> 0 or @retcode <> 0
    BEGIN
        RETURN (1)
    END

    -- Get the Oracle package version
    EXEC @retcode = sys.sp_MSrepl_getOraclepackageversion
        @publisher = @publisher,
        @packageversion   = @packageversion OUTPUT
    IF @@ERROR <> 0 or @retcode <> 0
    BEGIN
        RETURN (1)
    END

    -- If the package version is NULL the package install requires a
    -- complete upgrade including meta data tables.
    IF @packageversion IS NULL
    BEGIN
        SET @versionsmatch = 0
        RETURN (0)
    END

    -- If the package version matches the current version identically,
    -- set @versionmatch to 1 to indicate no refresh of the Oracle install
    -- is needed.
    IF @packageversion = @version
    BEGIN
        SET @versionsmatch = 1
        RETURN (0)
    END

    -- The installed package is SQL Server 2005 RTM or greater, or an
    -- older version of SQL Server 2008. Set @versionmatch to 2 to indicate
    -- that the package code should be refreshed, but the meta data tables
    -- should only be modified as needed.
    SET @versionsmatch = 2

    RETURN (0)
END

 
Last revision 2008RTM
See also

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