Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Adding function to SQL Server
Message
De
24/02/1999 08:02:39
Christian Bellavance
Université du Québec à Hull
Hull, Québec, Canada
 
 
À
23/02/1999 15:51:31
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Autre
Divers
Thread ID:
00189928
Message ID:
00190884
Vues:
12
The problem we encountered is that when we have a datetime field and the date and time parts are use, you can not do a select using only the date part in the where clause. To do so we have to use de datepart function to get each part of the date. In order words, we have to put the datepart function three times in the where clause to check the date.

My question was, is it possible to create a function that will do those three datepart and return the date so i can make my where clause. (Ex. where myfunction(DateField) = '02/24/1999'.

For now we are separating the date part and the time part in two datetime field.

Thanks for your help.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform