jdbc driver for Microsoft SQL Server CE(Compact Edition) 3.5

后端 未结 7 2054
逝去的感伤
逝去的感伤 2021-01-13 01:34

I want to be able to explore the contents of a DB for this version of the DB. I was thinking of using the Squirrel DB client (which needs a JDBC driver).

Therefore,

相关标签:
7条回答
  • 2021-01-13 01:58

    Use SDF Viewer to explore your .SDF database file, can also import/export data, script and work with tables, indexes and foreign keys.

    0 讨论(0)
  • 2021-01-13 02:10

    JDBC driver uses TCP/IP connection. The compact edition most likely cannot listen on TCP/IP port 1433. Compact Edition is meant to be accessed by an application which has loaded the .dlls necessary to talk to it. It's meant for Visual Studio projects.

    You need to uninstall compact edition and install SQL Express 2005/2008 instead. After installation enable the "sa" account, give it a password, enable SQL+NT authentication, and then enable the TCP/IP listener to listen on port 1433 (the default port).

    Then, finally, you can connect with JDBC. Jtds is a JDBC3.0 driver and therefore requires JDK1.6+ . I prefer using the Microsoft 2005 JDBC2.0 driver.

    0 讨论(0)
  • 2021-01-13 02:13

    Try jTDS, it's a free software JDBC driver for SQL Server and Sybase.

    http://jtds.sourceforge.net/

    0 讨论(0)
  • 2021-01-13 02:14

    There is a free program called SQLCeEditor that does it.

    I'd still like a JDBC driver though since that would make it easy to use with Eclipse and Java.

    0 讨论(0)
  • 2021-01-13 02:19

    Have you tried SQL Server Management Studio Express?

    You can access SQL Server Compact 3.5 databases stored on a smart device or on the desktop computer by using SQL Server Management Studio in SQL Server or SQL Server Management Studio Express (SSMSE). http://technet.microsoft.com/en-us/library/ms172037.aspx

    As for the JDBC Driver, you could take a look at this one, provided by Microsoft. I don't know if it works with the Compact Edition or if you already tried it, but I thought it was worth mentioning.

    0 讨论(0)
  • 2021-01-13 02:19

    1- There isn't a JDBC driver and at time of writing, MS has no plans to create one.

    2- There isn't a ODBC driver, so the next obvious answer (JDBC to ODBC bridge) won't help you.

    3- Some JDBC vendors claim to be able to connect to 'any oledb' data source, so that is yoru most likely best bet-- link, but it won't necessarily be free.

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