Home Microsoft SQL Server DigiMailing iRN Contact
    Keyword



sys.sp_MSBitmapXOr

  No additional text.


Syntax
create procedure sys.sp_MSBitmapXOr
    @bm1 varbinary(128),
    @bm2 varbinary(128),
    @bmout varbinary(128) output
as
    declare @len1 int
    set @len1= datalength(@bm1)
    declare @len2 int
    set @len2= datalength(@bm2)

    declare @idx int
    set @idx= 1

    while @idx <= @len2
    begin
        if 1=@idx
        begin
            set @bmout= cast(substring(@bm1, @idx, 1) as tinyint)  cast(substring(@bm2, @idx, 1) as tinyint)
            if @@error<>0 return 1
        end
        else
        begin
            set @bmout= @bmout + cast(cast(substring(@bm1, @idx, 1) as tinyint)  cast(substring(@bm2, @idx, 1) as tinyint) as varbinary)
            if @@error<>0 return 1
        end

        set @idx= @idx+1
    end

    if @len1 > @len2
    begin
        set @bmout= @bmout + substring(@bm1, @idx, @len1-@len2)
        if @@error<>0 return 1
    end

    return 0

 
Last revision 2008RTM
See also

  sp_MSdrop_rlcore (Procedure)
sp_MSFixPubColumnBitmaps (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