Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
The max. number of bytes in a row
Message
De
18/10/1999 17:07:10
 
 
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Conception bases de données
Divers
Thread ID:
00276744
Message ID:
00277880
Vues:
42
>I am slightly puzzled here. Are you saying that i can not declare char 8000 at all? If it is true then how to incorporate a char 8000 (or a wee bit less) column in a multicolumn table?

I am not saying that at all. For example, the following will work:

CREATE TABLE foo (
a char(8000)
)

But this will not:

CREATE TABLE foo (
a char(8000),
b char(60)
)

If you try it, you should get the following error:

Creation of table 'foo' failed because the row size would be 8081, including internal overhead. This exceeds the maximum allowable table row size, 8060.

My point was that there is overhead on the row that will probably prevent you from getting an actual row size of 8060 bytes.

-Mike
Michael Levy
MCSD, MCDBA
ma_levy@hotmail.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform