https://en.m.wikipedia.org/wiki/Tabular_Data_Stream
I use freetds in many places.
I don't think that the programming language inside Sybase/Microsoft SQL Server, known as Transact-SQL, has been implemented in postgres, but I could be wrong.
https://en.m.wikipedia.org/wiki/Transact-SQL
Microsoft does not implement SQL/PSM in SQL Server. They need to do so. Immediately.