简体   繁体   中英

Use sdf database(SQL Server Compact 3.5 database file) without installing Microsoft sql server C#

I want to use a database in my C# program but I don't want other users who want to use my program to have to install a big volume software like Microsoft SQL Server that is more than 2 GB. So, can I use .sdf database (SQL Server Compact 3.5) without Microsoft SQL Server?

When I give my published software to anyone with a normal Windows 7 OS (that most probably does not have Microsoft sql server installed) he should be able to use my software without any requirements. My program is really simple, but involves saving data in a database.

I don't want users to be forced to install Microsoft SQL server !

SQLite may also be an option; http://system.data.sqlite.org/index.html/doc/trunk/www/index.wiki

Used it on a project recently and works really well.

Try the site below, I've found it useful in the past. The subjects referenced there are still valid under Visual Studio 2008 / SQL Server Compact Edition 3.5.

http://arcanecode.com/2008/08/12/getting-started-with-sql-server-compact-edition-35/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM