2

An XML file was saved into a SQL Server database with the following code:

USE XML
GO

INSERT ENTERTAINMENT (content)
SELECT * FROM
    OPENROWSET(bulk 'c:\entertainment-jist.xml', single_blob ) AS X

The file was saved in a column with an xml datatype.

How can the whole content of this file be read in an asp.net page using C#?

1
  • 8
    Your caps lock is on. (We've edited the caps out, but your caps lock might still be on.) Commented Dec 6, 2011 at 12:08

1 Answer 1

1

You can use SqlDataReader.GetSqlXml to read the XML field.

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

Comments

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.