Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

What are the differences between RAW, AUTO and Explicit
modes in retrieving data from SQL Server in XML format?

Answer Posted / shobana

RAW

The RAW mode takes the query result and transforms each row
in the result set into an XML element with a generic
identifier row as the element tag and the columns in the
SELECT as attributes.

AUTO

The AUTO mode returns query results in a simple, nested XML
tree. Each table in the FROM clause for which at least one
column is listed in the SELECT clause is represented as an
XML element. The columns listed in the SELECT clause are
mapped to the appropriate element's attributes. The columns
can be optionally mapped to subelements. The nesting of the
elements or hierarchy in the result set is based on the
order of tables identified by the columns specified in the
SELECT clause. The leftmost table will be the top element.
The second leftmost table (identified by columns in the
SELECT statement) will be nested within the top element, and
so on.

EXPLICIT

In EXPLICIT mode, you can explicitly define the shape of the
resulting XML tree. Using this mode requires that the
queries be written in a specific way, so that additional
information about the desired nesting is specified
explicitly as part of the query.

Is This Answer Correct ?    7 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the meaning of object pooling?

1236


How do you find the count of records in a dataset?

978


What are the different namespaces used in the project to connect the database? What data providers available in .net to connect to database?

1338


How to create dynamic gridview?

1035


What is untyped dataset?

1094


What are all components of ADO.Net data provider?

1061


How to Read, Add, Update and Delete record in Entity Framework ?

1040


Explain the difference between ado and ado.net?

941


What are the different methods available under the sqlcommand class to access the data?

1051


What is the advantage of ado.net?

1020


Data reader read and forward only, how is it possible to get 2 tables of data at a time?

920


Which object of ado contains datarow datacolumn collection?

966


differences between ADO and ADO.NET

1080


What is basic use of data view?

1009


What is ado.net in mvc?

929