Click here to Skip to main content
15,868,009 members
Articles / Database Development
Article

How to create Umbraco database on shared hosting.

Rate me:
Please Sign up or sign in to vote.
0.00/5 (No votes)
11 Oct 2013CPOL2 min read 8.3K   2  
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, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
United States United States
The ASP.NET Wiki was started by Scott Hanselman in February of 2008. The idea is that folks spend a lot of time trolling the blogs, googlinglive-searching for answers to common "How To" questions. There's piles of fantastic community-created and MSFT-created content out there, but if it's not found by a search engine and the right combination of keywords, it's often lost.

The ASP.NET Wiki articles moved to CodeProject in October 2013 and will live on, loved, protected and updated by the community.
This is a Collaborative Group

755 members

Comments and Discussions

 
-- There are no messages in this forum --