You are here: Re: sequence of columns and preformance « MsSQL Server « IT news, forums, messages
Re: sequence of columns and preformance

Posted by Erland Sommarskog on 07/06/06 22:39

R.A.M. (r_ahimsa_m@poczta.onet.pl) writes:
> I am learning SQL Server and I would like to ask you a question. Could
> you tell me please if sequence of columns in a table has influence on
> performance?

If you mean whether it matters whether you say

CREATE TABLE tbl (a int NOT NULL,
b int NOT NULL,
c int NOT NULL)

or

CREATE TABLE tbl (cint NOT NULL,
b int NOT NULL,
a int NOT NULL)

the answer is: No.

--
Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация