It is possible to create a combined Index in SQL 2000 of multiple columns. Either use the Table Design in Enterprise Manager, go to the Index tab and you can add multiple columns there, or use T-SQL.
Catadmin - MCDBA, MCSA
"If a person is Microsoft Certified, does that mean that Microsoft pays the bills for the funny white jackets that tie in the back???
Select * from clientnr where clientnr+name+postal=x+y+z
If I have made an index on the table: clientnr,name, postal then the above sql will not use this index. I have to create an index: clientnr+name+postal rather than clientnr,name,postal.
------ "There's a man... He's bald and wears a short-sleeved shirt, and somehow he's very important to me. I think his name is Homer."
(Jack O'Neill, Stargate)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.