本地数据库(.sdf)或基于服务的数据库(.mdf)? [英] local database (.sdf) or service-based database (.mdf)?

查看:126
本文介绍了本地数据库(.sdf)或基于服务的数据库(.mdf)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我只有一个简单的问题..

这两种类型之间的主要区别是什么,哪一种更受欢迎? (或者两者都有自己的好处..?)



另外,如果我使用这两个中的任何一个,我需要在客户计算机上安装什么,旁边。 net framework 3.5所以我的程序会工作...





谢谢前进..

Hi, i have just a simple question..
What is the main difference between this two types, and which one is preferred? (or both has its own benefits..?)

Also, if i use any of this two, what would i need to install to the customer computer, beside .net framework 3.5 so my program would work...


Thanks in forward..

推荐答案

我会重新解释你的问题,你应该何时使用SQL Server Compact(嵌入式editon)和SQL Server Express等。



SQL Server Compact 4.0

单个数据库文件大小限制为4 GB。

使用应用程序运行进程内(嵌入式)。

没有FileStream支持

限制为256并发连接。



SQL Express 2008 R2



单个数据库文件大小限制为10 GB

不包括用户实例方案,它可以用作独立数据库

文件流和CLR支持。

无限制同时连接数。



另外,SQL Server Compact有一定的T-SQL相关限制,MSDN有细节比较



使用方法:



SQL Server Compact版本它的目标是用于手机,PDA的,

平板电脑和桌面应用程序。





SQL Server Express版可以用于两个Web(限制为1 GB的RAM和单CPU)和Windows桌面应用程序。最新版本的SQL Express个人数据库文件限制为10 GB。
I would rephrase your question as when should you use SQL Server Compact (Embedded editon) vs SQL Server Express etc.

SQL Server Compact 4.0
Individual Database file size is limited to 4 GB.
Run in-process (Embedded) with an application.
No FileStream support
Limited to 256 concurrent connection.

SQL Express 2008 R2

Individual Database File size is limited to 10 GB
Excluding user instance scenario it can be used as a standalone database
Filestream and CLR Support.
No limit on number of simultaneous connection.

Also, SQL Server Compact has certain T-SQL related limitation, MSDN has detail comparision

Usage:

SQL Server Compact edition it targeted to be used for mobile phones, PDA's,
Tablet PCs and Desktop applications.


SQL Server Express edition can be used for both Web (Limited to 1 GB of RAM and Single CPU) and Windows Desktop applications. Latest edition of SQL express individual database file is limited to 10 GB.


这个 [ ^ ]是如何在互联网上查找信息。
This[^] is how to find information on the internet.


这篇关于本地数据库(.sdf)或基于服务的数据库(.mdf)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆