484

How can I connect to a remote SQL server using Mac OS X? I don't really need a GUI, but it would be nice to have for the color coding and resultset grid. I'd rather not have to use a VM.

Is there a SQL client for Mac OS X that works with MS SQL Server?

11
  • 2
    I found that Navicat supports SQL Server now. There's a Windows and Mac version.
    – user540373
    Dec 13, 2010 at 10:13
  • 4
    Give SQL Client a try. There is a free trial and it was built to allow access to MSSQL databases (including Azure) from a mac without the need of a virtual machine.
    – Kyle
    Sep 19, 2014 at 15:31
  • 3
    Recently I have been using 0xDBE its free from JetBrains in Early access Apr 1, 2015 at 22:41
  • 2
    I recommend this be migrated to Software Recommendations.
    – Ky -
    Apr 21, 2016 at 18:25
  • 7
    There's the new SQL Operations Studio (learn.microsoft.com/en-us/sql/sql-operations-studio/what-is) by Microsoft. Free and so far better than anything else I've tried
    – scc
    Nov 25, 2017 at 12:14

25 Answers 25

366

Let's work together on a canonical answer.

Native Apps

Java-Based

Electron-Based

(TODO: Add others mentioned below)

17
  • 6
    SQuirreL SQL and all other Java-based clients I've tried so far for connecting to ODBC DBs simply don't work on OS X. They all complain about the JDBC/ODBC driver missing. Maybe it's just my computer…? Sep 16, 2008 at 15:40
  • 3
    Not just your computer. I can't get any of the Java ones to work either.
    – TheSmurf
    Oct 30, 2008 at 20:10
  • 7
    @Garrett: MS also offers an MSSQL JDBC driver. Install sqljdbc4.jar (sqljdbc.jar for JRE 5.0) somewhere you keep Java packages (such as ~/Library/Java or /Library/Java/Extensions). Whichever driver you pick, make sure you add it to the "Extra Class Path" list for the MSSQL driver, then pick the class name for the driver at the bottom of the same dialog.
    – outis
    Feb 5, 2011 at 13:45
  • 5
    Squirrel is great except for the inevitable messing around trying to find the right JDBC driver, putting it in the right place, telling Squirrel about it, then trying to set up a JDBC connection with. If you're using it regularly, it's fine. If you use Squirrel infrequently, and usually on a new machine, it's a hassle. Oct 6, 2011 at 3:49
  • 3
    I ended up using DBeaver, which can work very well with almost every type of databases, including MySQL, SQL Server, Oracle, PostgreSQL, SAP Hana, Redis... just to name a few. The DB connector driver can be added in a very easy to understand way. I've also tried Oracle SQL Developer, DB Visualizer but they do not work well with Azure Cloud's SQL Database. Jan 15, 2017 at 16:17
181

The Java-based Oracle SQL Developer has a plugin module that supports SQL Server. I use it regularly on my Mac. It's free, too.

Here's how to install the SQL Server plugin:

  • Run SQL Developer
  • go to this menu item: Oracle SQL Developer/Preferences/Database/Third-party JDBC Drivers
  • Click help.
  • It will have pointers to the JAR files for MySQL, SQL Server, etc.
  • The SQL Server JAR file is available at http://sourceforge.net/projects/jtds/files/
23
  • 11
    Just a wee addendum - the menu is slightly different for the latest version. You can't click help anymore. Basically, download the server jar file, put it somewhere memorable and then point at it from Tools/Preferences/Database/Third Party JDBC Drivers. Casp Mar 18, 2010 at 1:39
  • 3
    I had a problem even getting the new server connection dialog to open. Seems to be a software bug.
    – YWCA Hello
    Nov 8, 2012 at 17:24
  • 13
    I just wasted time trying the current JAR file version (jtds-1.3.0-dist.zip) and it does not work with Oracle SQL Developer. Finally I tried v1.2 (jtds-1.2.7-dist.zip) and that works.
    – IcarusNM
    Feb 15, 2013 at 18:09
  • 5
    On MacOS 10.75, SQL Dev. 3.2.2.20.09 I cannot use jets-1.3.0 ("new connection" dialog does not appear), I had to use jtds-1.2.8.jar instead. Jul 1, 2013 at 13:56
  • 7
    There's a new current version (jtds-1.3.1.jar.zip) which does work with Oracle SQL developer. Just unzip it and in your settings Tools/Preferences/Database/Third Party JDBC Drivers point to the unzipped .jar file/folder.
    – Dannid
    Nov 19, 2013 at 0:38
36

This will be the second question in a row I've answered with this, so I think it's worth pointing out that I have no affiliation with this product, but I use it and love it and think it's the right answer to this question too: DbVisualizer.

6
  • Just installed this. It's waaaay better than the Sql Server Management Studio which tends to switch databases on me at random.
    – Tres
    Jul 1, 2010 at 1:52
  • Agreed, DbVisualizer was the winner for me on OSX, though the free version has some limitations (no table dumps for example)
    – Euan
    Oct 7, 2010 at 12:23
  • 1
    I love DbVisualizer too, I just miss that the Free edition doesn't allow "selection executes" and the Personal edition is too expensive for me (because of exchange rates). Nov 9, 2011 at 13:56
  • Not allowed to browse binary/BLOB or CLOB in DbVisualizer Free. For example: TEXT fields. :(
    – Can Aksoy
    Dec 6, 2012 at 2:35
  • 2
    The MS SQL JDBC drivers are always painful to work with. 1. Download sqljdbc4.jar from Microsoft. 2. Add a new new Driver inside SQuirreL, where you will need to cherry pick the downloaded JAR from your file system under the Extra Classpath section. You will also need to specify the driver class which is com.microsoft.sqlserver.jdbc.SQLServerDriver. 3. ... 4. Profit.
    – smeeb
    Jul 15, 2015 at 18:46
9

When this question was asked there were very few tools out there were worth much. I also ended up using Fusion and a Windows client. I have tried just about everything for MAC and Linux and never found anything worthwhile. That included dbvisualizer, squirrel (particularly bad, even though the windows haters in my office swear by it), the oracle SQL developer and a bunch of others. Nothing compared to DBArtizan on Windows as far as I was concerned and I was prepared to use it with Fusion or VirtualBox. I don't use the MS product because it is only limited to MS SQL.

Bottom line is nothing free is worthwhile, nor were most commercial non windows products

However, now (March 2010) I believe there are two serious contenders and worthwhile versions for the MAC and Linux which have a low cost associated with them. The first one is Aqua Data Studio which costs about $450 per user, which is a barely acceptable, but cheap compared to DBArtizan and others with similar functionality (but MS only). The other is RazorSQL which only costs $69 per user. Aqua data studio is good, but a resource hog and basically pretty sluggish and has non essential features such as the ER diagram tool, which is pretty bad at that. The Razor is lightning fast and is only a 16meg download and has everything an SQL developer needs including a TSQL editor.

So the big winner is RazorSQL and for $69, well worth it and feature ridden. Believe me, after several years of waiting to find a cheap non windows substitute for DBartizan, I have finally found one and I have been very picky.

2
  • 14
    nothing free is worthwhile? So Python, Ruby, Java, friendship, love and sunny afternoons are worthless?
    – Dónal
    Jun 22, 2011 at 14:31
  • 11
    Python, Ruby, and Java are definitely worthless. Love is not free - but is the best thing in the world. Sunny afternoons don't last.
    – Sam Axe
    Sep 11, 2013 at 20:30
7

My employer produces a simple, proof-of-concept HTML5-based SQL client which can be used against any ODBC data source on the web-browser host machine, through the HTML5 WebDB-to-ODBC Bridge we also produce. These components are free, for Mac, Windows, and more.

Applicable to many of the other answers here -- the Type 1 JDBC-to-ODBC Bridge that most are referring to is the one Sun built in to and bundled with the JVM. JVM/JRE/JDK documentation has always advised against using this built-in except in experimental scenarios, or when no other option exists, because this component was built as a proof-of-concept, and was never intended for production use.

My employer makes an enterprise-grade JDBC-to-ODBC Bridge, available as either a Single-Tier (installs entirely on the client application host) or a Multi-Tier (splits components over the client application host and the ODBC data source host, enabling JDBC client applications in any JVM to use ODBC data sources on Mac, Windows, Linux, etc.). This solution isn't free.

All of the above can be used with the ODBC Drivers for Sybase & Microsoft SQL Server (or other databases) we also produce ...

6

I thought Sequel Pro for MySQL looked pretty interesting. It's hard to find one tool that works with all those databases (especially SQL Server 2005 . . . most people use SQL Server Management Studio and that's Windows only of course).

1
  • Sequel Pro doesn't work with Microsoft SQL Server-- only MySQL (and variants like MariaDB.)
    – beporter
    Sep 18, 2019 at 20:49
6

Squirrel SQL is a Java based SQL client, that I've had good experience with on Windows and Linux. Since it's Java, it should do the trick.

It's open source. You can run multiple sessions with multiple databases concurrently.

2
  • I've used it extensively, and find it very mature. It also has lots of nice extras (script generation, SQL formatting and highlighting, metadata displays, cross-DB table copying). It even has plugins to give access to DB-specific functionality, if you need it. And it's free software.
    – sleske
    May 3, 2009 at 16:09
  • 1
    can't connect to MSSQL Express 2008 in Mac OS X 10.7
    – Raptor
    Sep 10, 2012 at 3:37
6

I vote for RazorSQL also. It's very powerful in many respects and practically supports most databases out there. I mostly use it for SQL Server, MySQL and PostgreSQL.

1
  • it's commercial
    – mrdaliri
    Feb 14, 2017 at 9:35
6

DbVisualizer supports many different databases. There is a free edition that I have used previously. Download from here

1
  • I probably should have been a little bit more detailed. I have been using DbVisualizer but it seems to chew up a lot of memory on Mac os x. It doesn't do to bad on windows and I don't seem to have a problem with it there.
    – brock
    May 3, 2009 at 0:36
5

I have had good success over the last two years or so using Navicat for MySQL. The UI could use a little updating, but all of the tools and options they provide make the cost justifiable for me.

2
  • Navicat has always worked well for me. It's a little pricey but it works well.
    – A Dent
    Oct 21, 2010 at 16:39
  • It works really well, but is very laggy on my machine (Running the latest MBP as of Oct 2012). Although not a dealbreaker, it's a very annoying feeling to watch every character you type trail behind you by half a second. Oct 3, 2012 at 14:48
3

I use the Navicat clients for MySQL and PostgreSQL and am happy with them. "good" is obviously subjective... how do you judge your DB clients?

3
  • Navicat is fairly good, except is has some quirks like getting listings of every table and field in every database on the server...basically killing MySQL while it's doing that. I don't Navicat myself, but one of the guys I work with does and something he does causes this. May 2, 2009 at 20:16
  • 3
    read the question please! MySQL != MS SQL
    – corydoras
    Sep 26, 2010 at 23:37
  • 1
    Navicat supports SQL Server.
    – vaughan
    Oct 16, 2013 at 14:09
3

I've been using Oracle SQL Developer since the Microsoft software for SQL Server is not currently available on Mac OS X. It works wonders. I would also recommend RazorSQL or SQLGrinder.

3

I use AquaFold at work on Windows, but it's based on Java and supports Mac OS X.

3

I like SQLGrinder.

It's built using Cocoa, so it looks a lot better and feels more like an Mac OS X application than all the Java-based application mentioned here.

It uses JDBC drivers to connect to Microsoft SQL Server 2005, FrontBase, MySQL, OpenBase, Oracle, PostgreSQL, and Sybase.

Free trial or $59.

1
  • 5
    SQLGrinder no longer works with OS X 10.6 and later and is EOL. Aug 30, 2011 at 12:54
3

I've used (DB Solo) and I like it a lot. It's only $99 and comparable to many more expensive tools. It supports Oracle, SQL Server, Sybase, MySQL, PostgreSQL and others.

2

Not sure about open-source, but I've heard good things about http://www.advenio.com/sqlgrinder/ (not tried it, I prefer to write Python scripts to try things out rather than use GUIs;-).

2

When this question was asked, Microsoft's Remote Desktop for OS X had been unsupported for years. It wasn't a Universal Binary, and I found it to be somewhat buggy (I recall that the application will just quit after a failed connection instead of allowing you to alter the connection info and try again).

At the time I recommended the Open Source CoRD, a good RDP client for Mac.

Since then Microsoft Remote Desktop Client for Mac 2 was released.

3
  • 5
    I do realize that this answer is old, but deserves to be updated. Remote Desktop for OS X is supported, and a new version has been released within the last year. It's a Universal Binary, it's lightning fast, and has just about every feature of its Windows counterpart.
    – mmc
    May 20, 2009 at 12:06
  • While this link may answer the question, it is better to include the essential parts of the answer here and provide the link for reference. Link-only answers can become invalid if the linked page changes. Aug 8, 2014 at 20:49
  • @WarrenBurton actually, this answer doesn't answer the question, which was about an OSX SQL Server client, not RDP. Sep 7, 2014 at 20:30
1

I use Eclipse's Database development plugins - like all Java based SQL editors, it works cross platform with any type 4 (ie pure Java) JDBC driver. It's ok for basic stuff (the main failing is it struggles to give transaction control -- auto-commit=true is always set it seems).

Microsoft have a decent JDBC type 4 driver: http://www.microsoft.com/downloads/details.aspx?FamilyId=6D483869-816A-44CB-9787-A866235EFC7C&displaylang=en this can be used with all Java clients / programs on Win/Mac/Lin/etc.

Those people struggling with Java/JDBC on a Mac are presumably trying to use native drivers instead of JDBC ones -- I haven't used (or practically heard of) the ODBC driver bridge in almost 10 years.

0
1

It may not be the best solution if you don't already have it, but FileMaker 11 with the Actual SQL Server ODBC driver (http://www.actualtech.com/product_sqlserver.php) worked nicely for a client of mine today. The ODBC driver is only $29, but FileMaker is $299, which is why you might only consider it if you already have it.

1

This doesn't specifically answer your question, because I'm not sure in any clients exist in Mac OS X, but I generally just Remote Desktop into the server and work through that. Another option is VMware Fusion (which is much better than Parallels in my opinion) + Windows XP + SQL Server Management Studio.

1
  • 1
    There clearly are mac clients seeing as how there is a plethora of other answers listing them.
    – spuder
    Apr 30, 2015 at 15:43
1

I've used Eclipse with the Quantum-DB plugins for that purpose since I was already using Eclipse anyway.

-4

Ed: phpMyAdmin is for MySQL, but the asker needs something for Microsoft SQL Server.

Most solutions that I found involve using an ODBC Driver and then whatever client application you use. For example, Gorilla SQL claims to be able to do that, even though the project seems abandoned.

Most good solutions are either using Remote Desktop or VMware/Parallels.

1
  • 1
    The download link for Gorilla SQL seems to be broken. VersionTracker is using the same link, so that one's broken as well. Hacking the URL seems to show the whole site is down… Know of any working download locations? Sep 16, 2008 at 15:28
-6

Try CoRD and modify what you want directly from the server.

It's open source.

http://cord.sourceforge.net/

1
  • 1
    Remote Desktop is not OP wants.
    – Raptor
    Sep 10, 2012 at 2:52
-10

For MySQL, there is Querious and Sequel Pro. The former costs US$25, and the latter is free. You can find a comparison of them here, and a list of some other Mac OS X MySQL clients here.

Steve

1
  • 9
    User is asking about MSSQL Server. Sep 16, 2010 at 2:30
-11

Since there currently isn't a MS SQL client for Mac OS X, I would, as Modesty has suggested, use Remote Desktop for the Mac.

1
  • 2
    While Remote Desktop is a workaround, there do exist applications which can connect to MSSQL (as you can tell from the other responses). Feb 24, 2015 at 21:23

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