Like most applications, a database plays a critical role in what I’m working on. Fortunately, two higher-end versions of Visual Studio are supposed to provide a Microsoft security blanket for developing a database, managing and tracking changes to a database, and deploying those changes. (Among other things)
http://www.vitalygorn.com/blog/post/2008/01/Handling-Database-easily-with-Visual-Studio-2008.aspx
Unfortunately, Microsoft left the security blanket for getting these pieces all working on a dirty bus seat in downtown Seattle.
First, you need the Enterprise or Developer edition of Sql Server installed. If you upgrade from a previously installed version and change the instance name be prepared for an rather unhelpful error message.
A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, Error Locating Server/Instance Specified)
http://blog.bitsandpeace.com/post/Error-Creating-Database-Projects-in-Visual-Studio-Team-System-2008.aspx
You’ll receive this error message if you don’t have the correct instance name specified.
Database projects require a connection to a local instance of Microsoft SQL Server 2005 for design-time validation. To perform this operation, you must open the Tools menu, click Options and specify an instance of SQL Server 2005 that is running and to which you can connect in the Database Tools, Design-time Validation Database property page. When that is corrected, you must then refresh or reload the database project.
http://blog.bitsandpeace.com/post/Error-Creating-Database-Projects-in-Visual-Studio-Team-System-2008.aspx
Or if you don’t have the correct version of Sql Server installed.
As it turns out, the error messages were a bit misleading. The actual problem was that I had the wrong edition of SQL Server installed on this machine. I had SQL Server Standard Edition installed, but to create a Database Project from within Visual Studio you must have either the Developer or Enterprise editions of SQL Server 2008 installed.
http://blog.bitsandpeace.com/post/Error-Creating-Database-Projects-in-Visual-Studio-Team-System-2008.aspx
As with all software make sure to install the latest patches.
Although the name “GDR”, which stands for “General Redistribution Release”, implies otherwise, this really is a complete new release, based on a new architecture. We have taken the architectural changes from the Rosario project (Visual Studio Team System 2010) and rolled them forward in time. Rolling forward these changes help us align the GDR release with the upcoming Visual Studio Team System 2010 release and provide numerous new features and extensibility points in this release. If you would compare the GDR release with the “Visual Studio 2005 Team Edition for Database Professionals” or “Visual Studio Team System 2008 Database Edition” you will agree this is a completely new product!
http://www.peterprovost.org/blog/post/Visual-Studio-Team-System-2008-Database-Edition-GDR-RTM.aspx
And oh wait the latest patch just happens to remove that Sql Server requirement! Did I mention that you MUST use Sql Server 2005 if you don’t install this patch? And just ignore the fact that the references below to “SQL Express or SQL Server” should in fact be “SQL Server 2005 Developer or SQL Server 2005 Enterprise”.
Database Edition no longer requires a Design Database. Therefore, it is no longer necessary to install an instance of SQL Express or SQL Server prior to using Database Edition.
http://www.microsoft.com/downloads/details.aspx?FamilyID=bb3ad767-5f69-4db9-b1c9-8f55759846ed&displaylang=en
After all that fun the Validation feature seems to be broken but hopefully I’ll figure that out soon and everything will be downhill from here on out.
Yeah right.