Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Working with dates
Message
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Divers
Thread ID:
00531688
Message ID:
00531737
Vues:
10
>I pass a date into my stored procedure as '05/31/2001' and want pull all records whos datetime field match that date. It seems the time portion of my datetime field causes the comparison not to match.
>
>Should I be using something like the datepart function and comparing the month, day and year or is there a better way.

Chris,

You can use the CONVERT() function to extract only the date portion.
Sylvain Demers
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform