Okay, I think I am one step closer, I got the error:
Server: Msg 241, Level 16, State 1, Line 13
Syntax error converting datetime from character string.
Does my data field have to be a certain type?
Right now it is just (char). Should it be varchar? Would that make a difference?
Hi DBomrrsm, Thanks for the reply.
I ran this Query in the Query Analyzer and it does exactly what I need.
select cast('20'+Left('050401172100',2)+'-'
+substring('050401172100',3,2)+'-'
+substring('050401172100',5,2)+' '
+substring('050401172100',7,2)+':'
+substring('050401172100',9,2)+':'...
Hi,
We have this text file with Date/Time information in the format of 050401172100.
050401172100 Meaning:
05 - Year 2005
04 - Month April
01 - Day The 1st
17 - 24 Hour time 5p.m.
21 - Minutes 5:21p.m.
00 - Seconds 5:21:00 p.m.
We have been trying to figure out how to successfully import...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.