Home Microsoft SQL Server DigiMailing iRN Contact
    Keyword



sys.xp_repl_convert_encrypt_sysadmin_wrapper

  No additional text.


Syntax

-- Name: xp_repl_convert_encrypt_sysadmin_wrapper

-- Descriptions:

-- Parameters: as defined in create statement

-- Returns: 0 - success
--          1 - Otherwise

-- Security:
-- Requires Certificate signature for catalog access

create procedure sys.xp_repl_convert_encrypt_sysadmin_wrapper
(
    @password nvarchar(524) output
)
as
begin
    set nocount on
    declare @retcode int
    /*
    ** Security Check: require sysadmin
    */
    if (isnull(is_srvrolemember('sysadmin'),0) = 0)
    begin
        raiserror(21089,16,-1)
        return (1)
    end

	-- if we have sphinx/shiloh encryption go ahead and convert
	if sys.fn_replencryptversion(@password) in (1, 2, 3)
	begin
	    exec @retcode = sys.xp_repl_convert_encrypt @password output
	    return @retcode
	end

    return 0
end

 
Last revision 2008RTM
See also

  sp_vupgrade_distdb (Procedure)
sp_vupgrade_replmsdb (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