• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 85
  • Last Modified:

MS SQL Bulk load data error

I am running a stored procedure in SQL, that is importing and converting Apache logs into a csv format. I am getting the following error.

Bulk load data conversion error (type mismatch or invalid character for the specified code page)    error 4864.

This was working fine, and there hasn't been any changes to the stored procedure or the log format.
0
VH
Asked:
VH
  • 3
1 Solution
 
Russ SuterCommented:
Something in the source data has changed or is in a format not previously seen. I suspect there's a column that is now empty that was not empty before and the column into which you're trying to insert the value does not accept NULLs.
0
 
Vitor MontalvãoMSSQL Senior EngineerCommented:
Russ's right. It was your data that changed and not the code.
Don't you have logs configured to store the errors?
0
 
Vitor MontalvãoMSSQL Senior EngineerCommented:
VH, a feedback will be appreciated.
Cheers
0
 
Vitor MontalvãoMSSQL Senior EngineerCommented:
VH, you shouldn't accept my comment as solution since I didn't provide one.
You may accept Russ's comment or request this question to be deleted.
Cheers
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now