0

I currently work with Postgres database with the Spatial component installed is there a difference in spatial functionality between Postgres with Spatial and the latest Microsoft SQL Server version?

3
  • 1
    What problems do you have that you think will be solved with SQL Server? Commented Oct 3, 2018 at 7:01
  • Our company use at this moment PostGres for building shapes and geo map layers. We use therefor the GeoSpatial modulle within Postgres. The plan is to move to the Microsoft Azure and work with Azure SQL Database. But i don't know what the impact on functional level. Commented Oct 3, 2018 at 10:01
  • You can get Postgres (not PostGres) on Azure as well: azure.microsoft.com/en-us/services/postgresql (I assume you are referring to PostGIS when you talk about "geo spatial module2?) Commented Oct 3, 2018 at 10:05

1 Answer 1

1

There are slight difference, basic function are the same (st_distance, st_equal). Postgis have some function that SQL Server doesn't have (like st_clusterkmeans). Sql server function are named STXXX, where postgis function are named ST_XXX.

So in term of function you'll not be lost, bu in term of SQL, postgres use PLpgSQL where SQL Server use T-SQL. You can see example of sql server basic request here

Sign up to request clarification or add additional context in comments.

3 Comments

Postgres doesn't "use" PL/pgSQL - Postgres (unlike SQL Server) makes a clear distinction between the query language (SQL) and procedural language. Queries (DML, DDL) are written in SQL - stored function can be written in PL/pgSQL (or SQL or Python or JavaScript or ....)
Thanks for your answers
@a_horse_with_no_nameyou're right the term "use" was not appropriate here.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.