I'm having to import data from a .csv file and that finally works. The csv files have a date in them and I only need the month. Editing the csv files is not an option on that though. I have read some stuff about a DatePart function but that one just doesn't seem to work for me.
The EventDate is the field that I want sliced and basically the only thing I want to import is the month number instead of the full date. Does anyone know what I can do to get this working? The dates are in mm-dd-yyyy format if that can help.
Thnx in advance,
DeV
Code:
SELECT COUNT([PointTag]) AS Amount, [EventDate], [MessageStr], [PointTag], [PointDesc]
INTO EventJournal
FROM Events
GROUP BY [EventDate],[MessageStr], [PointTag], [PointDesc]
ORDER BY COUNT([PointTag]) DESC;
The EventDate is the field that I want sliced and basically the only thing I want to import is the month number instead of the full date. Does anyone know what I can do to get this working? The dates are in mm-dd-yyyy format if that can help.
Thnx in advance,
DeV