Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Is there a better way of selecting information for a dat
Message
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Versions des environnements
SQL Server:
SQL Server 2005
Divers
Thread ID:
01219598
Message ID:
01219621
Vues:
27
>Thanks for your reply Sergey. As always I value your response a lot. I find your syntaxt more difficult to read than my method, but the big question is: Is your way better, i.e., faster than my method?

IMO, it's more readable than yours. Also it has better chances to get optimized and be faster. Small correction though
SET @DateOnly = DATEADD(dd, DATEDIFF(dd, 0, @DateField), 0)
>
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform