Viewing 8 posts - 16 through 23 (of 23 total)
Thanks for this I was going to write a cursor, sometimes things are staring you in the face.
July 14, 2011 at 6:38 am
Jack Corbett (7/10/2008)
Could you post some sample data?
Dates are all in the format 15/12/2006 yet SQL doesnt see it that way. I'm thinking they are alligned differently hence the descrepancy...
July 10, 2008 at 7:42 am
BULK INSERT [Temp]
FROM '\\WLONS.CSV'
WITH
(
FIRSTROW = 2,
FIELDTERMINATOR = ',',
ROWTERMINATOR = '\n'
)
September 18, 2007 at 1:43 am
Brandie thanks again for the input. My staging table import field is as follows
[Date_On_List] [char] (10) COLLATE SQL_Latin1_General_CP1_CI_AS NULL
When i do the insert and check the data it looks fine...
September 17, 2007 at 9:06 am
Still experiencing problems with this.
I am importing using bulk insert from a .csv file. In the file the date is being stored as
September 17, 2007 at 2:38 am
Thanks Brandie
From my CSV file which is holding the date in the format of
20/07/2007 |
I tried the following
select...
September 14, 2007 at 6:23 am
Thanks Chirs looks like bum data in one of the fields I will investiagte. Appreciate the help
September 14, 2007 at 2:49 am
Thanks Chris
I tried
SELECT CONVERT(DATETIME,(RIGHT(Date_On_List,4) + '-' + SUBSTRING(Date_On_List,4,2) + '-' + LEFT(Date_On_List,2)))
from [Temp]
but i still get the Syntax error converting datetime from character string.
September 14, 2007 at 2:42 am
Viewing 8 posts - 16 through 23 (of 23 total)