You are here: Re: Index Computed Column? « MsSQL Server « IT news, forums, messages
Re: Index Computed Column?

Posted by Erland Sommarskog on 07/30/06 08:26

(jim_geissman@countrywide.com) writes:
> Oops, I forgot the follow-up....
>
> If I were to create such a computed column index based on the column
> with the non-alphanumerics squeezed out, and were to query against
> @variable that also had the non-alphanumerics squeezed out, I suppose I
> would need to use an index hint to ensure that index was utilised?

No, you should not have to. But you have to ensure that a number
of SET commands are in the right position. Most important, beware of
SET ARITHABORT which must be ON for SQL 2000, but which is never ON
by default, except in Query Analyzer.

-
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

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