Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 69
  • 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

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

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