Ok, I will look at this, but entertain me
--convert (Jobsatrt (),101)
--SELECT convert(datetime, '23/07/2009', 103)
--convert (datetime, Jobstart,103)
--CONVERT(varchar, CONVERT(datetime, JobStart), 100)
--cast(JobStart as date)
How do I get this to work ? I know the format is M/d/yyyyHH:mm:ss
Apologies for losing track of this post.
Can you post some of the rows you currently have in the AlarmDetTest table so we can work with the actual formats you currently have? If you can post 10 or so rows of the data from that staging table in a readily consumable format, I know we can help. Please see the first link in my signature line below for what I mean by "readily consumable" format and how to make it.
is pronounced ree-bar and is a Modenism for R
First step towards the paradigm shift of writing Set Based code: Stop thinking about what you want to do to a row... think, instead, of what you want to do to a column.
Although they tell us that they want it real bad, our primary goal is to ensure that we dont actually give it to them that way.
Although change is inevitable, change for the better is not.
Just because you can do something in PowerShell, doesnt mean you should. Helpful Links:
How to post code problemsHow to post performance problemsForum FAQs