0% found this document useful (0 votes)
48 views

m11 XML Slides

This document discusses ways to work with XML data in ADO.NET, including reading XML from a database as a string, single document, or XML data type column. It also describes sending XML to a database column and using XML to reduce roundtrips by batching multiple data changes in a single XML document.

Uploaded by

biplobusa
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
48 views

m11 XML Slides

This document discusses ways to work with XML data in ADO.NET, including reading XML from a database as a string, single document, or XML data type column. It also describes sending XML to a database column and using XML to reduce roundtrips by batching multiple data changes in a single XML document.

Uploaded by

biplobusa
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

Using XML With ADO.

NET

Herve Roggero
http://www.herveroggero.com
hroggero@bluesyntax.net
Topics Covered

 Read XML from the database


 Various mechanisms for reading XML using SqlCommand
 Send XML to the database
 Send a value to an XML column
 As a method for reducing roundtrips
 Send a batch of data for processing
Ways to Read XML Data

 As a string (nvarchar or ntext)


 Receiving a valid XML as a string
 As a single XML document
 Using ExecuteXmlReader
 As a column of xml data type
 Using GetSqlXml() on a SqlDataReader object
Reduce Database Roundtrips

 Objectives
 Reduce roundtrips => improves application performance
 Simplifies implementing SET-based operations
 Improves scalability
 Technique
 Format an XML document with multiple changes
 Example:
<xml>
<log>New search for user id 1</log>
<log>New search for user id 3</log>
<log>New search for user id 7</log>
</xml>

http://tinyurl.com/md83jg7
Summary

 Send, Receive XML documents with ADO.NET


 Xml Data Type forcing properly formatted XML documents
 XmlReader and ExecuteXmlReader for fetching XML documents
 Reduce Database Roundtrips

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy