Forum Replies Created

Viewing 3 posts - 1 through 3 (of 3 total)

  • RE: Flatten or shredding XML text file into SQL Server table

    With one change to Adi SQL, I have the solution

    SELECT X.MPL.value('(../../PriceListId)[1]', 'nvarchar(4)') As PriceListID,

    X.MPL.value('(../../ThisDocumentGenerationTime)[1]', 'nvarchar(20)') As DocDateTime,

    X.MPL.value('(../FamilyName)[1]', 'nvarchar(50)') As PGroup,

    X.MPL.value('(FamilyName)[1]', 'nvarchar(50)') As PSubGroup,

    Y.MPL.value('(.)[1]', 'nvarchar(50)') As ProductNumber

    FROM (

    SELECT CAST(x AS...

  • RE: Flatten or shredding XML text file into SQL Server table

    Adi Cohn-120898

    select NewTbl.XMLCol.value('(../../PriceListId)[1]', 'int') as PriceListID,

    NewTbl.XMLCol.value('(../../GenerationTime)[1]', 'char(8)'),

    NewTbl.XMLCol.value('(../FamilyName)[1]','varchar(50)') as MajorFamilyName,

    ...

  • RE: Flatten or shredding XML text file into SQL Server table

    I can return five columns with PriceListId, DocDateTime as nvarchar text and the remaining 3 columns include XML for the /MajorFamily/FamilyName, /MinorFamily/FamilyName, and /MinorFamily/ProductNumber container elements, which need to be...

Viewing 3 posts - 1 through 3 (of 3 total)