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

后端 未结 7 2053
逝去的感伤
逝去的感伤 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 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.

提交回复
热议问题