![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi folks, I have a problem to dts a SQL table to an excel file. from: in data flow window, select a table, with one column, type varchar to: in data flow window, Excel destination, defining the excel file's path When I execute the package, I got one error "cannot convert between unicode and non-unicode string dataset:. Then, I created another project. The only difference was the table column type - from varchar to nvarchar. The execution was completed successfully. Please advise. Thanks. Peter |
#3
| |||
| |||
|
|
I figured out by meself. The solution is add an Data control" in the middle to convert "varchar" to "DT_WSTR". The later is unicode, used in Excel. Peter "Peter" wrote: Hi folks, I have a problem to dts a SQL table to an excel file. from: in data flow window, select a table, with one column, type varchar to: in data flow window, Excel destination, defining the excel file's path When I execute the package, I got one error "cannot convert between unicode and non-unicode string dataset:. Then, I created another project. The only difference was the table column type - from varchar to nvarchar. The execution was completed successfully. Please advise. Thanks. Peter |
#4
| |||
| |||
|
|
Peter, I just ran into this same error... I'm sort of new at this. How do I add a Data control to convert it properly... "Peter" wrote: I figured out by meself. The solution is add an Data control" in the middle to convert "varchar" to "DT_WSTR". The later is unicode, used in Excel. Peter "Peter" wrote: Hi folks, I have a problem to dts a SQL table to an excel file. from: in data flow window, select a table, with one column, type varchar to: in data flow window, Excel destination, defining the excel file's path When I execute the package, I got one error "cannot convert between unicode and non-unicode string dataset:. Then, I created another project. The only difference was the table column type - from varchar to nvarchar. The execution was completed successfully. Please advise. Thanks. Peter |
![]() |
| Thread Tools | |
| Display Modes | |
| |