Fixed not persisting IIS7 settings
PArtial checkin litigation hold Fixed HideQuota enforce in space resources overview
This commit is contained in:
parent
97bb7eeddd
commit
7ce43121db
4 changed files with 82 additions and 11 deletions
|
@ -267,3 +267,52 @@ GO
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
ALTER PROCEDURE [dbo].[UpdateServiceProperties]
|
||||
(
|
||||
@ServiceID int,
|
||||
@Xml ntext
|
||||
)
|
||||
AS
|
||||
|
||||
-- delete old properties
|
||||
BEGIN TRAN
|
||||
DECLARE @idoc int
|
||||
--Create an internal representation of the XML document.
|
||||
EXEC sp_xml_preparedocument @idoc OUTPUT, @xml
|
||||
|
||||
-- Execute a SELECT statement that uses the OPENXML rowset provider.
|
||||
DELETE FROM ServiceProperties
|
||||
WHERE ServiceID = @ServiceID
|
||||
AND PropertyName COLLATE Latin1_General_CI_AS IN
|
||||
(
|
||||
SELECT PropertyName
|
||||
FROM OPENXML(@idoc, '/properties/property', 1)
|
||||
WITH (PropertyName nvarchar(50) '@name')
|
||||
)
|
||||
|
||||
INSERT INTO ServiceProperties
|
||||
(
|
||||
ServiceID,
|
||||
PropertyName,
|
||||
PropertyValue
|
||||
)
|
||||
SELECT
|
||||
@ServiceID,
|
||||
PropertyName,
|
||||
PropertyValue
|
||||
FROM OPENXML(@idoc, '/properties/property',1) WITH
|
||||
(
|
||||
PropertyName nvarchar(50) '@name',
|
||||
PropertyValue nvarchar(1000) '@value'
|
||||
) as PV
|
||||
|
||||
-- remove document
|
||||
exec sp_xml_removedocument @idoc
|
||||
|
||||
COMMIT TRAN
|
||||
RETURN
|
||||
GO
|
Loading…
Add table
Add a link
Reference in a new issue