Re: SQL Server 2005 & XML performance question

Tech-Archive recommends: Fix windows errors by optimizing your registry



Hello Jon,

Let's say that one XML doc has the equivalent of about 4,000 records.
If I index the XML fields and then run a query that matches against a
single attribute in the XML doc, does the query have to return all the
XML content to the client?

Nope. If you use the .Value method to get that attribute's value, it returns the requested SqlServer Data type.


Thanks!

Kent Tegels
DevelopMentor
Blogging @ http://staff.develop.com/ktegels/


.



Relevant Pages

  • Re: DISCOVER_XML_METADATA
    ... Small XML is not problem. ... and then run following for each database: ... unprocessed cubes and it doesn't show processing status information ... A DBSCHEMA_CATALOGS query will get you a list of all the databases ...
    (microsoft.public.sqlserver.olap)
  • RE: Query producing XML appears to be cached
    ... By default the XMLDataSource control always caches its data, ... I have an app that executed a sql server query that produces an XML ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Typed XML slows down query?!
    ... > Hi Martin, ... >>I have a performance problem with typed XML and a simple query. ... >> CREATE PRIMARY XML INDEX idx_article ...
    (microsoft.public.sqlserver.xml)
  • setting dataset datarelation from database
    ... I want to set my dataset's datarelations based on the relationships ... I had a query I ... switched to using 'for xml explicit, ... If I run the query in sql query analyzer, I see the schema ...
    (microsoft.public.dotnet.framework.adonet)
  • Query producing XML appears to be cached
    ... I have an app that executed a sql server query that produces an XML ... actually executing. ...
    (microsoft.public.dotnet.framework.aspnet)