Hi, All
I hope someone can give me insight into this problem-thanks in advance!
Text File with sample data:
CallDateTime,AnsweredDuration
08/02/2002 14:09:56,214
08/02/2002 14:09:54,9
08/02/2002 14:09:54,0
08/02/2002 14:09:52,0
08/02/2002 14:09:52,183
The bcp code:
bulk insert DailyCalls
from 'c:\inetpub\with
(
firstrow = 2,
formatfile = 'c:\inetpub\)
The formatfile:
7.0
2
1 sqldatetime 0 8 "," 2 CallDateTime
2 sqlint 0 4 "\r\n" 3 AnsweredDuration
The error:
Could not bulk insert. Invalid data type for column number 1 in format file
Much appreciate.
I hope someone can give me insight into this problem-thanks in advance!
Text File with sample data:
CallDateTime,AnsweredDuration
08/02/2002 14:09:56,214
08/02/2002 14:09:54,9
08/02/2002 14:09:54,0
08/02/2002 14:09:52,0
08/02/2002 14:09:52,183
The bcp code:
bulk insert DailyCalls
from 'c:\inetpub\with
(
firstrow = 2,
formatfile = 'c:\inetpub\)
The formatfile:
7.0
2
1 sqldatetime 0 8 "," 2 CallDateTime
2 sqlint 0 4 "\r\n" 3 AnsweredDuration
The error:
Could not bulk insert. Invalid data type for column number 1 in format file
Much appreciate.