Tuesday, March 29, 2005

SET QUOTED_IDENTIFIER ON
GO
SET ANSI_NULLS ON
GO

ALTER PROCEDURE adm_TerritoryCategoryWrite_Remove
@removedata text
AS
DECLARE @table TABLE (ID int)
DECLARE @hDoc int
exec sp_xml_preparedocument @hDoc OUTPUT, @removedata
insert into @table select * FROM OPENXML(@hDoc, 'delete/TerritoryCategory')
WITH (ID int)
EXEC sp_xml_removedocument @hDoc
-- select * from @table t
Delete from TerritoryCategory where TerritoryCategory.TerritoryCategoryID in (select * from @table t)

--Select * from TerritoryCategory

GO
SET QUOTED_IDENTIFIER OFF
GO
SET ANSI_NULLS ON
GO

Tuesday, March 01, 2005

What is the ResourceBasedLiteralControl?

[The choice of using a ResourceBasedLiteralControl vs. a LieralControl is] based on size, it is a perf optimization -- static HTML of size over 1K(?) ends up as a utf-8 encoded resource, saving the conversion cost and string size.