SQL Server Hosting Toolkit の Database Publishing Wizard (DPW)

For Hosting Customers と For Hosters の二種類提供されています。今回は For Hosting Customers を試します。

 

ダウンロード

http://codeplex.com/sqlhost の For Hosting Customers からダウンロードします。For Hosters ではありません。

The SQL Server Database Publishing Wizard provides a way to publish databases to T-SQL scripts or directly to supporting hosting service providers.
SQL Server Database Publishing Wizard enables the deployment of SQL Server databases into a hosted environment on either a SQL Server 2000 or 2005 server. It generates a single SQL script file which can be used to recreate a database (both schema and data) in a shared hosting environment where the only connectivity to a server is through a web-based control panel with a script execution window. If supported by the hosting service provider, the Database Publishing Wizard can also directly upload databases to servers located at the shared hosting provider.
Optionally, SQL Server Database Publishing Wizard can integrate directly into Visual Studio 2005 and/or Visual Web Developer 2005 allowing easy publishing of databases from within the development environment.

 

インストール

インストール先フォルダ

Visual Studio との統合?

スタートメニューに新しいアイテムが登録されています。手元で試された場合は readme も見といてください。

 

GUI モード

ようこそ

元となるサーバーを選択

データベースを選択

出力先の選択。「スクリプト生成」もしくは「共有ホスティング プロバイダにパブリッシュ」が選べます。

横道にそれて・・・「共有ホスティングにパブリッシュ」を選んだ際に出てくるダイアログ。

パブリッシング オプションの選択

確認

進行状況

pubs データベースをスクリプト化すると 349KB のテキストとなりました。dbo.pub_info テーブルには image 列や text 列があるのですが対応しているように見えます。

 

myLittleAdmin の New Query で流す

エラーが出ます。面倒なので原因追求はしません。

エラーが出たものの、目的は達成している・・・のでしょう。たぶん。

 

RunSQL.aspx

スクリプトを流すサンプルもあります。私は試していませんけど。

 

Visual Studio 2005 との統合

Publish to provider ... という項目が追加されています。