SQL Server Compact Toolbox

If you are using SQL Server Compact Edition (CE), and have not seen this already, the SQL Server Compact Toolbox is a Visual Studio 2010 Pro or higher add-in (for SQL Server CE 3.5/4.0) and standalone app (for 4.0), that adds scripting, import, export, migrate, rename, run script, manage replication and more to your SQL Server Compact Data Connections in VS Server Explorer.

Written by Erik Ejlskov Jensen who’s aptly named blog, Everything SQL Server Compact, contains a wealth of tips, tricks and techniques relating to SQL Server Compact.

The toolbox adds several features to Server Explorer:

Scripting:

  • Script tables, including data, both DDL and DML
  • Script entire schema, optionally with data, from SQL Server Compact and SQL Server 2005/2008 databases
  • Import to SQL Server Compact from a SQL Server 2005/2008 database or a CSV file
  • Migrate from SQL Server Compact to SQL Server and SQL Azure
  • Migrate from SQL Server to SQL Server Compact
  • Create database diff scripts, compare with a SQL Server Compact or even a SQL Server database

Query editing:

  • Basic, free form query execution
  • Editor with syntax colouring
  • Parse SQL scripts
  • Display graphical estimated and actual execution plan
  • Check query duration

Other features:

  • Rename tables
  • Generate detailed DGML files for visualizing table columns and relationships (requires VS 2010 Premium or higher to view)
  • Generate an Entity Data Model (EDMX) in the current project for both 3.5 and 4.0 in any applicable project (WPF, WinForms, Class Library)
  • Remove invalid connection definitions from the Toolbox (and Server Explorer)
  • Create and manage SQL Server Merge Replication subscriptions
  • Data types node with documentation tooltips lists the 18 available data types
  • File version check (for version 2-4)
  • Upgrade version 3.x files to version 4 via the “Add version 4 connection” dialog
  • About dialog with detailed SQL Server Compact version information

Another of his posts, SQL Compact 3rd party tools, lists several 3rd party tools for CE, both commercial and non-commercial.

SQL Server 2008: Query Hash Statistics

Bart Duncan has released a very useful addition to the DataCollector capture/reporting abilities of SQL Server 2008. Query Hash Statistics can do low-overhead query cost monitoring, utilising the query fingerprint and query plan fingerprint (aka query hash/query plan hash) features that were added in SQL Server 2008. Query fingerprints enable you to get the cumulative cost of all executions of a query even if the query is non-parameterized and has different inline literal values for each execution. Previously, the only way to get this type of query performance data was to capture a Profiler trace and run the trace through a post-processing tool.

Once installed, and sufficient data has been collected, you can access the collected information via 2 custom reports.

queryHash1

Perth .NET User Group Meeting: 6pm Thurs, 12th May: Introduction to the .NET Reactive Extensions (Rx) with Lee Campbell and James Miles

Join us at the Perth .NET user group, Thurs May 12th (6pm) where Lee Campbell and James Miles join up to present an Introduction to Rx, aka the .NET Reactive Extensions. Rx is a product from Erik Meijer’s team at Microsoft that allows you to compose asynchronous and event based programs using observable collections and a Linq style syntax.

The presenters will guide you through the background and basics of Rx, and introduce you to the terminology that is peculiar to Rx. James and Lee will compare code written with and without Rx and show case code to demonstrate the power of Rx in the areas of resource management, fluent and familiar Linq syntax, composable nature, testability of asynchronous and concurrent queries, and the and the ability to tame side effects.

  • TOPIC:  Introduction to the .NET Reactive Extensions (Rx) with Lee Campbell and James Miles
  • DATE:   Thursday, May 12th, 6:00pm – 7:30pm
  • VENUE: Enex 100 Seminar Room, Level 3, 100 St Georges Terrace, Perth
  • COST:   Free. All welcome

I’m under strict instructions to ask everyone to come armed with questions about Rx!

Please Note: this talk will start at 6pm (not our usual time of 5:30pm due to the venue’s availability)

Full details here: http://perthdotnet.org/blogs/events/archive/2011/05/07/introduction-to-the-net-reactive-extensions-rx-with-lee-campbell-and-james-miles.aspx

Reminder: Perth .NET User Group: ASP.NET MVC framework with Michael Minutillo

Scott Hanselman is fond of saying that programming components are like Lego pieces and right now “the lego pieces coming out of Microsoft are the right size”. One important piece of the web stack is the ASP.NET MVC framework. Since its initial release in March 2009 there has been a new version of the framework released every year and it has quickly become the platform of choice for .NET developers creating web sites. January 2011 saw the version 3.0 release which introduces a number of changes and new features. Additionally, at the MIX11 conference earlier this month Microsoft released the “MVC3 tools refresh” which make developing MVC3 applications in Visual Studio 2010 a highly productive experience.

Join us at the Perth .NET user group, Thurs May 5th, where we will look at the new Razor View Engine, Unobtrusive Javascript, Integrated Scaffolding, better support for IoC integration. We will also touch on SQL CE 4, NuGet and Entity Framework 4.1 (Magic Unicorns Editions). Come and see the Lego pieces and be inspired by what you can build.

  • TOPIC:  ASP.NET MVC framework with Michael Minutillo
  • DATE:   Thursday, May 5th, 5:30pm – 7:00pm
  • VENUE: Enex 100 Seminar Room, Level 3, 100 St Georges Terrace, Perth
  • COST:   Free. All welcome

Mike Minutillo is .NET software engineer with a B.Sc. in computer science. In 2000, Mike started writing .NET software to fund his university studies and has been an active member of the .NET community ever since. Mike is a regular attendee at the Perth .NET Community of Practice where he has given presentations on new features of C#, ASP.NET MVC and Test-Driven Philosophy. In 2009 he started the Perth ALT.NET user group which meets monthly to discuss software engineering tools and practices in the .NET development space. Mike is co-author of Professional Visual Studio 2010. He maintains a technical blog at http://wolfbyte-net.blogspot.com/ and can be contacted at http://twitter.com/wolfbyte/.

There will be a door prize of a choice of license from JetBrains (one of ReSharper , TeamCity Build Agent, dotTrace Profiler, dotCover , RubyMine, IntelliJ IDEA, PyCharm).