After more than 470.000 downloads, version 4.5 of my SQL Server Compact & SQLite Toolbox extension for Visual Studio 2010 and later is now available for download and available via Tools/Extensions and Updates in Visual Studio. This blog post is a visual guide to the new features, improvements and bug fixes included in this release, many suggested by users of the tool via the GitHub issue tracker
I have moved the source code and issue tracker to GitHub, and I am planning to move the remaining CodePlex content “soon”. I have also moved the source of the scripting API that the Toolbox uses extensively to the same GitHub repository. As always, and suggestion, bug reports and pull requests are welcome!
New icons
The icons of the extension have all been overhauled, and updated to use the latest VS 2015 icons/images. From users already trying out the latest bits, I have received positive feedback on this visual change.
Query editor toolbar redesign and more
I have also started using Azure AppInsights to track (anonymously) feature usage etc. This revealed (maybe not surprisingly) that the most use feature is the query editor. So for this release, the query editor has received a lot of attention. In addtion to the changes below, the general layout of the editor has been streamlined (no more rounded corners).
The first button is new, and will open a “New Qery” window against the same database file. An options dropdown have been added to expose some of the (maybe overlooked) options that are available for the query editor. Setting these only affects the current query window, use the general settings (which you can reach via the Setting button in the query editor now) to change the “default” value for a setting.
Lets have a quick look at each of the options:
“Show result in Grid”: By default, the query results (from a SELECT statement) will be displayed as text for performance reasons, but you can opt-in to have the results displayed in an Excel like grid instead.
“Show Binary Values in Result”: By default, binary values (from for example “image” or “rowversion” columns) will be displayed a “System.Byte[]”. Enabling this will instead display the actual value as a hexadecimal string – but may affect performance.
“Show null values as NULL”: Until recently, NULL values were displayed as an empty string, not as “NULL”. Disabling this reverts to the old behaviour.
“Ignore DDL errors”: Enabling this (per query window only) feature, allows you to run the database creation scripts generated by the Entity Framework “Generate Database from Model” feature, and ignore errors caused by for example pre-existing tables.
“Use classic (plain) grid”: This will revert to using the “old” grid for grid results – about the “new” grid, see below!
New result grid in query editor
A new grid that allows you to further drill into the results of a query without writing any SQL is now the “default” result grid in the query editor. The grid uses http://wpfextendeddatagrid.codeplex.com/
“Autofilter” :The grid has built in filters, in the example above to filter on invoices for a particular customer (or even set of customers).
“Grouping”: Add columns you want to group by to the surface above the grid. In the example above, Invoices are grouped by Customer Id.
Options now part of Visual Studio options dialog
The options for the Toolbox have finally been integrated in the standard Visual Studio Tools/Options pages.
Improved SQL Server support
SQL Server Connections defined in Server Explorer now appear in the Toolbox, in order to better expose the SQL Server releated features of the Toolbox:
And scripting of a SQLite schema (only) based on a SQL Server database is now possible:
Improvements
A number of smaller improvements are also included in this release:
Improve format of INSERT statements generated by CSV import (to make the more readable)
Added latest System.Data.SQLite version (1.0.99)
Added link to blog post to DataAccess.cs to better explain how to use it.
Support for row-returning SQLite statements beginning with "WITH"
Added "Feedback" button
Using Azure Application Insights for metrics and crash reports
Ability to remove password from password protected SQL Compact file (by leaving password box blank)
Progress messages during export now displayed in Output window
Enable scripting of hierarchyid as varbinary(892)
Now able to script Adventureworks2014 schema and data to both SQL Compact and SQLite without errors
Table Data script (INSERTs) now have "RESEED" command at end always
Option to Opt out of Telemetry added
Bug fixes
In addition to the above improvements and features, and number of bug fixes are included in this release:
API:
Fix bug in SQLMetal.exe detection (on some configurations)
SQLite CREATE TABLE datetime default should be current_timestamp, not GETDATE()
Improved SQLite datetime handling in SELECT and Edit in Grid
User Interface:
CSV export from the SQL editor included one separator too many in the heading
Editor keyboard bugs fixed
Scroll issues in treeview fixed
Autohide of Toolbox bug fixed
Table builder:
Table builder was not scripting default values
Table builder should not script default value for IDENTITY columns
6 comments:
Awesome! I thought this project was dead or out of development. I've been using this toolkit since VS 2010, thank you for the great work, Kudos \O/
Armin: If you use my tools, I would be very grateful for a rating or review here:
https://visualstudiogallery.msdn.microsoft.com/0e313dfd-be80-4afb-b5e9-6e74d369f7a1/view/Reviews
Hi Eric,
Does this toolkit also work for Visual C# 2010 Express Edition? I have been able to get the SQLite to work with coding only but would like the visual components in the designer for the db, etc. for sqlite. I sent you an email from the marketplace where you had answered someones question and gave your email (same topic). You mentioned to email you for info on how to use the Toolkit for VS2010. I hope it also works on the express edition as well. Thanks.
Robert
@Robert: No support for Express - use Community!
What's the status of SQL Server Compact? It's no longer supported, no? Nervous about putting time in on a platform that's going away. Any insight is much appreciated.
@Andy - it (SQLCE 4.0)is supported until 2021 https://support.microsoft.com/en-us/lifecycle/search?alpha=Microsoft%20SQL%20Server%20Compact%204.0 - but yes, it is a dying breed
Post a Comment