After doing a test install of Orchard 1.0, I've decided I want to use regular SQL Server instead of SQLCE. How do I change the provider? And, how do I re-run the database setup?
3 に答える
Best thing to do is to delete all files from under your App_Data folder in Orchard.Web, this way you can start fresh :)
Edit app_data\default\settings.txt.
App_Data \ Sites\Defaultにあるsettings.txtを変更する必要があります。
このファイルでは、接続文字列とプロバイダーは次のようにプレーンテキストとして保存されます。
Name: Default
DataProvider: SqlServer
DataConnectionString: Data Source=server;Initial Catalog=dbname;User Id=username;Password=password;
SqlCe DataProviderを使用している場合、接続文字列はnullになります。それを適切な接続文字列に変更し、DataProviderをSqlServerに変更します。これが正しく変更されると、提供されているSQLServerを使用できるようになります。
SQL CEからデータを移行するために、これらのDBにまだ接続できないため、このVS2010プラグインを使用しました:http://visualstudiogallery.msdn.microsoft.com/0e313dfd-be80-4afb-b5e9- 6e74d369f7a1 /
App_Dataフォルダーを削除すると、より多くの作業が可能になるため、これがお役に立てば幸いです。