This is a mirror of official site: http://jasper-net.blogspot.com/

SQL Server Types - Numeric vs Int

| Sunday, September 5, 2010
Generally when we are defining tables, the more specific the column definition the better. Yesterday, however, I ran into a case where better definition actually has increased storage use for no appreciable benefit.

Integers - Using Numeric vs Int
As I was working on the database I came across a curious sight, multiple columns defined as numeric(7,0), numeric(9,0), and so on. It seemed like someone was trying to provide the database with the most specific definition possible for a number of different pieces of data. Having never run into this particular practice, I immediately started searching for a reason. Was it smaller? faster? better?

Read more: LessThanDot

Posted via email from .NET Info

0 comments: