Tuesday, December 14, 2010

Visual Studio Tools for SQL Server Compact 4 now available

The “Microsoft Visual Studio 2010 SP1 Tools for SQL Server Compact 4.0 CTP2” (nice shot name) has just been released. It can be installed from the Web Platform Installer 3.0 or directly from here. UPDATED link points to RTM tools.


After installing the SQL Server Compact 4 tools, you now have the same Server Explorer features that you currently have for SQL Server Compact 3.5 SP2.

Here are the Data Sources available from “Add Connection”:


The Server Explorer tools provides features such as:
Create, Upgrade, Shrink, Repair, Password protect database files.
Define tables, browse/edit/query data, drop tables, manage relationships, manage indexes.

You can read more about the expected release of SQL Server Compact 4 and the related tools here, and there is more information about VS 2010 SP1 here.

My SQL Server Compact Toolbox add-in has also just been updated with release 1.7 to include the new SQL Server Compact 4 Data Sources from Server Explorer. Just to summarize, the Toolbox supplements the Server Explorer tools, and includes the following features:
- Script tables, including data
- Script entire schema, optionally with data, both of SQL Server Compact and SQL Server 2005 or later databases (in SQL Server Compact T-SQL format)
- Import to SQL Server Compact from a SQL Server 2005/2008 database or a CSV file
- Migrate for SQL Server to SQL Server Compact
- Migrate from SQL Server Compact to SQL Server and SQL Azure
- Basic, free form query execution (not constrained like the one in Server Explorer)
- Parse SQL scripts
- Rename tables
- Create database diff scripts
- Display graphical estimated execution plan (with SSMS 2008 or VS 2001 Premium)
- Generate detailed DGML files for visualizing table columns and relationships (requires VS 2010 Premium or higher to view)
- Create and manage Merge Replication subscriptions
- Community driven CodePlex project, open source

UPDATE: The SQL Server Compact team has posted a short blog about the VS Tools.

Thursday, December 2, 2010

[OT] Team Foundation Server 2008 Web Access SP1 on Windows Server 2008 R2 x64 (standalone server)

Despite the fact, that Team Foundation Server 2008 SP1 (TFS 2008) does not support x64 platforms, I managed to get Team Foundation Work Item Only View to run on a Windows Server 2008 R2 x64 machine. I thought I would blog about it to help others facing the same issues I overcame:

This is what I did (no guarantees implied):

In web.config in the WIWA folder, set limitedMode=true.

Then, when I tested the WIWA app, the following error occurred on the Work Item form: Could not load file or assembly  'Microsoft.TeamFoundation.WorkItemTracking.Controls

I installed Sysinternals Process Monitor, and configured the following filter, to only monitor web application file system errors:


I then ran the application, and noticed the following error:


As you may be able to see, the web page attempts to load a Team system DLL from the C:\Program Files folder, where it should have attempted to load it from the C:\Program Files (x86) folder.

My lame fix was to copy all the files in the PrivateAssemblies folder to a corresponding folder (that I created) in C:\Program Files.