Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I need to create some layers in my map from a Microsoft SQL 2008 database. I am using Openlayers and Mapserver. The Mapserver instance is running on SUSE linux, so the Mapserver documentation on MSSQL that discusses the plugin for Windows is not very helpful. I know it is possible because I have in the past gotten it to work, however I scrapped that project in favor for something else. I now have a need for it once again and have been unsuccessful finding any clear and concise examples. Any help or direction would be greatly appreciated.

share|improve this question

To confirm the Windows plugin you are referring to is the MSSQL Plugin at

Does the OGR driver work on Linux when connecting to Linux?

It makes reference to a different ODBC driver that can be used in the connection string:

The connection may contain the optional Driver parameter if a custom SQL server driver should be loaded (like FreeTDS). The default is {SQL Server}

FreeTDS is

a set of libraries for Unix and Linux that allows your programs to natively talk to Microsoft SQL Server and Sybase databases.

So maybe this driver can also work with the MapServer SQL Server 2008 plugin? If not you could try creating an OGR Layer.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.