Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.databases.ms-sqlserver > #1916
| Path | csiph.com!usenet.pasdenom.info!nntpfeed.proxad.net!proxad.net!feeder1-2.proxad.net!feeder.erje.net!1.eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail |
|---|---|
| From | Erland Sommarskog <esquel@sommarskog.se> |
| Newsgroups | comp.databases.ms-sqlserver |
| Subject | Re: Best Practices for Wide Columns in Tables |
| Date | Thu, 07 May 2015 21:29:32 +0200 |
| Organization | Erland Sommarskog |
| Lines | 24 |
| Message-ID | <XnsA493DAA1BA3D0Yazorman@127.0.0.1> (permalink) |
| References | <mhstjv$v1d$1@dont-email.me> <XnsA48C939DC2F5DYazorman@127.0.0.1> <0c04e4d3-dd5b-49e3-b41b-9905ddbebcc6@googlegroups.com> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=windows-1252 |
| Content-Transfer-Encoding | 8bit |
| Injection-Info | mx02.eternal-september.org; posting-host="f684068c684896b0c3feb34793663101"; logging-data="8185"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19W4QV+NWUs1hOnQi3YkDe2" |
| User-Agent | Xnews/2006.08.24 Mime-proxy/2.1.c.0 (Win32) |
| Cancel-Lock | sha1:GnrwCHN0LhEAiu8JwoTgxYzx4z8= |
| Xref | csiph.com comp.databases.ms-sqlserver:1916 |
Show key headers only | View raw
(rja.carnegie@gmail.com) writes: > As of SQL Server 2005 (about to be retired, and maybe > me with it), you can declare varchar(max) which - > typically? - is stored in a separate page (LOB_DATA) but > usually can be treated just like varchar(9) in your SQL > statements - likewise nvarchar, varbinary - or formats > like varchar(999) which are stored either IN_ROW_DATA > if it'll fit, or ROW_OVERFLOW_DATA if not. By default, the MAX data types are stored on the data page, as long as they are < 8000 bytes. There is a table option to change this. > I think there /used/ to be an option to hold short > values of an unlimited-length column as IN_ROW_DATA - > maybe that was for [text] and [ntext] types? For text/ntext/image, the default is to store out of row, but there is an option to change this as well. -- Erland Sommarskog, Stockholm, esquel@sommarskog.se
Back to comp.databases.ms-sqlserver | Previous | Next — Previous in thread | Find similar
Best Practices for Wide Columns in Tables Michael Cole <noone@invalid.com> - 2015-04-30 19:46 +1000
Re: Best Practices for Wide Columns in Tables Erland Sommarskog <esquel@sommarskog.se> - 2015-04-30 12:29 +0000
Re: Best Practices for Wide Columns in Tables rja.carnegie@gmail.com - 2015-05-06 19:46 -0700
Re: Best Practices for Wide Columns in Tables Erland Sommarskog <esquel@sommarskog.se> - 2015-05-07 21:29 +0200
csiph-web