Hi,
I seem to be having one problem after another at the moment
I'm currently having a problem converting a float value to varchar which maybe someone can help me with.
When I use convert(varchar(20),myFloatValue) on a value, it adds "e+007" to the end of the value. For example, its converting 19983000 to 1.9983e+007.
I'm importing the values from an excel spreadsheet into an sql table, then trying to copy the data into another table that will hold data from multiple spreadsheets of different formats. It is the import function that is setting the field as float, in my final "central" table the field is a varchar(20). I can't understand why its being setup as a float in the first place, but its sql server that is doing it and I have no control over it (the table is dropped and re-created for each import).
Any help appreciated.
I seem to be having one problem after another at the moment
I'm currently having a problem converting a float value to varchar which maybe someone can help me with.
When I use convert(varchar(20),myFloatValue) on a value, it adds "e+007" to the end of the value. For example, its converting 19983000 to 1.9983e+007.
I'm importing the values from an excel spreadsheet into an sql table, then trying to copy the data into another table that will hold data from multiple spreadsheets of different formats. It is the import function that is setting the field as float, in my final "central" table the field is a varchar(20). I can't understand why its being setup as a float in the first place, but its sql server that is doing it and I have no control over it (the table is dropped and re-created for each import).
Any help appreciated.