简体   繁体   English

如何在 ASP.NET 应用程序中使用 SQL 服务器 CE

[英]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.

相关问题 如何将SQL Server CE用于我的ASP.net MVC成员/授权项目? - How can I use SQL Server CE for my ASP.net MVC membership/authorization project? 无法在Visual Studio 2012的Asp.net中使用SQL Server CE 4.0 - Can't use sql server ce 4.0 in asp.net in visual studio 2012 Nunit,Asp.net MVC 4,Sql Server CE 4,错误提供程序 - Nunit, Asp.net MVC 4, Sql Server CE 4, error provider 我可以使用SQL Server安全性来控制对(数据库优先)ASP.net应用程序的访问吗? 怎么样? - Can I use SQL Server security to control access to my (database first) ASP.net application? How? 如何为ASP.NET MVC默认Web应用程序使用新的SQL Server数据库 - How to use a new SQL Server database for ASP.NET MVC default web application 如何使用Asp.net和SQL Server审核应用程序中的登录? - How to AuditLog in application using Asp.net and SQL Server? 使用SQL Server CE数据库慢速查询的C#/ ASP.NET网站 - C#/ASP.NET Web Site using SQL Server CE Database Slow Query 在ASP.NET 5 Beta 8控制台应用程序中,如何在没有startup.cs的情况下使用EF7并连接到SQL Server? - How to use EF7 and connect to SQL Server without startup.cs in ASP.NET 5 Beta 8 console application? 如何在ASP.NET 5应用程序中使用OWIN - How to use OWIN in asp.net 5 application 如何在ASP.NET应用程序中使用SSL - How to use SSL in ASP.NET application
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM