D
dzemo
I have table with 5 columns. ID (int) and "Name, LastName, FatherName,
Phone" as text field. In that table I have 200000 records. Also I have view
with statement
Select (Name + LastName + FatherName + Phone) as Search
From Users
Where Search like '%xxx%'
And it is very slow. When I replace xxx with anything (no matter of how much
results are) it is very slow (about 20-30 seconds) to display results.
I use VB.NET 2003 and SQL 2000. Should I use Data type "char" instead
"text", or index columns?
any ideas?
thx
--
Phone" as text field. In that table I have 200000 records. Also I have view
with statement
Select (Name + LastName + FatherName + Phone) as Search
From Users
Where Search like '%xxx%'
And it is very slow. When I replace xxx with anything (no matter of how much
results are) it is very slow (about 20-30 seconds) to display results.
I use VB.NET 2003 and SQL 2000. Should I use Data type "char" instead
"text", or index columns?
any ideas?
thx
--