views:

333

answers:

2

Is there a simple way, without .NET?

I've found some libraries but none for SqlCe 3.5. There is http://sqlcehelper.codeplex.com/ but it's far from done, since a major feature like using a password is not yet implemented. I've looked at the source and it uses OLEdb to handle the database.

The offical Microsoft Northwind example (that is shipped with SQL Compact 3.1, but not with 3.5) also doesn't work, I've tried setting it up with no success.

Actually I don't have a sample working code. Was anyone able to set it up paired with a passworded .sdf? What are the alternatives? Thanks.

+1  A: 

Maybe this article about Express OLE DB Libarary will help you.

flashnik
Since oledb doesn't exist under CE, I doubt it.
ctacke
Well, AFAIK there is an OLE DDB Provider for SQL Server Compact edition 3.5. The provider is called `Microsoft.SQLSERVER.CE.OLEDB.3.5`. [Here][1] you can find an example of connetion string.[1]: http://www.connectionstrings.com/sql-server-2005-ce
flashnik
+1  A: 

Several months ago, I compared certain database implementations for our desktop application. Using SqlCE with native C++ code is awful. If I remember right, some of native examples contains "goto" type jumps, hard to bind data and so on. If you have a choice then use SQLite.

baris_a
Hello,sorry for this, I dropped out from that project, but was still there to implement the SQLite database and it was working great. We had some serious stress and HW fault tests and it was really superb.I reckon it is not good to leave a question unanswered, so I'll tag your post as the answer... :)
Omer Sabic