Hi,
I want to transfer the data from a excel spread sheet to sql server. I have used the oledb comand and it works fine, and i have also used the sqlbulkcopy and it transfers the data properly.
But in my excel spread sheet i have many columns with data as -0.76 or 0.76 or something like that but when it transfer it to sqlserver that particular column in sql server shows it as 0.00762711864406778
So how i can i tell sql server to display the data as 0.76 instead of 0.00762711864406778
any help will be appreciated.
Regards
Karen
You probably have the columns in excel formatted as a percentage column.
Multiply by 100 and round to the nearest .01
|||the columns excel are in General, i have tried currency and number and text and they dont work
Regards
Karen
No comments:
Post a Comment