Home Microsoft SQL Server DigiMailing iRN Contact
    Keyword



sys.sp_cdc_parse_update_flag_list

  No additional text.


Syntax
create procedure sys.sp_cdc_parse_update_flag_list
(
	@object_id	int,
	@update_flag_list nvarchar(max)
)	
as
begin
	declare @retcode int
		,@column sysname
		,@list nvarchar(max)
		,@column_name sysname
		,@quoted_change_table nvarchar(1000)
		
    set nocount on

    set @list = @update_flag_list
    set @column = null

    -- Extract one token at a time from the list
    while(@list is not null)
    begin
        -- Split out the next column from the list
		exec @retcode = [sys].[sp_cdc_extract_column] @column output
			,@list output
		
		if (@retcode != 0) or (@@error != 0)
		begin
			return 1
		end
		
		set @column_name = null		

		-- Locate information for the extracted column
		select @column_name = name
		from [sys].[columns]
		where object_id = @object_id
		and   name      = @column
		
		if (@column_name is null)
		begin
			set @quoted_change_table = N'[cdc].' + quotename(object_name(@object_id))
			raiserror(22919, 16, -1, @quoted_change_table)
			return 1 	 	
		end
		
		-- Populate local table with column information
		insert into #update_flags
		values(@column_name)
    end

	return 0
end

 
Last revision 2008RTM
See also

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