Importing Excel into SQL Server -


i want update table using data excel sheet. excel file have 2 columns, 1 uniqueidentifier , other reference. tried use openrowset command update table, database have security property doesn't allows me it.

my idea create new table in database 2 columns, , update data in table later. create data in database tried use import wizard in sql server when tried it, got following messages:

error 0xc020901c: data flow task 1: there error source - sheet1$.outputs[excel source output].columns[pst_wsi_refdes] on source - sheet1$.outputs[excel source output]. column status returned was: "text truncated or 1 or more characters had no match in target code page.". (sql server import , export wizard)

error 0xc020902a: data flow task 1: "source - sheet1$.outputs[excel source output].columns[pst_wsi_refdes]" failed because truncation occurred, , truncation row disposition on "source - sheet1$.outputs[excel source output].columns[pst_wsi_refdes]" specifies failure on truncation. truncation error occurred on specified object of specified component. (sql server import , export wizard)

error 0xc0047038: data flow task 1: ssis error code dts_e_primeoutputfailed. primeoutput method on source - sheet1$ returned error code 0xc020902a. component returned failure code when pipeline engine called primeoutput(). meaning of failure code defined component, error fatal , pipeline stopped executing. there may error messages posted before more information failure. (sql server import , export wizard)

i know messages refer data, excel file have 12k lines , don't know line has problem.

how investigate line has problem? or, there other ways import data excel?

more information:

sample of data i'm trying import

c7 (op1 op12), c10 (op1 op12), c3 (ip1 ip16), c6 (op1 op12), c10, c11, c12, c45, c49, c50, c14 (op1 op12), c5 (op1 op12), c9 (op1 op12), c15 (op1 op12), c51, c52, c54, c55

max size of field: 1303 characters.

import table format: i've tried 2 configurations:

1 - uniqueidentifier , nvarchar(2000)

2 - nvarchar(200) , nvarchar(2000)

try use excel2mysql, saved me lots of headaches..


Comments

Popular posts from this blog

Java 3D LWJGL collision -

spring - SubProtocolWebSocketHandler - No handlers -

methods - python can't use function in submodule -