Share via

What Data type this Value comes under

bk 466 Reputation points
2021-01-13T12:50:02.767+00:00

Hi All,
I have been loading data from ADLS2 into SQL Server table. It has been working fine until today. I have a column "CORPVALUE" which is failing with an error for one of the value (260844.30782). I have this column data type as INT . To trouble shoot this issue i changed it to BIGINT and still failed. Can someone please suggest the data type this kind of value should come under?

Appreciate the help .

Thanks

Developer technologies | Transact-SQL
Developer technologies | Transact-SQL

A Microsoft extension to the ANSI SQL language that includes procedural programming, local variables, and various support functions.

0 comments No comments

Answer accepted by question author

Dan Guzman 9,516 Reputation points
2021-01-13T13:35:14.807+00:00

The value 260844.30782 contains a decimal so the appropriate T-SQL type is decimal, along with an appropriate precision and scale. The minimum for this particular value is decimal(11,5) but you may need a larger specification to contain the largest expected value.

Was this answer helpful?


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.