views:

3456

answers:

3

I'm desperately looking for SQL Database Publishing wizard. I've download it but it seems to require SQL Server 2005. According to http://blogs.msdn.com/webdevtools/archive/2007/10/15/sql-database-publishing-wizard-is-now-in-visual-studio-orcas.aspx it comes with Visual Studio 2008, but my Visual Studio 2008 Professional doesn't have that menu item.

Any ideas how can I get the SQL Database Publishing wizard working with SQL Server 2008.

+1  A: 

The SQL Database Publishing wizard is in Visual Studio 2008:

  • Step 1: Create a new website by selecting menu File ->New Web Site. Switch to Server Explorer and add a new Data connection and connect to a database. In this case we will use the Northwind database that comes with SQL Express. You should point to the database you want to publish.

  • Step 2: Select Northwind.dbo node in Server explorer and right click to bring up the context menu. In the Context menu you have a “Publish to provider…” option.

Ref.

You should be able point to a database on your local machine, and then automatically create a .SQL script file that contains the setup logic needed to re-create a replica of the database on any remote system – for example an external hosting system. This .SQL script includes everything needed to create the database schema (tables, views, sprocs, triggers, full-text catalogs, roles, rules, etc). You also have the option of populating the new database with the same data contents as your local tables.

Most hosters today support the upload and running of .SQL files to their hosted environments using their admin control panels. So, all you need to do is upload and run the .SQL script generated by the Database Publishing Wizard, and you will have a working database in your hosted environment.

Mitch Wheat
Oh, you need a website project? It doesn't work in other types of projects?
J. Pablo Fernández
The publishing wizard addresses the issue where a developer needs to deploy a local database from his development machine to a hosting environment on a remote machine.
Mitch Wheat
You could craete a temp web site project and then script out your Database.
Mitch Wheat
+1  A: 

I'm having the same problem. I created a New Web Site and added a database connection. I still dont get "Publish to provider" menu item. Can some one help please?

Saman
+5  A: 

I found the solution online. Here is the steps to solve the issue in case any one else having the same problem. Thanks.

  1. Open Control Panel and go to Add or Remove Programs.

  2. Right-click the component 'Microsoft Sql Server Database Publishing Wizard 1.3' (or 'Microsoft Sql Server Database Publishing Wizard 1.2' if this older version was installed due to (b) above), and then click Uninstall. Wait for uninstallation to finish.

  3. Run SqlPubWizInstaller.exe from http://go.microsoft.com/fwlink/?LinkId=119368 to re-install 'Microsoft Sql Server Database Publishing Wizard 1.3'. You can verify that it was installed by looking in Add or Remove Programs.

Saman