PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Hébergement serveur > ms.sqlserver.server > Actual XML data type size?
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
Actual XML data type size?

Réponse
 
LinkBack Outils de la discussion
Vieux 29/08/2008, 19h10   #1
Pedja
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Actual XML data type size?

Hi,

We have large partitioned table which has 14 partitions. Among other
columns, it has XML data type column. We have noticed that recent partitions
grew up significatnly, regardless of the fact that the number of rows
remained approximately the same (comparing to the old partitions).

What could be the reason? One thing that crossed my mind is that recent rows
might have larger xml data. How can we verify that?

It is sql server 2005, service pack 2.

Thanks,
Pedja
  Réponse avec citation
Vieux 30/08/2008, 01h38   #2
Dan Guzman
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Actual XML data type size?

> What could be the reason? One thing that crossed my mind is that recent
> rows
> might have larger xml data. How can we verify that?


One method to check the actual xml column space usage by partition:

SELECT
$PARTITION.PF_PartitionFunction(PartitionKey).
SUM(CAST(DATALENGTH(xml_column) AS bigint)) AS xml_column_length,
COUNT_BIG(*) AS row_count
FROM dbo.MyPartitionedTable
GROUP BY
$PARTITION.PF_PartitionFunction(PartitionKey)

If you don't want to scan the entire table, you can instead specify a range
sampling of the desired partition in the WHERE clause and run the query
multiple times.

--
Hope this s.

Dan Guzman
SQL Server MVP
http://weblogs.sqlteam.com/dang/

"Pedja" <Pedja@discussions.microsoft.com> wrote in message
news:15D63E54-D851-4C1D-BC99-ECC9A1081863@microsoft.com...
> Hi,
>
> We have large partitioned table which has 14 partitions. Among other
> columns, it has XML data type column. We have noticed that recent
> partitions
> grew up significatnly, regardless of the fact that the number of rows
> remained approximately the same (comparing to the old partitions).
>
> What could be the reason? One thing that crossed my mind is that recent
> rows
> might have larger xml data. How can we verify that?
>
> It is sql server 2005, service pack 2.
>
> Thanks,
> Pedja


  Réponse avec citation
Vieux 30/08/2008, 03h37   #3
Pedja
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Actual XML data type size?

Thanks

"Dan Guzman" wrote:

> > What could be the reason? One thing that crossed my mind is that recent
> > rows
> > might have larger xml data. How can we verify that?

>
> One method to check the actual xml column space usage by partition:
>
> SELECT
> $PARTITION.PF_PartitionFunction(PartitionKey).
> SUM(CAST(DATALENGTH(xml_column) AS bigint)) AS xml_column_length,
> COUNT_BIG(*) AS row_count
> FROM dbo.MyPartitionedTable
> GROUP BY
> $PARTITION.PF_PartitionFunction(PartitionKey)
>
> If you don't want to scan the entire table, you can instead specify a range
> sampling of the desired partition in the WHERE clause and run the query
> multiple times.
>
> --
> Hope this s.
>
> Dan Guzman
> SQL Server MVP
> http://weblogs.sqlteam.com/dang/
>
> "Pedja" <Pedja@discussions.microsoft.com> wrote in message
> news:15D63E54-D851-4C1D-BC99-ECC9A1081863@microsoft.com...
> > Hi,
> >
> > We have large partitioned table which has 14 partitions. Among other
> > columns, it has XML data type column. We have noticed that recent
> > partitions
> > grew up significatnly, regardless of the fact that the number of rows
> > remained approximately the same (comparing to the old partitions).
> >
> > What could be the reason? One thing that crossed my mind is that recent
> > rows
> > might have larger xml data. How can we verify that?
> >
> > It is sql server 2005, service pack 2.
> >
> > Thanks,
> > Pedja

>
>

  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 06h02.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,09090 seconds with 11 queries