Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Adding Date + Time
Message
From
14/09/2010 18:24:48
 
 
To
14/09/2010 17:52:36
James Blackburn
Qualty Design Systems, Inc.
Kuna, Idaho, United States
General information
Forum:
ASP.NET
Category:
Databases
Environment versions
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01481160
Message ID:
01481178
Views:
22
>If this is raw sql then this will work as well. Sql Anywhere will automatically convert a properly formatted string to datetime. In fact if the time part is 00:00 then you can leave that off as well.
>
>
>SELECT * FROM RO
> WHERE cast(cast(Last_Date as char(10))+' '+Last_Time as datetime) as datetimecol > '2000-01-01 00:00:00'
>
This is much simpler.

Thanks
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Reply
Map
View

Click here to load this message in the networking platform