bulkinsert - For SQL Server 2014 - text using "bulk insert" -


sql server 2014: possible import .text file date in dd/mm/yyyy format, using bulk insert ?

i'm getting error:

msg 4864, level 16, state 1, line 56
bulk load data conversion error (type mismatch or invalid character specified codepage) row 1, column 14 (invoice_date).

invoice_date of smalldatetime datatype.

change default session date format prior executing bulk insert following t-sql statement:

set dateformat dmy 

remember revert original session setting avoid misinterpretation of ambiguous date formats. ideally, change field format yyyymmdd work correctly regardless of dateformat setting.


Comments

Popular posts from this blog

python - No exponential form of the z-axis in matplotlib-3D-plots -

php - Best Light server (Linux + Web server + Database) for Raspberry Pi -

c# - "Newtonsoft.Json.JsonSerializationException unable to find constructor to use for types" error when deserializing class -