What are some ways of accessing Microsoft SQL Server from Linux?

前端 未结 14 1341
迷失自我
迷失自我 2020-11-29 20:53

We have a Windows machine running SQL Server 2005, and we need to be able to run some database queries on it from a Linux box. What are some of the recommended ways of doin

相关标签:
14条回答
  • Since November 2011 Microsoft provides their own SQL Server ODBC Driver for Linux for Red Hat Enterprise Linux (RHEL) and SUSE Linux Enterprise Server (SLES).

    • Download Microsoft ODBC Driver 11 for SQL Server on Red Hat Linux
    • Download Microsoft ODBC Driver 11 for SQL Server on SUSE - CTP
    • ODBC Driver on Linux Documentation

    It also includes sqlcmd for Linux.

    0 讨论(0)
  • 2020-11-29 21:30

    valentina-db it has free version for sql server
    .rpm and .deb
    serial id will be sent by email after registration

    https://www.valentina-db.com/en/

    https://valentina-db.com/en/store/category/14-free-products

    0 讨论(0)
  • 2020-11-29 21:30

    If you use eclipse you can install Data Tools Platform plugin on it and use it for every DB engines including MS SQLServer. It just needs to get JDBC driver for that DB engine.

    0 讨论(0)
  • 2020-11-29 21:31

    You don't say what you want to do with the resulting data, but if it's general queries for development/maintenance then I'd have thought Remote Desktop to the windows server and then using the actual SQL Server tools on their would always have been a more productive option over any hacked together solution on Linux itself.

    0 讨论(0)
  • 2020-11-29 21:34

    There is an abstraction lib available for PHP. Not sure what your client's box will support but if its Linux then certainly should support building a PHP query interface with this: http://adodb.sourceforge.net/ Hope that helps you.

    0 讨论(0)
  • 2020-11-29 21:35

    pymssql is a DB-API Python module, based on FreeTDS. It worked for me. Create some helper functions, if you need, and use it from Python shell.

    0 讨论(0)
提交回复
热议问题