Home > Ask the Oracle Experts > (Archive) App Dev: PL/SQL and XML Questions & Answers > Returning data from stored procedures as XML
Ask The Oracle Expert: Questions & Answers
EMAIL THIS

Returning data from stored procedures as XML

Lewis Cunningham EXPERT RESPONSE FROM: Lewis Cunningham

Pose a Question
Other Oracle Categories
Meet all Oracle Experts
Become an Expert for this site


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


>
QUESTION POSED ON: 07 June 2005
Our .NET developers are asking us to return data as XML from stored procedures rather than ref cursors from stored procedures. Can you see any benefit in this?

>
EXPERT RESPONSE

Can I see any benefit? Well, yes and no. If you are looking for the best performance, go with the ref cursors. If you are looking for the best maintainability, go with XML. Your needs are probably somewhere in between those two extremes.

.NET is based on XML and has a lot of ease-of-use features for working with XML. Your developers are probably very comfortable working wth XML. Those would be benefits from providing them XML.

There are downsides though. Additional coding on the database side (but not much anymore in 10g) and some performance hit (but not nearly as bad as it used to be).

I guess my answer is that it depends. Without more information I can't make a specific recommendation but I will say the XML has its pluses. Check out the XMLType datatype. If you can use that, your coding will be minimal.


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


RELATED CONTENT
(Archive) App Dev: PL/SQL and XML
Detect if a column is NUMBER or VARCHAR2 in PL/SQL
Loading data into Oracle
Log execution time for a procedure
Hiding objects in a schema
Query for five most recent dates
Connecting with Visual Basic
SQL ANSI standards and compliance
Developing a parser for recognizing HTML tags
Oracle and SOAP
Concatenating XML fragments

Oracle XML, SOA, Web services
Oracle XML DB generates power for electrical agency
Oracle updates Microsoft developer tools
Oracle vs. SAP: The SOA factor
Oracle's content management software plan takes shape
Top five data management buzzwords
Oracle updates free Web development tool
Podcast: Oracle vs. SAP -- SOA and Web services security
Oracle open sources TopLink at EclipseCon
Oracle or SQL Server for developing social networking site?
Oracle Database 11g to feature XML enhancements

RELATED GLOSSARY TERMS
Terms from Whatis.com − the technology online dictionary
DSML  (SearchOracle.com)

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary



Search and Browse the Expert Answer Center
Search and browse more than 25,000 question and answer pairs from more than 250 TechTarget industry experts.
Browse our Expert Advice

HomeNewsTopicsTipsAsk the ExpertsMultimediaWhite PapersProductsBlogs
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides enterprise IT professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective IT purchase decisions and managing their organizations' IT projects - with its network of technology-specific Web sites, events and magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Reprints  |  Site Map




All Rights Reserved, Copyright 2003 - 2008, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts