Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Adding function to SQL Server
Message
From
24/02/1999 08:02:39
Christian Bellavance
Université du Québec à Hull
Hull, Quebec, Canada
 
 
General information
Forum:
Microsoft SQL Server
Category:
Other
Miscellaneous
Thread ID:
00189928
Message ID:
00190884
Views:
11
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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform