Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Composite index with datetime field
Message
 
 
À
31/07/2007 13:30:41
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Conception bases de données
Versions des environnements
SQL Server:
SQL Server 2005
Divers
Thread ID:
01244926
Message ID:
01244930
Vues:
22
This message has been marked as the solution to the initial question of the thread.
There're no composite indexes in SQL Server. You have to include each column into the where clause separatelly.
... WHERE CharacterField1 = CharValue1 
      AND DateTimeField = DateTimeValue
      AND CharacterField2 = CharValue2 
>I have a composite index which consist of character field, DateTime field, character field.
>
>When I try to select record by using CharField + CAST(DateTimeField AS CHAR(8)) + CharField2 expression, it doesn't seem to be optimized.
>
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform