﻿<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>Newest KB Articles</title>
    <description>Recent additions to the knowledge base from WinHost</description>
    <link>http://support.winhost.com/KB/browse.aspx</link>
    <dt>Thu, 17 May 2012 10:10:02 GMT</dt>
    <generator>SmarterTrack Enterprise 7.6.4450</generator>
    <item>
      <title>Publishing your SQL 2008 database to the WinHost SQL 2008 Server</title>
      <link>http://support.winhost.com/KB/a1050/publishing-your-sql-2008-database-to-winhost-sql-2008-server.aspx</link>
      <pubDate>Sat, 31 Mar 2012 01:10:26 GMT</pubDate>
      <guid isPermaLink="false">kbarticle1050</guid>
      <description>Note: before you attempt the following, make sure you have created a database in &lt;a target="_blank" href="https://cp.winhost.com/"&gt;Control Panel&lt;/a&gt; using the &lt;a target="_blank" href="https://cp.winhost.com/sites/mssqlmanager.aspx"&gt;MS SQL Manager tool&lt;/a&gt;.&lt;br /&gt;
If you are running SQL 2008 R2, you will not be able to use the Restore
tool in the control panel.&amp;nbsp; However, this procedure is an alternative to
migrate your SQL 2008 R2 database to our SQL 2008 Server.&lt;br /&gt;
&lt;br /&gt;
Required applications:&amp;nbsp; Visual Web Developer 2008 or Visual Studio 2008, and SQL Server 2008 Express (see: &lt;a target="_blank" href="http://www.microsoft.com/express/product/default.aspx"&gt;http://www.microsoft.com/express/product/default.aspx&lt;/a&gt; for downloads).&lt;br /&gt;
&lt;ol&gt;
    &lt;li&gt;Open Visual Web Developer Express 2008 &lt;/li&gt;
    &lt;li&gt;Open Database Explorer (View -&amp;gt; Database Explorer) (in Visual Studio 2008 you will open "Server Explorer"). &lt;/li&gt;
    &lt;li&gt;The Database Explorer should show up on the right side of the IDE. &lt;/li&gt;
    &lt;li&gt;Right click &lt;strong&gt;Data Connections&lt;/strong&gt; and select &lt;strong&gt;Add Connection&lt;/strong&gt;. &lt;/li&gt;
    &lt;li&gt;Enter the server name in the first text box (type the name of your local SQL Server). &lt;/li&gt;
    &lt;li&gt;Type the name of the database in the &lt;strong&gt;database name&lt;/strong&gt; field and click "OK." &lt;/li&gt;
    &lt;li&gt;In Database Explorer you will see your local database.&amp;nbsp; Right click on it and choose &lt;strong&gt;Publish to Provider&lt;/strong&gt;. &lt;/li&gt;
&lt;/ol&gt;
To generate the script that will create the backup of your database follow the steps listed below.&lt;br /&gt;
&lt;ol&gt;
    &lt;li&gt;Click "Next" on the welcome screen of Publishing Wizard. &lt;/li&gt;
    &lt;li&gt;Insure that your database is selected, check &lt;strong&gt;Script all objects&lt;/strong&gt; in the selected database and click "Next." &lt;/li&gt;
    &lt;li&gt;Choose the &lt;strong&gt;Script to file&lt;/strong&gt; option and type the name of the script you will be generating. Click "Next." &lt;/li&gt;
    &lt;li&gt;Leave the default &lt;strong&gt;Publishing Options&lt;/strong&gt; and click "Next." &lt;/li&gt;
    &lt;li&gt;Click "Finish." &lt;/li&gt;
&lt;/ol&gt;
To run the script that will publish your database to our SQL 2008 Server
you will use SQL Server Management Studio Express or SQL Server 2008.&amp;nbsp;
Follow the steps below to publish the database to the WinHost SQL 2008
Server:&lt;br /&gt;
&lt;ol&gt;
    &lt;li&gt;Open your database in SQL Server Management Studio 2008. &lt;/li&gt;
    &lt;li&gt;Click &lt;strong&gt;File/Open/File&lt;/strong&gt; and navigate to the SQL script you just created from your SQL Server. &lt;/li&gt;
    &lt;li&gt;Type the SQL&amp;nbsp;database name provided for you in &lt;a target="_blank" href="https://cp.winhost.com/"&gt;Control Panel&lt;/a&gt; under Site Manager/MS SQL Manager/Manage. &lt;/li&gt;
    &lt;li&gt;Choose &lt;strong&gt;SQL Server Authentication&lt;/strong&gt; in the "Authentication" drop down box. &lt;/li&gt;
    &lt;li&gt;Enter your database login and password from Control Panel (see #3). &lt;/li&gt;
    &lt;li&gt;Once the script is opened, navigate to the very top of the page and type:
    &lt;ul&gt;
        &lt;li&gt;USE [database name] (without the brackets) &lt;/li&gt;
        &lt;li&gt;GO &lt;/li&gt;
    &lt;/ul&gt;
    &lt;/li&gt;
    &lt;li&gt;Click the "Execute" button. &lt;/li&gt;
&lt;/ol&gt;</description>
    </item>
    <item>
      <title>How to transfer your local SQL database to a WinHost SQL database</title>
      <link>http://support.winhost.com/KB/a1049/how-to-transfer-your-local-sql-database-to-winhost.aspx</link>
      <pubDate>Sat, 31 Mar 2012 00:47:26 GMT</pubDate>
      <guid isPermaLink="false">kbarticle1049</guid>
      <description>To transfer your local SQL database to a WinHost database, you will need to:&lt;br /&gt;
&lt;blockquote&gt;
1. Backup your local database with Management Studio&lt;br /&gt;
2. Upload the backup of your database with .BAK extension to your web site via ftp&lt;br /&gt;
3. Use restore tools in WinHost control panel to restore the backup to your WinHost database&lt;br /&gt;
&lt;/blockquote&gt;
Please use &lt;a href="http://msdn.microsoft.com/en-us/library/ms187510.aspx" target="_blank"&gt;Microsoft Book Online&lt;/a&gt; for the instructions on how to backup your local database or see &lt;a href="http://forum.winhost.com/showthread.php?t=7614" target="_blank"&gt;this community forum&lt;/a&gt; post for instructions.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;Important notes:&lt;/strong&gt; &lt;strong&gt;1&lt;/strong&gt;) Microsoft SQL databases cannot
be attached or restored to &lt;strong&gt;previous&lt;/strong&gt; versions of SQL Servers. That means that SQL Server 2008 R2 database can only be attached/restored to R2 (or later), etc. &lt;strong&gt;2&lt;/strong&gt;) SQL 2000 databases cannot be&amp;nbsp;attached/restored to a SQL 2012 database. If you need to attach/restore a SQL 2000 database to SQL 2012, you will first have to convert the SQL 2000 database to SQL 2005 or later. &lt;strong&gt;3&lt;/strong&gt;) Restore backup is available on all WinHost plans, but the attach tool is a premium feature that is only available on the WinHost Ultimate plan.&lt;br /&gt;
&lt;br /&gt;
After you have backed up your local database and uploaded the backup
file with .BAK extension to your web site, please follow the
instructions below to restore the backup to your database on the WinHost
SQL Server:&lt;br /&gt;
&lt;ul&gt;
    &lt;li&gt;&amp;nbsp;Upload the backup file with .bak extension you want to restore to your site via ftp&lt;/li&gt;
    &lt;li&gt;&amp;nbsp;Log in to the WinHost Control Panel at https://cp.winhost.com&lt;/li&gt;
    &lt;li&gt;&amp;nbsp;In the navigation menu click the "Sites" tab&lt;/li&gt;
    &lt;li&gt;&amp;nbsp;In "Your Sites" section click "Manage" link next to the site you'd like to manage&lt;/li&gt;
    &lt;li&gt;&amp;nbsp;In the "Site Tools" section click on "MS SQL Manager" icon&lt;/li&gt;
    &lt;li&gt;&amp;nbsp;Click the "Manage" link next to the database you'd like restore your backup to&lt;/li&gt;
    &lt;li&gt;&amp;nbsp;Click the "Restore" button next to the "Tools" label&lt;/li&gt;
    &lt;li&gt;&amp;nbsp;Click the "Browse" link next to the "Backup File to Restore" text box and locate your backup file on your site&lt;/li&gt;
    &lt;li&gt;&amp;nbsp;When the .bak file is located, click on it and click the "Select" button&lt;/li&gt;
    &lt;li&gt;&amp;nbsp;Click the "Restore Backup" button&lt;/li&gt;
&lt;/ul&gt;</description>
    </item>
    <item>
      <title>Getting started with an MS SQL database</title>
      <link>http://support.winhost.com/KB/a1047/getting-started-with-an-ms-sql-database.aspx</link>
      <pubDate>Sat, 31 Mar 2012 00:04:46 GMT</pubDate>
      <guid isPermaLink="false">kbarticle1047</guid>
      <description>&lt;br /&gt;
1. Access the &lt;a target="_blank" href="https://cp.winhost.com/sites/"&gt;Manage Site Info page&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
2. Click the MS SQL Manager icon.&lt;br /&gt;
&lt;br /&gt;
3. If no database is present, click the "Add" button.&lt;br /&gt;
&lt;br /&gt;
3. Enter the database name and quota assignment and click "Create."</description>
    </item>
    <item>
      <title>I get a "Filegroup is full" error when attempting to run a SQL query</title>
      <link>http://support.winhost.com/KB/a1046/i-get-filegroup-is-full-error-when-attempting-to-run.aspx</link>
      <pubDate>Fri, 30 Mar 2012 23:42:29 GMT</pubDate>
      <guid isPermaLink="false">kbarticle1046</guid>
      <description>When attempting to run an SQL query, an error similar to the following is returned:&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-family: 'courier new';"&gt;Could not allocate space for object 'xxxxx'
in database 'SQL2012_xxxxx_xxx' because the 'PRIMARY' filegroup is full.
The statement has been terminated.&lt;/span&gt; &amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
This error indicates that your database size has exceeded the allocated
amount. To increase the amount of space allocated to your database:&lt;br /&gt;
&lt;ol&gt;
    &lt;li&gt;Go to the &lt;a target="_blank" href="https://cp.winhost.com/sites/mssqlmanager.aspx"&gt;MS SQL tool in Control Panel&lt;/a&gt;&lt;/li&gt;
    &lt;li&gt;Click the "Manage" link for the appropriate database&lt;/li&gt;
    &lt;li&gt;Click "Edit" in the &lt;strong&gt;Assigned Quota&lt;/strong&gt; line&lt;/li&gt;
    &lt;li&gt;Enter a value larger than the&amp;nbsp;&lt;strong&gt;Assigned Quota&lt;/strong&gt; in the &lt;strong&gt;New Quota&lt;/strong&gt; field&lt;/li&gt;
    &lt;li&gt;Click the "Update" button&lt;/li&gt;
&lt;/ol&gt;
&lt;strong&gt;NOTE:&lt;/strong&gt; If you are on the WinHost Basic plan, you have a maximum
database quota of 200mb. In order to use more database space you must
upgrade to he WinHost Max plan, which provides 1000mb of database space
(and up to 10 SQL databases).</description>
    </item>
    <item>
      <title>How do I generate (or restore) a backup of my MS SQL database?</title>
      <link>http://support.winhost.com/KB/a1045/how-do-i-generate-or-restore-a-backup-of-my-ms-sql-database.aspx</link>
      <pubDate>Fri, 30 Mar 2012 23:37:36 GMT</pubDate>
      <guid isPermaLink="false">kbarticle1045</guid>
      <description>You can generate a backup of your database that will be placed into your account and made available for download &lt;a href="http://support.winhost.com/KB/c178/ftp-client-setup.aspx" target="_blank"&gt;via FTP&lt;/a&gt;.
The file created will have a .bak extension, and can be used for
maintaining safety copies of your database or for use in your local
development environment. Note however that the backup files are intended
for restoration to our servers, and &lt;strong&gt;we cannot provide support for using the database backup on your local system&lt;/strong&gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;span style="font-size: 12pt; font-family: arial;"&gt;To create a database backup&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;ol&gt;
    &lt;li&gt;Go to &lt;a href="https://cp.winhost.com/sites/mssqlmanager.aspx" target="_blank"&gt;the MS SQL section in Control Panel&lt;/a&gt; &lt;/li&gt;
    &lt;li&gt;Click the "Manage" link for the database you wish to back up &lt;/li&gt;
    &lt;li&gt;Click the "Backup" link &lt;/li&gt;
&lt;/ol&gt;
&lt;ul&gt;
    &lt;li&gt;The backup file is created in the following format: [DatabaseName]_backup.bak &lt;/li&gt;
    &lt;li&gt;Backup will be placed in the /App_data directory (if /App_data does not exist, it will automatically be created) &lt;/li&gt;
    &lt;li&gt;&lt;strong&gt;The backup process will fail&lt;/strong&gt; if a backup file with the
    same name already exists in the&amp;nbsp;/App_data directory. You must rename or
    download any existing backups before creating a new backup. &lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;span style="font-size: 12pt; font-family: arial;"&gt;&lt;strong&gt;How do I restore a backup file to my WinHost database?&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;
&lt;ul&gt;
    &lt;li&gt;Make sure the backup file is in the /App_data directory &lt;/li&gt;
    &lt;li&gt;and the name is in the following format:
    [DatabaseName]_backup.bak (restoration will fail if you attempt to
    restore a database that does not conform to this naming convention) &lt;/li&gt;
&lt;/ul&gt;
&lt;ol&gt;
    &lt;li&gt;Go to &lt;a href="https://cp.winhost.com/sites/mssqlmanager.aspx" target="_blank"&gt;the MS SQL section in Control Panel&lt;/a&gt; &lt;/li&gt;
    &lt;li&gt;Click the "Manage" link for the database you wish to back up &lt;/li&gt;
    &lt;li&gt;Click the "Restore" link &lt;/li&gt;
&lt;/ol&gt;
&lt;strong&gt;Note that the existing database will be overwritten and all existing data will be replaced!&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
The database restoration tool is intended to be used with backups
generated in Control Panel only. If you create a backup on your local
system and attempt to restore it to the live database the restoration
may fail.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;Attach Database Feature&lt;/strong&gt;&lt;span style="font-size: 14pt;"&gt;&lt;strong&gt;&lt;br /&gt;
&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-size: 9pt; font-family: arial; color: #c00000;"&gt;NOTE: T&lt;span style="font-size: 9pt;"&gt;he Attach Database feature is only available if your account is on the Ultimate plan.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
To use the Attach Database feature please refer to this Knowledge Base article.&lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://support.winhost.com/KB/a1043/attach-database-tool.aspx" target="_blank"&gt;Attach Database Tool&lt;/a&gt;</description>
    </item>
    <item>
      <title>Do you support databases?</title>
      <link>http://support.winhost.com/KB/a1044/do-you-support-databases.aspx</link>
      <pubDate>Fri, 30 Mar 2012 23:22:54 GMT</pubDate>
      <guid isPermaLink="false">kbarticle1044</guid>
      <description>Yes, we support MS SQL 2012, MS SQL 2008 R2, MS SQL 2008, MS Access, and MySQL databases.</description>
    </item>
    <item>
      <title>Attach Database Tool</title>
      <link>http://support.winhost.com/KB/a1043/attach-database-tool.aspx</link>
      <pubDate>Fri, 30 Mar 2012 23:15:22 GMT</pubDate>
      <guid isPermaLink="false">kbarticle1043</guid>
      <description>&lt;span style="color: #c00000;"&gt;&lt;strong&gt;NOTE: The Attach Database Tool is a premium
feature, and only available for sites on the &lt;a href="http://winhost.com/windows-hosting-plans.aspx"&gt;Ultimate plan&lt;/a&gt;.&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
The Attach Database Tool is available in &lt;a href="https://cp.winhost.com/sites/"&gt;Control Panel&lt;/a&gt; on the MS SQL 2008 tab:&lt;br /&gt;
&lt;blockquote&gt;Home &amp;gt;&amp;gt; Sites List &amp;gt;&amp;gt; Site Manager &amp;gt;&amp;gt; MS SQL Manager &amp;gt;&amp;gt; Manage&lt;br /&gt;
&lt;/blockquote&gt;On the &lt;strong&gt;Tools&lt;/strong&gt; line click the &lt;strong&gt;Attach&lt;/strong&gt; link to get started.&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;br /&gt;
The file that you intend to attach to the SQL database must be an MDF
file. Before attaching you must rename your MDF file using the name
specified in the &lt;strong&gt;MDF File to Attach&lt;/strong&gt; line in the attach tool. Then upload the MDF file to the &lt;strong&gt;App_Data&lt;/strong&gt; directory of your site.&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;br /&gt;
&lt;span style="color: #c00000;"&gt;&lt;strong&gt;IMPORTANT NOTE: Any data in the target SQL database will be overwritten when you use the attach tool.&lt;/strong&gt;&lt;/span&gt;</description>
    </item>
  </channel>
</rss>
