| title | Point (geometry Data Type) | ||
|---|---|---|---|
| description | Point (geometry Data Type) | ||
| author | MladjoA | ||
| ms.author | mlandzic | ||
| ms.date | 08/03/2017 | ||
| ms.service | sql | ||
| ms.subservice | t-sql | ||
| ms.topic | reference | ||
| ms.custom |
|
||
| f1_keywords |
|
||
| helpviewer_keywords |
|
||
| dev_langs |
|
[!INCLUDE SQL Server Azure SQL Database Azure SQL Managed Instance FabricSQLDB]
Constructs a geometry instance representing a Point instance from its X and Y values and an SRID.
Point ( X, Y, SRID )
X
Is a float expression representing the X-coordinate of the Point being generated.
Y
Is a float expression representing the Y-coordinate of the Point being generated.
SRID
Is an int expression representing the spatial reference ID (SRID) of the geometry instance you wish to return.
[!INCLUDEssNoVersion] return type: geometry
CLR return type: SqlGeometry
The following example uses Point() to create a geometry instance.
DECLARE @g geometry;
SET @g = geometry::Point(1, 10, 0);
SELECT @g.ToString();