troubleshooting Question

convert float column to numeric

Avatar of vijay1507
vijay1507 asked on
Microsoft SQL Server 2008Microsoft SQL Server 2005
7 Comments1 Solution1198 ViewsLast Modified:
Hi ,

 I have a float coloun with a id and values are like "2.14966375804504E+17"  and when I try to convert them to Numeric using

ALTER TABLE  [ttoptest].[dbo].[HDS_20080204]
        ALTER COLUMN VISID numeric (25) NOT NULL

I get an error saying

Msg 8115, Level 16, State 6, Line 1
Arithmetic overflow error converting float to data type numeric.
The statement has been terminated.

can some one please help!!!
ASKER CERTIFIED SOLUTION
Mark Wills
Topic Advisor
Join our community to see this answer!
Unlock 1 Answer and 7 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 7 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros