create table dbo.xsbloqueioacessometacolab (
idmeta integer not null,
idcolaborador integer not null,
constraint pkxsbloqueioacessometacolab
primary key (idmeta,idcolaborador))
go
alter table dbo.xsbloqueioacessometacolab add constraint fkxsbloqueioacessometacolabic foreign key (idmeta) references dbo.xsmeta (idmeta)
go
alter table dbo.xsbloqueioacessometacolab add constraint fkxsbloqueiometacolabcolab foreign key (idcolaborador) references dbo.xscolaborador (idcolaborador)
go
delete from dbo.xsordenacao where tag=207 and idcolaborador=0