geography.MinDbCompatibilityLevel
spatial method MinDbCompatibilityLevel (instance.MinDbCompatibilityLevel(...))
What changes
- Input
- spatial instance (and arguments)
- Output or change
- int
- Return type
- SQL Server return type: int CLR return type: int
Syntax at a glance
. MinDbCompatibilityLevel ( )
Work example
Use geography.MinDbCompatibilityLevel to check the minimum compatibility level for an extended method.
Compare with the target database before shared code uses the method. Keep the geography type and SRID in the review.
Check your work The integer reports the minimum database compatibility level that recognizes the geography type.
Practice SQL
Open in SQL FlowOpen the SQL for a walkthrough. Run the example in SQL Server to check its result.
SELECT p.shape.MinDbCompatibilityLevel() AS minimum_compatibility_level FROM (VALUES (geography::Point(47.651, -122.349, 4326))) AS p(shape);
Open Microsoft Learn for full syntax, permissions, and details for your version.