InfoQ

News

SQL Server Everywhere: the Future of Lightweight Databases

Posted by Jonathan Allen on Sep 08, 2006 12:36 PM

Community
.NET
Topics
Data Access
Tags
SQL Everywhere ,
Database
Jet, the database engine behind Access, is an old and venerable technology. Dating back to 1992, it is the lightweight database of choice for countless Visual Basic programmers. After 14 years, its days are finally numbered. 

The first attempt to replace Jet is the Microsoft SQL Server Desktop Engine (MSDE). As a scaled-down version of SQL Server 2000, it was quite effective. Many small businesses that need more power than Jet but don't want to purchase a full copy of SQL Server are quite happy with it.

Unfortunately MSDE doesn't really replace Jet. MSDE, and its successor SQL Server 2005 Express, are still heavy-weight database engines. The download is large, the installation not entirely automated, and in the end you have a Windows service running in the background. Compare this to Jet, which is essentially a set of DLLs that runs in-process.

So what is a developer who wants a light-weight, file-sharing based database to do? The answer is SQL Server Everywhere (SSEv). Like Jet, it is an in-process, file-sharing based engine. Though it lacks the functionality of SQL Server, it is suitable for small end-user applications that run on the desktop.

SSEv isn't really a variant of SQL Server. Rather, it is based on the SQL Mobile codebase. This means it doesn't have a lot of the functionality of a large scale database. Specifically, it doesn't support views, stored procedures, or triggers. Basically all you get is tables and raw SQL. It does however support transactions, multiple users, and row-level locking. Due the major differences between this and the other SQL Server SKUs, William Vaughn questions the logic behind the name.

SSEv also supports indexes and statistics. This, combined with the fact that it is in-process, should result in really good performance for desktop applications. It may very well replace flat files and XML as a storage mechanism for many applications.

Distribution is much easier with this edition. The DLLs are only 1.4 MB, small enough to put on a floppy disk. And because it doesn't run as a service, SQL Server Everywhere is much harder to target with worms like Slammer. A beneficial side-effect of not having stored procedures is that malicious code cannot be hidden in the file. This makes an SSEv data safer than a Word document. For more information on SSEv, check out Steve Lasker's Web Log.

SSEv is currently available as a community tech preview . It cannot be used in production. SSEv has a built-in limitation preventing web servers from accessing it.
Excellent! by Clinton Begin Posted Sep 10, 2006 10:22 AM
SQL Everywhere Languages by Jonathan Allen Posted Sep 11, 2006 2:54 PM
Sqlite by Eric Schoneveld Posted Sep 10, 2006 11:05 AM
  1. Back to top

    Excellent!

    Sep 10, 2006 10:22 AM by Clinton Begin

    I looked at this the other day, it looks quite good. Finally, an "HSQLDB" for .NET. This will be a great thing to simplify our persistence focused unit tests. But about this... >> Specifically, it doesn't support views, stored procedures, or triggers. ...how is that a bad thing? ;-) Finally, good database design for .NET. ;-) J/K -- I know procs have their place. Views and triggers less so, but fair enough tha they're not there. The funniest thing about "SQL Server Everywhere" is that it's only available in English. So much for "everywhere". ;-) Clinton

  2. Back to top

    Sqlite

    Sep 10, 2006 11:05 AM by Eric Schoneveld

    Sqlite is also an excellent alternative, you can get the ado.net wrapper here. It's even going to include LINQ support, and the dll to use it is only 477k ;). http://sqlite.phxsoftware.com/ And no I am not the author, just a user ;).

  3. Back to top

    SQL Everywhere Languages

    Sep 11, 2006 2:54 PM by Jonathan Allen

    I was able to get some more information from Microsoft.

    We focused the CTP on English just to get it out there. But the final release will be multi-lingual.
    -- Steve Lasker
    These are the languages supported by SSEv 3.1: 1. English 2. German 3. Spanish 4. French 5. Italian 6. Japanese 7. Korean 8. Chinese Traditional 9. Chinese Simplified 10. Russian ? Russian is supported by Yukon but not by Whidbey. This is the only language in which Whidbey and Yukon differs. SSEv 3.1 supports Russian
    -- Ambrish Mishra

Educational Content

Bindings, Platforms, and Innovation

This presentation focuses on the Internet and separating myth from fact, history from the future, and the mundane from the imaginative. Bob Frankston presents a vision of what could and should be.

Orchestrating Long Running Activities with JBoss / JBPM

This article explores the use of JBoss and jBPM to implement design solutions that effectively address the issue of orchestrating long running activities.

Neo4j - The Benefits of Graph Databases

This presentation covers the use of graph databases as an optimal solution for data that is difficult to fit in static tables, rapidly evolving data or data that has a lot of optional attributes.

Realistic about Risk: Software development with Real Options

This session introduces Real Options and shows how it can help in running your project. Real Options is a decision-making process that can be used to manage risk.

Communication Flexibility Using Bindings

This article discusses the use of bindings on services and references (including the instance of non-configured bindings) as the means to implement SCA communications in a Web and SOA environment.

Writing DSLs in Groovy

After a short introduction to DSLs, Scott Davis plays with the keyboard showing how to approach the creation of a DSL by typing working snippets of Groovy code that get executed.

Scaling Agile with C/ALM (Collaborative Application Lifecycle Management)

IBM Rational and InfoQ present, Scaling Agile with C/ALM, an eBook showing organizations how to become “finely tuned software delivery machines” by enabling team integration and scaling.

Concurrent Programming with Microsoft F#

Amanda Laucher presents a real life enterprise application written in F#. She shows actual code snippets, explaining design decisions and suggesting how to use some of the F# constructs.