Here’s my query
Dim query as String = "Select * from openquery (devbook, 'SELECT wb.arrival_time FROM web_bookings wb ')"
All I need is to convert my arrival_time into a datetime field in the query
Is this possible?
Thanks
Jamie
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Yes,
“SELECT CONVERT (DATETIME, wb.arrival_time, XXX) FROM web_bookings wb”
Where XXX is the format of your string…
Check out http://msdn.microsoft.com/en-us/library/ms187928.aspx for the list of format codes…
So if your string date time was in dd/MM/yyyy format eg 28/12/2008 then your code would be