Forum Discussion

omnia_saleh's avatar
omnia_saleh
Icon for Helper II rankHelper II
2 years ago
Solved

column content in [dbo].[CatalogItemExtendedContent]

what is the type of column content in [dbo].[CatalogItemExtendedContent] and what is the content of this column  and i want to conver data to xml i want to parse it to be more readable  ?

  • Anonymous's avatar
    Anonymous
    2 years ago

    Hi omnia_saleh ,

    Content of the "content" Column: The content of the "content" column would depend on the design of your database and the purpose of the table. If you need to understand what kind of data is stored in this column, you might want to look at a sample of the data:

    SELECT TOP (10) content 
    FROM [dbo].[CatalogItemExtendedContent];

    Converting Data to XML: To convert the data in the "content" column to XML for better readability, you can use the clause in SQL Server. Here's an example of how you might construct such a query:

    SELECT content 
    FROM [dbo].[CatalogItemExtendedContent]
    FOR XML PATH('ContentItem'), ROOT('ContentList');

    Best Regards,

    Xianda Tang

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

     

2 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi omnia_saleh ,

    Content of the "content" Column: The content of the "content" column would depend on the design of your database and the purpose of the table. If you need to understand what kind of data is stored in this column, you might want to look at a sample of the data:

    SELECT TOP (10) content 
    FROM [dbo].[CatalogItemExtendedContent];

    Converting Data to XML: To convert the data in the "content" column to XML for better readability, you can use the clause in SQL Server. Here's an example of how you might construct such a query:

    SELECT content 
    FROM [dbo].[CatalogItemExtendedContent]
    FOR XML PATH('ContentItem'), ROOT('ContentList');

    Best Regards,

    Xianda Tang

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

     

    • omnia_saleh's avatar
      omnia_saleh
      Icon for Helper II rankHelper II

      data type of the column is varbinary(MAX)