Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p><strong>Is it possible to connect to a SQL Server LocalDB using JDBC?</strong></p> <p>Not with Microsoft's JDBC Driver.</p> <p>The <a href="http://jtds.sourceforge.net">jTDS</a> JDBC driver supports named pipes.</p> <p>Executing SqlLocalDB.exe info MyInstance will get you (along with other info) the instance pipe name such as "np:\.\pipe\LOCALDB#F365A78E\tsql\query".</p> <p><strong>Do you know of a workaround or change in status?</strong></p> <p>Possible workarounds are using alternative JDBC drivers or switching to <a href="http://www.microsoft.com/en-us/download/details.aspx?id=29062">SQL Server 2012 Express</a> instead of LocalDB.</p> <p><strong>Details:</strong></p> <p>The Microsoft JDBC Driver is not compatible with LocalDB.</p> <p>"Unfortunately, the Microsoft JDBC Driver does not support connecting to LocalDB. This happens because LocalDB only supports Named Pipes connections and our current JDBC implementation does not support Named Pipes. One possible work around for your developers is to download and install SQL Express, which and enable its TCP/IP support."</p> <p><a href="http://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/259f11e2-e740-40f8-9b6c-64d015ab4b74/">Luiz Fernando Santos (MSFT) July 06, 2012</a></p> <p>"Unfortunately JDBC driver doesn't support LocalDB at this moment and there is no easy workaround. The team is aware of this missing feature, but filing a connect item is always helpful for DCR tracking and prioritization."</p> <p><a href="http://blogs.msdn.com/b/sqlexpress/archive/2011/07/12/introducing-localdb-a-better-sql-express.aspx#10250447">Krzysztof Kozielczyk - MSFT 22 Dec 2011</a></p> <p>"Do you use SQL Server Express today for local development? Are you working on Windows or another platform? It would be great to hear more about how you would like to use LocalDB with your Java app."</p> <p><a href="http://blogs.msdn.com/b/sqlexpress/archive/2011/07/12/introducing-localdb-a-better-sql-express.aspx#10293706">Shamitha Reddy, Program Manager Microsoft JDBC Driver for SQL Server, Microsoft JDBC Driver Product Team 13 Apr 2012</a></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload