O'Reilly logo

Pro Spatial with SQL Server 2012 by Alastair Aitchison

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

C H A P T E R  3

Spatial Datatypes

Every variable, parameter, and column in a SQL Server table is defined as being of a particular datatype. The datatype determines the range of values that can be stored and the ways in which that data can be used. You are probably already familiar with many SQL Server datatypes, such as those listed in Table 3-1.

images

In addition to these common datatypes designed to hold numeric, character, or date and time data, SQL Server 2012 has two datatypes specifically designed to hold spatial data: geometry and geography. These are listed in Table 3-2.

There are several similarities between the geometry and geography

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required