Stored Procedures [dbo].[sp_updateTenantOnDisHw]
Properties
PropertyValue
ANSI Nulls OnYes
Quoted Identifier OnYes
Parameters
NameData TypeMax Length (Bytes)
@newTentIdbinary(16)16
@asrcUuidbinary(16)16
Permissions
TypeActionOwning Principal
GrantExecuteca_itrm_group
SQL Script
create procedure sp_updateTenantOnDisHw(@newTentId binary(16), @asrcUuid binary(16))
as
begin
-- set correct tenant id

    update ca_discovered_hardware  set tenant_id = @newTentId
    where asset_source_uuid = @asrcUuid;
end;
GO
GRANT EXECUTE ON  [dbo].[sp_updateTenantOnDisHw] TO [ca_itrm_group]
GO
Uses