View Single Post
  #2 (permalink)  
Old 01-20-2009, 6:31 AM
cjard's Avatar
cjard cjard is offline
VB.NET Forum All-Mighty
.NET Framework: .NET 2.0 (VS 2005)
 
Join Date: Apr 2006
Age: 65
Posts: 6,442
Reputation: 807
cjard has a reputation beyond reputecjard has a reputation beyond reputecjard has a reputation beyond reputecjard has a reputation beyond reputecjard has a reputation beyond reputecjard has a reputation beyond reputecjard has a reputation beyond reputecjard has a reputation beyond reputecjard has a reputation beyond reputecjard has a reputation beyond reputecjard has a reputation beyond repute
Default

if your field is defined as varchar(max) then the designer might either:

not know what this is, because it's not VARCHAR(<number>)
know that this is a huge field, and isnt good to search and compare from a performance point of view


see what happens if you make a table with VARCHAR 100, 200, 400, 800, 1600 etc... and see if there is a cutoff point for the designer to make the field part of the search.


ps that's one wierd looking opti query. Did the designer do that?
The oracle ones look very different, ORring is done first
__________________
DW1 DW2 DW3 DW4 DNU PQ

Last edited by cjard; 01-20-2009 at 6:41 AM.
Reply With Quote