DECLARE @Doc XML,
DepreciationTangibleFixedAssets INT,
@Inventory INT,
@CurrentYear INT
SELECT @CurrentYear = 2009,
@Inventory = 2000,
@DepreciationTangibleFixedAssets = 5000
SELECT @Doc =
(
SELECT 'DepreciationTangibleFixedAssets' AS '@TYPE', Convert(VARCHAR(20), @DepreciationTangibleFixedAssets ) "*"
UNION
SELECT 'Inventory' AS '@TYPE', Convert(VARCHAR(20), @Inventory ) "*"
UNION
SELECT 'CurrentYear' AS '@TYPE', Convert(VARCHAR(20), @CurrentYear ) "*"
FOR XML PATH( 'ARGUMENT' ), ROOT('ARGUMENT-LIST')
)
SELECT @Doc
|