﻿<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>Newest KB Articles in Databases</title>
    <description>Recent additions to the knowledge base from WinHost</description>
    <link>http://support.winhost.com/KB/c229/databases.aspx</link>
    <dt>Wed, 22 May 2013 04:53:28 GMT</dt>
    <generator>SmarterTrack Enterprise 7.8.4653</generator>
    <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>How to connect to SQL Server using SQL Server Management Studio</title>
      <link>http://support.winhost.com/KB/a1033/how-to-connect-to-sql-server-using-sql-server-management.aspx</link>
      <pubDate>Tue, 27 Mar 2012 23:18:30 GMT</pubDate>
      <guid isPermaLink="false">kbarticle1033</guid>
      <description>Before you attempt to connect, 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;
&lt;br /&gt;
To connect to your SQL database using SQL Server Management Studio, follow the steps listed below: &lt;br /&gt;
&lt;br /&gt;
Open SQL Server Management Studio, the &lt;strong&gt;Connect to Server&lt;/strong&gt; window will open. Select/enter the following:&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; * Server Type: Database Engine&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; * Server Name: [The SQL server name can be found in the &lt;a target="_blank" href="https://cp.winhost.com/"&gt;Control Panel&lt;/a&gt; by navigating to Sites -&amp;gt; MS SQL Manager -&amp;gt; Manage]&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; * Authentication: SQL Server Authentication&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; * Login: [SQL database Login name]&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; * Password: [SQL database Password]&lt;br /&gt;
&lt;br /&gt;
Click &lt;strong&gt;connect&lt;/strong&gt; and you will be connected to the SQL server.&lt;br /&gt;
&lt;br /&gt;
Note:&amp;nbsp; If you are planning to use one of the Contained Database users (SQL 2012 only) to log into your database you will need to specify the database. &lt;br /&gt;
&lt;ul&gt;
    &lt;li&gt;Go to Options/Connection Properties&lt;/li&gt;
    &lt;li&gt;Go to Connect to database and input your database name.&lt;/li&gt;
&lt;/ul&gt;</description>
    </item>
    <item>
      <title>How to change the collation of an MS SQL database</title>
      <link>http://support.winhost.com/KB/a795/how-to-change-the-collation-of-an-ms-sql-database.aspx</link>
      <pubDate>Wed, 31 Mar 2010 18:09:56 GMT</pubDate>
      <guid isPermaLink="false">kbarticle795</guid>
      <description>&lt;p&gt;NOTE: While changing the collation, no users should be connected to
the database. &lt;/p&gt;
&lt;p&gt;In order to successfully change the database collation you will need
to set your database to a single-user mode, change the collation, and
set it back to a multi-user mode. &lt;/p&gt;
&lt;p&gt;You can copy, paste, and run the following T-SQL script to achieve
this:&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;div style="border: 1px solid #7f9db9; overflow: auto; background-color: white; line-height: 100% ! important; font-family: 'courier new'; font-size: 11px;"&gt;
&lt;table cellspacing="0" cellpadding="0" style="width: 99%; margin: 2px 0px; border-collapse: collapse; border-bottom: 0px solid #eeeeee; background-color: #ffffff; border-width: 0px;"&gt;
    &lt;colgroup&gt;&lt;col style="font-family: 'courier new'; font-size: 11px; padding-left: 10px; border-bottom: 1px solid #f7f7f7; white-space: nowrap;" /&gt;
    &lt;/colgroup&gt;
    &lt;tbody&gt;
        &lt;tr&gt;
            &lt;td&gt;&lt;span style="font-size: 11px;"&gt;&lt;/span&gt;&lt;span style="color: blue;"&gt;SELECT&lt;/span&gt;&lt;span style="font-size: 11px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="color: blue;"&gt;name&lt;/span&gt;&lt;span style="font-size: 11px;"&gt;,&amp;nbsp;collation_name&amp;nbsp;&lt;/span&gt;&lt;span style="color: blue;"&gt;FROM&lt;/span&gt;&lt;span style="font-size: 11px;"&gt;&amp;nbsp;sys.databases;&amp;nbsp;&lt;/span&gt;&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td style="background-color: #f7f7f7;"&gt;GO&amp;nbsp;&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td&gt;&lt;span style="color: blue;"&gt;ALTER&lt;/span&gt;&lt;span style="font-size: 11px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="color: blue;"&gt;DATABASE&lt;/span&gt;&lt;span style="font-size: 11px;"&gt;&amp;nbsp;[DatabaseName]&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: blue;"&gt;SET&lt;/span&gt;&lt;span style="font-size: 11px;"&gt;&amp;nbsp;SINGLE_USER&amp;nbsp;&lt;/span&gt;&lt;span style="color: blue;"&gt;WITH&lt;/span&gt;&lt;span style="font-size: 11px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="color: blue;"&gt;ROLLBACK&lt;/span&gt;&lt;span style="font-size: 11px;"&gt;&amp;nbsp;IMMEDIATE;&amp;nbsp;&lt;/span&gt;&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td style="background-color: #f7f7f7;"&gt;GO&amp;nbsp;&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td&gt;&lt;span style="color: blue;"&gt;ALTER&lt;/span&gt;&lt;span style="font-size: 11px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="color: blue;"&gt;DATABASE&lt;/span&gt;&lt;span style="font-size: 11px;"&gt;&amp;nbsp;[DatabaseName]&amp;nbsp;&lt;/span&gt;&lt;span style="color: blue;"&gt;COLLATE&lt;/span&gt;&lt;span style="font-size: 11px;"&gt;&amp;nbsp;CollationName;&amp;nbsp;&lt;/span&gt;&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td style="background-color: #f7f7f7;"&gt;GO&amp;nbsp;&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td&gt;&lt;span style="color: blue;"&gt;ALTER&lt;/span&gt;&lt;span style="font-size: 11px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="color: blue;"&gt;DATABASE&lt;/span&gt;&lt;span style="font-size: 11px;"&gt;&amp;nbsp;[DatabaseName]&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: blue;"&gt;SET&lt;/span&gt;&lt;span style="font-size: 11px;"&gt;&amp;nbsp;MULTI_USER;&amp;nbsp;&lt;/span&gt;&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td style="background-color: #f7f7f7;"&gt;GO&amp;nbsp;&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td&gt;&lt;span style="color: blue;"&gt;SELECT&lt;/span&gt;&lt;span style="font-size: 11px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="color: blue;"&gt;name&lt;/span&gt;&lt;span style="font-size: 11px;"&gt;,&amp;nbsp;collation_name&amp;nbsp;&lt;/span&gt;&lt;span style="color: blue;"&gt;FROM&lt;/span&gt;&lt;span style="font-size: 11px;"&gt;&amp;nbsp;sys.databases;&amp;nbsp;&lt;/span&gt;&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td style="background-color: #f7f7f7;"&gt;GO&amp;nbsp;&lt;/td&gt;
        &lt;/tr&gt;
    &lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p&gt; &lt;/p&gt;
&lt;br /&gt;
Replace DatabaseName with your actual database name and CollationName
with your target collation name. &lt;br /&gt;
&lt;p&gt;The query result window will display the collation names of your
databases before and after the execution of the query. &lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;You can see which collations are available on the server by executing
the following statement:&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 10pt; color: blue;"&gt;
&lt;/span&gt;&lt;/p&gt;
&lt;div style="border: 1px solid #7f9db9; overflow: auto; background-color: white; line-height: 100% ! important; font-family: 'courier new'; font-size: 11px;"&gt;
&lt;table cellspacing="0" cellpadding="0" style="width: 99%; margin: 2px 0px; border-collapse: collapse; border-bottom: 0px solid #eeeeee; background-color: #ffffff; border-width: 0px;"&gt;
    &lt;colgroup&gt;&lt;col style="font-family: 'courier new'; font-size: 11px; padding-left: 10px; border-bottom: 1px solid #f7f7f7; white-space: nowrap;" /&gt;
    &lt;/colgroup&gt;
    &lt;tbody&gt;
        &lt;tr&gt;
            &lt;td&gt;&lt;span style="font-size: 11px;"&gt;&lt;/span&gt;&lt;span style="color: blue;"&gt;SELECT&lt;/span&gt;&lt;span style="font-size: 11px;"&gt;&amp;nbsp;*&amp;nbsp;&lt;/span&gt;&lt;span style="color: blue;"&gt;FROM&lt;/span&gt;&lt;span style="font-size: 11px;"&gt;&amp;nbsp;fn_helpcollations()&amp;nbsp;&lt;/span&gt;&lt;/td&gt;
        &lt;/tr&gt;
    &lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p&gt;&lt;/p&gt;</description>
    </item>
    <item>
      <title>Do you support MS SQL Express databases?</title>
      <link>http://support.winhost.com/KB/a622/do-you-support-ms-sql-express-databases.aspx</link>
      <pubDate>Fri, 14 Aug 2009 22:02:28 GMT</pubDate>
      <guid isPermaLink="false">kbarticle622</guid>
      <description>SQL Express is designed for desktop database development purposes and
is not suitable for a shared hosting environment due to security
and performance issues. &lt;strong&gt;Microsoft does not recommend enabling this
service on shared hosting platforms.&lt;/strong&gt;&amp;nbsp;</description>
    </item>
  </channel>
</rss>