Point (geometry Data Type)
Applies to: SQL Server Azure SQL Database Azure SQL Managed Instance
Constructs a geometry instance representing a Point instance from its X and Y values and an SRID.
Syntax
Point ( X, Y, SRID )
Note
To view Transact-SQL syntax for SQL Server 2014 (12.x) and earlier versions, see Previous versions documentation.
Arguments
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.
Return Types
SQL Server return type: geometry
CLR return type: SqlGeometry
Remarks
Examples
The following example uses Point()
to create a geometry
instance.
DECLARE @g geometry;
SET @g = geometry::Point(1, 10, 0);
SELECT @g.ToString();
See Also
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for