Home Microsoft SQL Server DigiMailing iRN Contact
    Keyword



sys.sp_MSrepl_setOraclepackageversion

  No additional text.


Syntax

CREATE PROCEDURE sys.sp_MSrepl_setOraclepackageversion
(
    @publisher          sysname
)
AS
BEGIN
    set nocount on
    DECLARE @retcode            int
    DECLARE @version            nvarchar(256)

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

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

    -- Define sp_ORAremotequery support table
    create table #hquery
    (
        seq	int identity(2,1),
        cmd	nvarchar(4000)
    )

    -- Set the package version
    INSERT INTO #hquery(cmd) VALUES (N'UPDATE HREPL_VERSION SET SQLSERVERVERSION = ' + sys.fn_replquotename(@version, ''''))

    EXEC @retcode = sys.sp_IHquery @publisher
	
    IF  (@@error <> 0 OR @retcode <> 0 )
    BEGIN
        DROP TABLE #hquery
        RETURN (1)
    END
	
    DROP TABLE #hquery

    RETURN (0)
END

 
Last revision 2008RTM
See also

  sp_MSdrop_repltran (Procedure)
sp_setOraclepackageversion (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