Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6683809
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T04:51:55+00:00 2026-05-26T04:51:55+00:00

I am confused as to how do I use the SQL XML datatype, assuming

  • 0

I am confused as to how do I use the SQL XML datatype, assuming I have some data store in a XML file, do I store this XML file into the SQL XML datatype field or there is a way to write to it without writing into a XML file? Please advice, thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T04:51:55+00:00Added an answer on May 26, 2026 at 4:51 am

    Its not clear to me what you want. But you can store the xml file into a xml field and manipulate this field whatever you want.

    Oracle database allows you to create a table based on a xml file, and changes on the table reflect over the xml file, you cant do that in SQL Server.

    Anyway, you can manipulate a xml field like this:

    declare @friends xml
    
    set @friends =
    '
    <friends>
        <friend>
            <id>3</id>
        </friend>
        <friend>
            <id>6</id>
        </friend>
        <friend>
            <id>15</id>
        </friend>
    </friends>
    '
    
    select
        template.item.value('.', 'bigint') as id
    from @friends.nodes('//friends/friend/id') template(item)
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Okay, I'm confused here. I have a properties file with some SQL scripts that
I am so confused on this. I want to use the SQL Server on
I have some e-commerce code that I use often that uses Linq To SQL
I'm trying to use an SQLite database to store some data for my app.
I have always been confused that .e,g in php i have sql statement $qry
I have experience in javascript, html(Bronze certified), css(Gold certified), sql and xml(Bronze certified), and
I have to import a log file to SQL Server Database. File size is
I have this SQL query, and directly under it, another query based on the
I am a bit confused about SQL CLR. When i use the below query
I am attempting to use Filestream in sql server 2008 to store user uploaded

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.