ASP.NET MVC 4 AllowAnonymous Attribute and Authorize Attribute
Migrate Orchard Database from SQL Server CE to SQL Server using WebMatrix
One of the absolute greatest things about Orchard CMS is that it supports SQL Server Compact Edition ( SQL Server CE ). SQL Server CE is a free database solution for small business websites. With Orchard CMS and SQL Server CE, small businesses can have an affordable website that can run on inexpensive shared hosting in no time.
Even better is that if your Orchard Website outgrows the needs of SQL Server CE, which may not be likely, you can easily migrate SQL Server CE to SQL Server Express or SQL Server. And when we say EASY, we really mean EASY.
In fact, the free Microsoft Web Development Tool, WebMatrix, has a nice wizard that will uprade SQL Server CE to SQL Server. Open your Orchard CMS Website in WebMatrix and literally just click on the Migrate Button to transfer your Orchard CMS Database from SQL Server CE to SQL Server. Provide the name of the server, any SQL Server Logon Credentials, and then watch WebMatrix upgrade your Orchard Database to full-fledged SQL Server.

Of course WebMatrix won't automatically update your Orchard Website to use the new SQL Server Database. Once you update your Orchard Database to SQL Server, you will need to properly configure your Orchard Website to use the new database. If you are not an Orchard Web Developer, I recommend you hire an Orchard Website Developer and have them backup your existing Orchard database, migrate the existing Orchard Database to SQL Server, and then properly configure Orchard to use the new database.
Although I expect that WebMatrix will easily convert to SQL Server CE to SQL Server nine out of ten times without any problems, we have encountered problems during the migration that has caused WebMatrix to unexpectedly quit due to an unknown error. Although we haven't experienced it yet, you could experience database corruption or worse due to an unexpected problem, so always backup your existing Orchard database first.
The key here is that you can start with a free database like SQL Server CE for your Orchard Website and then easily migrate later if you need the services of SQL Server! The Microsoft WebMatrix Developer Tool is just one way to migrate your existing SQL Server CE Database to SQL Server.
If you need help, please contact us.


