Home Microsoft SQL Server DigiMailing iRN Contact
    Keyword



sys.sp_MSfillup_deleted_cols

  No additional text.


Syntax
create procedure sys.sp_MSfillup_deleted_cols
(
        @objid int,  -- source object id
        @deleted_cols varbinary(128) output -- deleted_cols bitmap
)
as
begin
    set @deleted_cols=0x0
    declare @ccols int, @maxcolid int, @colidpos int,
            @deleted_cols_map varbinary(128)
    set @deleted_cols_map =0x0
    select @ccols =  count(*) from sys.columns where object_id = @objid
    select @maxcolid = max(column_id) from sys.columns where object_id = @objid
    if @ccols <> @maxcolid
    begin
            set @colidpos = 1
            while (@colidpos <= @maxcolid)
            begin
                    if not exists (select * from sys.columns where column_id = @colidpos and
                                            object_id = @objid)
                            exec sys.sp_MSsetbit @deleted_cols_map out, @colidpos
                    set @colidpos = @colidpos + 1
            end
    end
    set @deleted_cols=@deleted_cols_map
end

 
Last revision 2008RTM
See also

  sp_MSaddinitialarticle (Procedure)
sp_MSdrop_rlrecon (Procedure)
sp_MSFixPubColumnBitmaps (Procedure)
sp_repldropcolumn (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