Home Microsoft SQL Server DigiMailing iRN Contact
    Keyword



sys.sp_cdc_vupgrade_databases

  No additional text.


Syntax
create procedure [sys].[sp_cdc_vupgrade_databases]
as
begin
	declare @db_name sysname
		,@stmt nvarchar(max)
		,@raised_error int
		,@raised_message nvarchar(4000)

    set nocount on

    -- Upgrade all CDC enabled databases
    declare #c_cdc_databases CURSOR LOCAL FORWARD_ONLY for

        SELECT name
        FROM sys.databases
        WHERE is_cdc_enabled = 1 and is_read_only = 0

    open #c_cdc_databases
    fetch #c_cdc_databases into @db_name
    while (@@fetch_status != -1)
    begin
		-- Call sp_cdc_vupgrade for the CDC enabled database
		set @stmt = quotename(@db_name) + N'.sys.sp_cdc_vupgrade'
		
		begin try
			exec sp_executesql @stmt
		end try
		
		begin catch
			-- Report error as information message and keep going
			select @raised_error = ERROR_NUMBER()
			select @raised_message = ERROR_MESSAGE()
			raiserror(22861, 10, -1, @db_name, @raised_error, @raised_message)
		end catch
		
        fetch #c_cdc_databases into @db_name

    end -- while cursor

    close #c_cdc_databases
    deallocate #c_cdc_databases

    return 0

end

 
Last revision 2008RTM
See also

  sp_MSdrop_cdc (Procedure)
sp_vupgrade_replication (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