geography::Null
static constructor Null (called as type::Null(...))
What changes
- Input
- WKT, WKB, GML or coordinates and SRID
- Output or change
- spatial instance
- Return type
- SQL Server type: geography CLR type: SqlGeography
Syntax at a glance
Null
Work example
Use geography.Null to produce a typed null spatial expression for a query branch.
Handle it with SQL null tests and do not treat it as an empty shape. Keep the geography type and SRID in the review.
Check your work The static constructor returns a typed geography NULL, and its IsNull property also returns NULL.
Practice SQL
Open in SQL FlowOpen the SQL for a walkthrough. Run the example in SQL Server to check its result.
SELECT geography::[Null] AS typed_null_geography, geography::[Null].IsNull AS null_property;
Open Microsoft Learn for full syntax, permissions, and details for your version.