Viewing 9 posts - 1 through 10 (of 10 total)
Hi handkot,
Its finally working,
Thanks a ton.. 🙂
Thanks again,
DCS
September 20, 2011 at 9:10 am
I changed my format file to match exactly with urs.. changed the table as well to use date in nchar format. So as good as using ur version. I will...
September 19, 2011 at 10:09 am
Hi Handkot,
Thanks for your response. I tried the bulk insert with your coding, but I got the following error:-
Msg 4864, Level 16, State 1, Line 2
Bulk load data conversion...
September 19, 2011 at 3:01 am
handkot (9/17/2011)
can you upload csv-file to the forum?
Hi Handkot,
The samole of data in csv file is as follows:-
MK,12345678,ABC 123lr RK Finish abcde abcdef ,ABCDEFGH,A123456,1,1234,18/09/2010,W1,
CD,98765432,RR CTR APPLE JAM AND...
September 17, 2011 at 2:59 am
@handkot, I have used it and it works the problem is when I get two rows which have commas in the fields. it doesnt work for them. and strange thing...
September 16, 2011 at 10:00 am
Yes they are.. I even tried using comma as field seperator and \t as field separator. When i use either in the stored procedure the error remains the same :-
Msg...
September 16, 2011 at 9:50 am
handkot (9/16/2011)
8.010
1 SQLNCHAR 0 3 "," 1 CompanyID ""
2 SQLNCHAR 0 9 "," 2 ItemCode ""
3 SQLNCHAR 0 38 "," 3 Descritpion ""
4 SQLNCHAR 0 9 ","...
September 16, 2011 at 8:39 am
steve smith-401573 (9/15/2011)
September 16, 2011 at 1:25 am
The query :- SELECT CONVERT(datetime, dt,101) FROM [TestDB].[dbo].[test_date]
gave me the error:-
Msg 242, Level 16, State 3, Line 1
The conversion of a varchar data type to a datetime data type resulted...
September 15, 2011 at 7:36 am
Viewing 9 posts - 1 through 10 (of 10 total)