SQLServer SQL to GeoJSON
Dennis Guse
Export GeoJSON via SQL from SQLServer.
Based on this blog post on MSDN.
For export directly to a file this powershell script might be helpful: sqlserver-cmd-to-file.ps1
NOTE: I observed (not yet solved) issues, when I tried to export more than 1600 items.
Seemed like a “this string is too long” problem.