Quantcast
Channel: Everything SQL Server Compact
Browsing all 160 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

SQL Server Compact Code Snippet of the Week #4 : select rows 50 to 60 from a...

For many scenarios it can be useful to be able to get only a subset of rows fro a long result set. SQL Server Compact version 4.0 adds support for the OFFSET – FETCH keywords, that allows you to...

View Article


Image may be NSFW.
Clik here to view.

Fixing the Entity Framework designer “Generate Database from Model” T4 template

The Entity Framework Designer include a reverse engineer feature called “Generate Database from Model” that enables a “Model first” workflow, and also enable you to persist any model modification in a...

View Article


Image may be NSFW.
Clik here to view.

SQL Server Compact Code Snippet of the Week #5 : rename a table

The SQL Server Compact ADO.NET provider allows you to rename a table name by using the special sp_rename T-SQL “command” (SQL Server Compact does not support stored procedures, but this “command”...

View Article

Image may be NSFW.
Clik here to view.

SQL Server Compact Code Snippet of the Week #6 : list all user tables in a...

This week’s short code snippet shows how to list all the user table objects in a SQL Server Compact database file. Notice that a SQL Server Compact database can also contain a number of system tables,...

View Article

Image may be NSFW.
Clik here to view.

SQL Server Compact Code Snippet of the Week #7 : get the full path to a...

A SQL Server Compact connection string allows you to specify the database name in various ways:Data Source=c:\data\mydb.sdfData Source=mydb.sdfData Source=|DataDirectory|\mydb.sdfBut sometimes you need...

View Article


Image may be NSFW.
Clik here to view.

Fix for Entity Framework poor INSERT performance with SQL Server Compact and...

In this blog post I will describe the steps I took in order to find out why the title above was the case, and how it could be fixed.On Stackoverflow the general opinion was that the reported slowness...

View Article

Image may be NSFW.
Clik here to view.

Some SQL Server Compact Toolbox usage graphs

The anonymously collected usage statistics provide by SmartAssembly in the latest release of the Toolbox also provides some general counters, that may be of general interest. Keep in mind that these...

View Article

Image may be NSFW.
Clik here to view.

SQL Server Compact Code Snippet of the Week #8 : script a database to SQLite

This next instalment switches gears, and will demonstrate a simple usage of my SQL Server Compact scripting API, available on CodePlex.This sample demonstrates how to create a script in SQLite format,...

View Article


Image may be NSFW.
Clik here to view.

SQL Server Compact Code Snippet of the Week #9 : migrate a SQL Compact...

This week’s snippet directly follows the one from previous week, demonstrating my SQL Server Compact scripting API once again.This time I will demonstrate how to migrate a complete SQL Server Compact...

View Article


Image may be NSFW.
Clik here to view.

SQL Server Compact Code Snippet of the Week #10 : generate a CREATE TABLE script

Another entry in the scripting API samples, you will find an overview of getting started with the API here.This weeks entry demonstrates the general pattern for scripting smaller chunks of SQL based on...

View Article

Image may be NSFW.
Clik here to view.

SQL Server Compact Toolbox 3.3–Visual Guide of new features

After more than 170.000 downloads, version 3.3 of my SQL Server Compact Toolbox extension for Visual Studio 2012 and 2010 is now available for download. This blog post is a visual guide to the new...

View Article

Image may be NSFW.
Clik here to view.

WCF Data Services with Windows Phone - bandwidth requirements measured

In connection with testing Synchronization between a SQL Server Compact database on Windows Phone 8 and a SQL Server database (via a WCF Data Services service hosted in IIS), I have done some...

View Article

Image may be NSFW.
Clik here to view.

SQL Server Compact Code Snippet of the Week #11 : detect if SQL Server...

It can sometimes by useful to find out if SQL Server Compact is available on a system, for example in installers and if your application supports several database products. This week’s code snippet...

View Article


Image may be NSFW.
Clik here to view.

Generate a Windows Phone 8 Local Database DataContext from an existing database

Despite my tooling for this having been available for more than 18 months, I have never posted a dedicated blog post for this subject. This post intends to remedy this.The Local Database (a SQL Server...

View Article

Image may be NSFW.
Clik here to view.

SQL Server Compact Code Snippet of the Week #12 : get the SQL Server Compact...

Your app/web site may require a specific build version of the SQL Server Compact runtime, due to dependency on a bug fix, for example. This weeks code snippet will demonstrate how to get that...

View Article


Image may be NSFW.
Clik here to view.

SQL Server Compact Code Snippet of the Week #13 : reseed (reset) an IDENTITY...

A question that keeps re-appearing in the forum is, how can I reseed/reset an IDENTITY column in SQL Server Compact, as no DBCC command is available. You can simply use a special syntax of the ALTER...

View Article

Image may be NSFW.
Clik here to view.

SQL Server Compact Code Snippet of the Week #14 : script all data in a table

Another entry in the scripting API samples, you will find an overview of getting started with the API here.This weeks entry demonstrates the general pattern for scripting smaller chunks of SQL based on...

View Article


Image may be NSFW.
Clik here to view.

SQL Server Compact Code Snippet of the Week #15 : flush data to disk immediately

Under normal operation, SQL Server Compact keeps all pending disk writes in memory, and flushes them to disk at least every 10 seconds. The connection string property to control this is called “Flush...

View Article

Image may be NSFW.
Clik here to view.

INSERTing many rows with Entity Framework 6 beta 1 and SQL Server Compact

In this blog post I will demonstrate a couple of improvements for adding many entities to a Entity Framework based database. You can read more about the beta 1 release here, and Julie Lerman highlights...

View Article

Image may be NSFW.
Clik here to view.

SQL Server Compact Code Snippet of the Week #16 : detect Entity Framework...

This weeks code snippet is prompted by a StackOverflow question, regarding how to detect if the database that was backing an Entity Framework DbContext was SQL Server Compact. My proposed check simply...

View Article
Browsing all 160 articles
Browse latest View live