Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Compare dates
Message
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Title:
Miscellaneous
Thread ID:
00388311
Message ID:
00388380
Views:
10
>>This query will return no result because LastSR is a date/time format and I'm not specifying the time. How can I compare only to the date of LastSR. DatePart does not have a date / time.
>>
>>select * from satfl where LastSR = '7/5/2000'
>
>Try this: select * from satfl where LastSR = #7/5/2000#

I get:

Server: Msg 170, Level 15, State 1, Line 11
Line 11: Incorrect syntax near '#'.
Previous
Reply
Map
View

Click here to load this message in the networking platform