Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Select by Date from DateTime in SQL Server
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
01653212
Message ID:
01653219
Vues:
53
>>>>MartinaJ
>>>
>>>Thank you. Your code is even shorter than mine using DATEADD().
>>
>>Your code should never be used in production as it's non-sargable. Using CAST(dateTimeColun as date)
>>is OK.
>>Or you can use what Michel suggested, it's a proven approach.
>
>non-sargable? En ingles, por favor :)

http://sqlblog.com/blogs/aaron_bertrand/archive/2009/10/16/bad-habits-to-kick-mishandling-date-range-queries.aspx
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform