Avatar of Kaprice
Kaprice
Flag for United States of America asked on

SQL Server Express vs SQL Server Compact

I've got 17 years' experience with VBA in MS Access. I've got a reasonable level of familiarity with using SQL server as the back end and Access as the front end.

But, I'm pretty knew to Visual Studio and I'm developing my first commercial application in it.

I'm faced with the decision of what DB to use for storing my data: SQL Server Express or SQL Server Compact.

My app will be:

Windows Desktop
Single User
Not likely to handle more than 100,000 records a year
Maybe 2 dozen tables

App will be delivered via download with an option of a shipped DVD.

What are the pros and cons of using each SQL Server version?

And, based on these requirements, can you recommend one clearly above the other?
Visual Basic.NETMicrosoft SQL Server

Avatar of undefined
Last Comment
Kaprice

8/22/2022 - Mon
nepaluz

I'd definitely root for the compact edition (and go for the latest 4.0 since it supports both 32 and 64 bit applications) since your application is a single user.
Not sure about the number of records it can support, butwould think that 100,000 is not large in database terms.Some key features are:
SQL Server Compact Edition supports multiple connections up to the 256 connection limit.
SQL Server Compact Edition supports database files up to 4 GB.
SQL Server Compact Edition database engine does not run as a service
SQL Server Compact Edition is file based, which means that the connection string is a file path to the database (.sdf) file, that consists of seven DLLs that are approximately 1.4 MB.
Some useful links from Microsoft:
Using SQL Server Compact
How to: Deploy a SQL Server Compact Database with an Application
EugeneZ

I hope you are asking for sql server 2008R2 exp edition that can give you more

but as the main idea - please check the details from this article:

Difference Between SQL Server Compact Edition and SQL Server Express edition
http://patelshailesh.com/index.php/difference-between-sql-server-compact-edition-and-sql-server-express-edition
EugeneZ

on top of this - please check
SQL Server 2008R2 Express edition Features:

Features Supported by the Editions of SQL Server 2008 R2
http://msdn.microsoft.com/en-us/library/cc645993.aspx
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck
ASKER CERTIFIED SOLUTION
Aaron Tomosky

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Kaprice

ASKER
SQL Express 2012 is the perfect solution. It supports single file implementation, stored procedures, TSQL, and is lightweight.

Thanks so much!