Click here to Skip to main content
65,938 articles
CodeProject is changing. Read more.
Articles
(untagged)

How to create Umbraco database on shared hosting.

0.00/5 (No votes)
21 Mar 2011 1  
I had to create Umbraco database on my shared hosting (I am using Winhost at the moment) couple of days ago.After checking few examples on

This articles was originally at wiki.asp.net but has now been given a new home on CodeProject. Editing rights for this article has been set at Bronze or above, so please go in and edit and update this article to keep it fresh and relevant.

I had to create Umbraco database on my shared hosting (I am using Winhost at the moment) couple of days ago.

After checking few examples on Umbraco forum, I came up with my own quick solution which works like a charm.

Here is how I do it, hope it will help you to quickly resolve this issue if you face it.

First I created a blank SQL database on my shared hosting. Then:

I have created DB script from VS 2010.

  1. Open Visual Web Developer Express 2010/VS 2010 Pro
  2. Open Database Explorer (View -> Database Explorer) (in Visual Studio 2010 you will open “Server Explorer”).
  3. The Database Explorer should show up on the right side of the IDE.
  4. Right click Data Connections and select Add Connection.
  5. Enter the server name in the first text box (type the name of your local SQL Server).
  6. Type the name of the database in the database name field and click “OK.”
  7. In Database Explorer you will see your local database.  Right click on it and choose Publish to Provider.

Then:

To generate the script that will create the backup of your database follow the steps listed below.

  1. Click “Next” on the welcome screen of Publishing Wizard.
  2. Insure that your database is selected, check Script all objects in the selected database and click “Next.”
  3. Choose the Script to file option and type the name of the script you will be generating. Click “Next.”
  4. Leave the default Publishing Options and click “Next.”
  5. Click “Finish.”

After that:

  1. Open your database in SQL Server Management Studio 2008.
  2. Click File/Open/File and navigate to the SQL script you just created from your SQL Server.
  3. Input your database login and password from Control Panel
  4. Once the script is opened, navigate to the very top of the page and type:
    • USE [database name] (without the brackets)
    • GO
  5. Click the “Execute” button.

It creates all tables exactly the same as you have in your local DB.

Happy coding!

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here