1

I have an XML file which should be a part of a table in my SQL database (say, name, data and XML).
I prefer not to make a string of it if possible. What column type should I use for it? I chose XML but I'm not sure how to work with it.

A small code example would be very appreciated.

Thanks.

1 Answer 1

1

SQL Server (if you're using it) has an XML datatype which you can use. I've never used the datatype but we covered it during an SQL Server/.NET course at university.

http://msdn.microsoft.com/en-us/library/ms189887.aspx

Sign up to request clarification or add additional context in comments.

1 Comment

That's what I use. 2005+ required.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.