Click here to Skip to main content
15,885,365 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
i am using "SQL Server 2008 R2". I had a table that had a column Name TimeSpent varchar(250). I am storing some Positive integer values in it . I am using cast(TimeSpent as BigInt) To insert data into this table. Some data after insertion get converted into decimal proceeding with 'e+' some values. For example 1.27923e+006,1.30313e+006.

Please suggest me what datatype i use resolve this issue.
Posted
Updated 23-May-13 20:56pm
v2
Comments
Richard MacCutchan 24-May-13 3:39am    
Use proper datatypes rather than casting. I suspect your TimeSpent variable is not in a valid format for conversion.
Arun Vasu 24-May-13 7:35am    
use int datatype. check whether your problem is solved?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900