Question

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

Was it helpful?

Solution

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.

OTHER TIPS

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

http://jtds.sourceforge.net/

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.

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.

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.

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

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top