DataType.Geography Property


The geography data type represents data in a round-earth coordinate system. The SQL Server geography data type stores ellipsoidal (round-earth) data, such as GPS latitude and longitude coordinates.

Namespace:   Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

public static DataType Geography { get; }

Property Value

Type: Microsoft.SqlServer.Management.Smo.DataType

A DataType object value that specifies a Geography definition in the data type.

The geography data type is predefined and available in each database. You can create table columns of type geography and operate on geography data just like you would use other system-supplied types.

Visual Basic

Dim dt As DataType
dt = New DataType(SqlDataType.Geography)


$dt = new-object Microsoft.SqlServer.Management.Smo.DataType([Microsoft.SqlServer.Management.Smo.SqlDataType]::Geography)
Return to top