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

对着背影说爱祢 提交于 2019-12-09 03:14:19

问题


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, I'm looking for a JDBC type 4 driver for SQL SERVER 3.5. Can somone point me to a FREE OR open source or trial ware ?

If no JDBC driver, how do MS developers explore a given .SDF file ?

Thank you,

BR,
~A


回答1:


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.




回答2:


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.




回答3:


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.




回答4:


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

http://jtds.sourceforge.net/




回答5:


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.




回答6:


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




回答7:


If you're into linq syntax, you can also use LinqPad. There's a free version that allows exploring the data and editing it. You would pay for autocompletion but you can live without it. I hope this helps.



来源:https://stackoverflow.com/questions/141454/jdbc-driver-for-microsoft-sql-server-cecompact-edition-3-5

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!