[英]How to use SQL Server CE in an ASP.NET application
I want to create a new application using SQL Server CE in asp.net but I don't know how it is started properly please anybody guide me how can I use this.我想在 asp.net 中使用 SQL 服务器 CE 创建一个新应用程序,但我不知道它是如何正确启动的,请任何人指导我如何使用它。
please help me....请帮我....
Read Scott Guthrie's excellent intro blog post on the topic:阅读 Scott Guthrie 关于该主题的精彩介绍博客文章:
New Embedded Database Support with ASP.NET 新的嵌入式数据库支持 ASP.NET
He talks about how to use the new SQL Server Compact v4 edition that's specifically tailored to be used with ASP.NET applications.他谈到了如何使用专门为与 ASP.NET 应用程序一起使用而设计的新 SQL Server Compact v4 版本。
Because CE is an embedded file-based DB, there is nothing really to start - you just specify the file in the connection string ( see MSDN ).因为 CE 是一个基于文件的嵌入式数据库,所以没有什么可以真正开始- 您只需在连接字符串中指定文件( 请参阅 MSDN )。
EDIT: CE is not supported on web apps until CE 4编辑:CE 4 之前 web 应用程序不支持 CE
However, watch out - while it is easy to deploy, CE might not be the best option for a highly threaded environment like a web-server (it is targetted at clients, really - although server usage is supported).但是,请注意——虽然它很容易部署,但对于像 web 服务器这样的高度线程化的环境,CE可能不是最佳选择(它实际上是针对客户端的——尽管支持服务器使用)。 See here for the TSQL differences , transaction differences , etc
有关TSQL 差异、事务差异等的信息,请参见此处
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.