I've got some GEOGRAPHY data in my Sql Server 2008. I wish to export it as a shapefile (so I can import it into QGIS) and when I do, it's rotated 90 degrees to the left.
Command line
C:\>ogr2ogr -f "ESRI Shapefile" "C:\temp\test.shp" "MSSQL:server=MyDatabaseServer;
database=xwing;uid=xwing;pwd=ooOOooSecretPassword" -sql "SELECT OriginalBoundary FROM Geography Boundaries where LocationId = 18561" -overwrite -lco "SHPT=POLYGON"
Boundary is Sql Server 2008

Boundary loaded into QGIS after using Ogr2Ogr

/me sad panda.
geographycoordinates as (Y X), then they revised this to (X Y). I wonder if this is a relic of those beta days? What do you get fromogr2ogr --version? – Mike Toews Mar 6 '12 at 0:06