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 > XML data type size
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
XML data type size

Réponse
 
LinkBack Outils de la discussion
Vieux 14/07/2008, 17h11   #1
Pedja
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut XML data type size

Hi folks,

I have data partitioning setup in place (1 table, divided to 16 partitions),
and I noticed that new partitions are much larger GB wise than the old ones
(switched out). However, number of rows in all partitions is pretty much the
same. I suspect this might be because XML column has much more data now, than
it had before. Does anybody know how can I calculate actual XML data type
column size?


Thanks in advance

  Réponse avec citation
Vieux 14/07/2008, 20h50   #2
Mike C#
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: XML data type size


"Pedja" <Pedja@discussions.microsoft.com> wrote in message
news:2AA95A16-44C6-40A0-A261-DBC434496762@microsoft.com...
> Hi folks,
>
> I have data partitioning setup in place (1 table, divided to 16
> partitions),
> and I noticed that new partitions are much larger GB wise than the old
> ones
> (switched out). However, number of rows in all partitions is pretty much
> the
> same. I suspect this might be because XML column has much more data now,
> than
> it had before. Does anybody know how can I calculate actual XML data type
> column size?
>
>
> Thanks in advance


You can use DATALENGTH function to return the size of each XML instance in
the column, on a row-by-row basis. The XML data type is an LOB type, so it
can hold up to 2.1 GB of data. If you have XML indexes set up on these
columns that could be consuming a good amount of space as well.

--

========
Michael Coles
"Pro SQL Server 2008 XML"
http://www.amazon.com/Pro-SQL-Server...dp/1590599837/


  Réponse avec citation
Vieux 14/07/2008, 22h06   #3
Pedja
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: XML data type size

thanks!

"Mike C#" wrote:

>
> "Pedja" <Pedja@discussions.microsoft.com> wrote in message
> news:2AA95A16-44C6-40A0-A261-DBC434496762@microsoft.com...
> > Hi folks,
> >
> > I have data partitioning setup in place (1 table, divided to 16
> > partitions),
> > and I noticed that new partitions are much larger GB wise than the old
> > ones
> > (switched out). However, number of rows in all partitions is pretty much
> > the
> > same. I suspect this might be because XML column has much more data now,
> > than
> > it had before. Does anybody know how can I calculate actual XML data type
> > column size?
> >
> >
> > Thanks in advance

>
> You can use DATALENGTH function to return the size of each XML instance in
> the column, on a row-by-row basis. The XML data type is an LOB type, so it
> can hold up to 2.1 GB of data. If you have XML indexes set up on these
> columns that could be consuming a good amount of space as well.
>
> --
>
> ========
> Michael Coles
> "Pro SQL Server 2008 XML"
> http://www.amazon.com/Pro-SQL-Server...dp/1590599837/
>
>
>

  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 03h48.


É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,09303 seconds with 11 queries