Quantcast
Channel: All Forums
Viewing all articles
Browse latest Browse all 28504

TO_TIMESTAMP(date, time) not returning :ss seconds

$
0
0

When I run log parser using the code below I get the date and time field together as expected but it is missing the seconds. How do you get it to also list the seconds? The two fields look like,

iis log file:

date               time
3/13/2013       0:00:02

Once I run it using the code below it looks like this but is missing the seconds,

What I get after running code below:

timestamp
3/13/2013 0:00

LogParser "SELECT TO_TIMESTAMP(date, time) as timestamp INTO iisLog.csv FROM \\appdev1\c$\inetpub\logs\LogFiles\W3SVC1\u_ex130313.log" -i:iisW3C -o:csv

Viewing all articles
Browse latest Browse all 28504

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>