Click here to Skip to main content
15,892,927 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
I am working with Visual Studio 2010 but am confused by the differences and functionality of
mdf "service based database" and sfd "local database. What should I choose as my project
and what is the best way to deploy project with C# in Visual Studio?
Posted
Updated 13-Feb-13 9:34am
v2

1 solution

It depends on the project.
To be short:
SDF: it is the database format of SQL Server Compact edition[^]. This is the embedded edition of sql server. Think about it as a "single-dll" sql server. Thus it will run together with the application that is using it. It is not a service, it is not a real server. But if your database is accessed from a single application (even a web application that is multi-user), this is a good approach, although it has some limitations.
MDF: this is the database format of the "big", real server editions. Indifferent which one you use (from express to datacenter), this is the format. But it depend on many things, which edition you need/can use - one of this things is the amount of money you are willing to pay :). Please see this really short and comprehensive edition comparsion chart: http://www.sqlserverspace.com/sqlservereditioncomparison.html[^], and this if you need more details: http://msdn.microsoft.com/en-us/library/cc645993.aspx[^]
 
Share this answer
 
Comments
saimm 13-Feb-13 16:04pm    
thanx Zoltan..
this is realy helpful to understand...
Zoltán Zörgő 13-Feb-13 16:08pm    
You are welcome
Member 11983421 24-Sep-15 15:01pm    
thank you i got it

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900