lfernandesfotos
Starting Member
2 Posts |
Posted - 2011-06-02 : 14:36:00
|
Hi!I was exporting SQL Server data to a csv file, but there was a problem formating NUMERIC dataype data. So, I used the following command, converting numeric data to VARCHAR:SELECTREPLACE(convert(varchar,convert(numeric(10,2),qtde_estoque_maximo)),'.',',') qtde_estoque_maximo ,REPLACE(convert(varchar,convert(numeric(10,2),qtde_estoque_maximo_informado)),'.',',') qtde_estoque_maximo_informado ,REPLACE(convert(varchar,convert(numeric(10,2),qtde_estoque_seguranca)),'.',',') qtde_estoque_seguranca ,REPLACE(convert(varchar,convert(numeric(10,2),qtde_estoque_seguranca_informado)),'.',',') qtde_estoque_seguranca_informadoFROM TAB1The problem is that when I changed the datatype in the query, it has not changed the Datatype in the DataFlow. So, when running the process it throws the error trying to convert DT_STR into DT_Numeric.I think that changing the datatype in DataFlow properties could solve my problem, but it is Disabled to change.Can U help me?===========Luiz Fernandeslfernandesfotos@hotmail.com |
|