May 13, 2008 at 11:04 am
Hi ,
i found the following code snippet:
{ fn WEEK(Created) }
It does select the week from a date.
The fucntion week is not supported by t-sql.
only when i use the keyword FN before it is supported.
Know my question?
What does FN mean and where is the function week implemented?
regards martin
May 13, 2008 at 11:36 am
Seems like an ODBC-function.
May 13, 2008 at 12:55 pm
DATEPART(WEEK, Col1)
N 56°04'39.16"
E 12°55'05.25"
May 13, 2008 at 1:47 pm
is FN a synonym for datepart???
May 13, 2008 at 1:50 pm
No. FN makes your connection resort to ODBC level calls and use the WEEK function and calculate the week value for created column.
It will be faster to use DATEPART(WEEK, Created) instead.
N 56°04'39.16"
E 12°55'05.25"
May 13, 2008 at 6:58 pm
Peter, any idea where I can get a list of these ODBC functions?
--Jeff Moden
Change is inevitable... Change for the better is not.
May 13, 2008 at 11:41 pm
This would be a starter
http://technet.microsoft.com/en-us/library/bb630290(SQL.100).aspx
Interbase can give you some clues
http://www.ibprovider.com/eng/documentation/odbc_escape_sequences_eng.html
N 56°04'39.16"
E 12°55'05.25"
Viewing 7 posts - 1 through 6 (of 6 total)
You must be logged in to reply to this topic. Login to reply