Home Microsoft SQL Server DigiMailing iRN Contact
    Keyword



sys.sp_MSgetmissingbm

  No additional text.


Syntax
create procedure sys.sp_MSgetmissingbm
	@objid int,
	@missingbm varbinary(128) output,
	@missingcolcount int output
as
	set nocount on

	declare @maxcolid int
	declare @idx int

	select @maxcolid= max(column_id) from sys.columns where object_id = @objid
	if @maxcolid is null return 1

	set @missingbm= null
	set @missingcolcount= 0
	set @idx= 1

	while @idx <= @maxcolid
	begin
		if not exists (select * from sys.columns where object_id = @objid and column_id = @idx)
		begin
			exec sys.sp_MSsetbit
					@bm= @missingbm output,
					@coltoadd= @idx

			set @missingcolcount= @missingcolcount + 1
		end

		set @idx= @idx + 1
	end

	return 0

 
Last revision 2008RTM
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