﻿<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="https://www.w3.org/2005/Atom">
  <channel>
    <title>Newest KB Articles in MS SQL</title>
    <description>Recent additions to the knowledge base from DiscountASP.NET</description>
    <link>https://kb.discountasp.net/kb/c307/ms-sql.aspx</link>
    <pubDate>Tue, 09 Jun 2026 18:14:47 GMT</pubDate>
    <generator>SmarterTrack Enterprise 100.0.9553</generator>
    <atom:link href="https://kb.discountasp.net/RSS.ashx?catid=307&amp;type=newestkbarticles" rel="self" type="application/rss+xml" />
    <item>
      <title>How to Backup Your MS SQL Database</title>
      <link>https://kb.discountasp.net/kb/a1708/how-to-backup-your-ms-sql-database.aspx</link>
      <pubDate>Sun, 19 Mar 2023 21:50:18 GMT</pubDate>
      <guid isPermaLink="false">kbarticle1708</guid>
      <description>&lt;div&gt;&lt;ol&gt;&lt;li&gt;Log into the &lt;a href="https://my.discountasp.net/" target="_blank"&gt;DiscountASP.NET Control Panel&lt;/a&gt;&lt;/li&gt;&lt;li&gt;On the menu to your left under &lt;strong&gt;Database Management&lt;/strong&gt;, click on the &lt;a href="https://my.discountasp.net/mssql.aspx" target="_blank"&gt;MS SQL Manager&lt;/a&gt; link.&lt;br&gt;&lt;br&gt;&lt;img src="/AvatarHandler.ashx?kbattchid=263" class="fr-fil fr-dib"&gt;&lt;br&gt;&lt;/li&gt;&lt;li&gt;Select your database and then click on the &lt;strong&gt;Manage&lt;/strong&gt; button.&lt;br&gt;&lt;br&gt;&lt;img src="/AvatarHandler.ashx?kbattchid=264" class="fr-fil fr-dib"&gt;&lt;br&gt;&lt;/li&gt;&lt;li&gt;Select the &lt;strong&gt;SQL Tool Suite&lt;/strong&gt; tab, choose either .zip or .bak format, then click on the &lt;strong&gt;Create Backup&lt;/strong&gt; button.&lt;br&gt;&lt;br&gt;&lt;img src="/AvatarHandler.ashx?kbattchid=265" class="fr-fil fr-dib"&gt;&lt;br&gt;&lt;/li&gt;&lt;li&gt;You can either wait a while or check back later.&amp;nbsp;&amp;nbsp;When the backup is complete, it will show &lt;span style="color: green; font-weight: bold;"&gt;Completed&lt;/span&gt; as seen below.&lt;br&gt;&lt;br&gt;&lt;img src="/AvatarHandler.ashx?kbattchid=266" class="fr-fil fr-dib"&gt;&lt;br&gt;If it shows an error instead, you can &lt;a href="https://support.discountasp.net/" target="_blank"&gt;open up a support ticket&lt;/a&gt; to have us help you troubleshoot the issue.&amp;nbsp;&amp;nbsp;Most errors are due to insufficient web disk space.&amp;nbsp;&amp;nbsp;Make sure you have enough free space to hold the backup.&amp;nbsp;&amp;nbsp;A .zip file will consume less space than a .bak file. &amp;nbsp;&amp;nbsp;The database will also automatically be saved to the /_database or /App_Data folder if one or the other exists.&amp;nbsp;&amp;nbsp;If neither exists, the /_database folder will be created for you, and the backup will be placed in there.&lt;/li&gt;&lt;/ol&gt;&lt;br&gt;&lt;div style="background-color: #FFFFED; border: 1px dotted #000000; padding: 20px;"&gt;Did you know that our Website Cloud Backup service can also back up your database? &amp;nbsp;&amp;nbsp;You have full control over backup retention and schedule.&amp;nbsp;&amp;nbsp; &lt;a href="https://my.discountasp.net/addons/backup.aspx" target="_blank"&gt;Automate your backups now with Website Cloud Backup&lt;/a&gt;.&lt;/div&gt;&lt;/div&gt;</description>
    </item>
    <item>
      <title>How to Order a MS SQL Database</title>
      <link>https://kb.discountasp.net/kb/a1696/how-to-order-a-ms-sql-database.aspx</link>
      <pubDate>Sun, 06 Nov 2022 02:26:34 GMT</pubDate>
      <guid isPermaLink="false">kbarticle1696</guid>
      <description>&lt;div&gt;&lt;ol&gt;&lt;li&gt;Log into the &lt;a href="https://my.discountasp.net/" target="_blank"&gt;DiscountASP.NET Control Panel&lt;/a&gt;&lt;/li&gt;&lt;li&gt;On the menu to your left under &lt;strong&gt;Account Management&lt;/strong&gt;, click on the &lt;a href="https://my.discountasp.net/addons/" target="_blank"&gt;Order Addons&lt;/a&gt; link.&lt;br&gt;&lt;br&gt;&lt;img src="/AvatarHandler.ashx?kbattchid=139" class="fr-fic fr-dii"&gt;&lt;br&gt;&lt;br&gt;&lt;/li&gt;&lt;li&gt;On your right, a list of addon features will appear. &amp;nbsp;Scroll down to where it says &lt;strong&gt;MS SQL&lt;/strong&gt;. &amp;nbsp;The version number is to right of it. &amp;nbsp; Click on the &lt;em&gt;Order MS SQL ####: Click Here&lt;/em&gt; link to start the ordering process.&lt;br&gt;&lt;br&gt;&lt;img src="/AvatarHandler.ashx?kbattchid=176" class="fr-fil fr-dib"&gt;&lt;br&gt;&lt;/li&gt;&lt;li&gt;The price is based on the amount of database disk space you want. &amp;nbsp;Select the amount of disk space you want in the dropdown menu, give the database a &lt;strong&gt;name&lt;/strong&gt;, and then click the &lt;em&gt;Add to my Account&lt;/em&gt; button.&lt;br&gt;&lt;br&gt;&lt;img src="/AvatarHandler.ashx?kbattchid=177" class="fr-fil fr-dib"&gt;&lt;br&gt;&lt;/li&gt;&lt;li&gt;In most cases, your database service should be provisioned immediately. &amp;nbsp;If it&amp;#39;s not provisioned after 24 hours, please &lt;a href="https://support.discountasp.net/" target="_blank"&gt;open a support ticket&lt;/a&gt; to have us investigate the issue. &amp;nbsp;After it has been provisioned, click on the &lt;a href="https://my.discountasp.net/mssql.aspx" target="_blank"&gt;MS SQL Manager&lt;/a&gt; link under &lt;strong&gt;Database Management&lt;/strong&gt; to manage your database. &amp;nbsp; It&amp;#39;s on the menu to your left in the Control Panel if you scroll down a bit.&lt;br&gt;&lt;br&gt;&lt;img src="/AvatarHandler.ashx?kbattchid=178" class="fr-fil fr-dib"&gt;&lt;br&gt;&lt;/li&gt;&lt;li&gt;If you have more than 1 database, you will be able to select the one you want to manage in the dropdown menu. &amp;nbsp;Select the database you want to manage and then click on the &lt;em&gt;Manage&lt;/em&gt; button.&lt;br&gt;&lt;br&gt;&lt;img src="/AvatarHandler.ashx?kbattchid=179" class="fr-fil fr-dib"&gt;&lt;br&gt;The Management interface contains your database connection information, allows you to create database users (up to 3), and allows you to backup, restore, attach, shrink, and reset your database. &amp;nbsp;These operations can only be done through the Control Panel and not through SQL Server Management Studio or any other management tool you decide to use as a client.&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div style="background-color: #FFFFED; border: 1px dotted #000000; padding: 20px;"&gt;Did you know that our Website Cloud Backup service can also back up your database? &amp;nbsp;You have full control over backup retention and schedule. &lt;a href="https://my.discountasp.net/addons/backup.aspx" target="_blank"&gt;Automate your backups now with Website Cloud Backup&lt;/a&gt;.&lt;/div&gt;</description>
    </item>
    <item>
      <title>How to Restore an Azure Database (.bacpac file)</title>
      <link>https://kb.discountasp.net/kb/a1687/how-to-restore-an-azure-database-_bacpac-file.aspx</link>
      <pubDate>Sat, 14 May 2022 23:35:44 GMT</pubDate>
      <guid isPermaLink="false">kbarticle1687</guid>
      <description>&lt;div&gt;Azure databases (.bacpac files) cannot be restored from the Control Panel directly. &amp;nbsp;In order to restore your Azure database, you&amp;#39;ll need to perform the restore locally first. &amp;nbsp;Make sure you&amp;#39;ve downloaded and installed the latest version of &lt;a href="https://www.microsoft.com/en-us/sql-server/sql-server-downloads" target="_blank"&gt;SQL Server&lt;/a&gt; and &lt;a href="https://docs.microsoft.com/en-us/sql/ssms/download-sql-server-management-studio-ssms?view=sql-server-ver15" target="_blank"&gt;SQL Server Management Studio&lt;/a&gt;.&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;ol&gt;&lt;li&gt;Launch SQL Server Management Studio and connect to your local SQL Server instance.&lt;/li&gt;&lt;li&gt;In the Object Explorer window, right click on Databases and select Import Data-tier Application...&lt;br&gt;&lt;br&gt;&lt;img src="/AvatarHandler.ashx?kbattchid=149" class="fr-fic fr-dii"&gt;&lt;br&gt;&lt;br&gt;&lt;/li&gt;&lt;li&gt;Follow the wizard to completion.&lt;br&gt;&lt;br&gt;&lt;img src="/AvatarHandler.ashx?kbattchid=147" class="fr-fic fr-dii"&gt;&lt;br&gt;&lt;br&gt;&lt;/li&gt;&lt;li&gt;Once the database has been restored locally, right click on the newly created database, select Tasks and then Back Up... to create a normal SQL backup (.bak file).&lt;br&gt;&lt;br&gt;&lt;img src="/AvatarHandler.ashx?kbattchid=148" class="fr-fic fr-dii"&gt;&lt;br&gt;&lt;br&gt;&lt;/li&gt;&lt;li&gt;Upload the .bak file to your hosting account using an FTP client and then use the Control Panel to perform the restore.&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;div style="background-color: #FFFFED; border: 1px dotted #000000; padding: 20px;"&gt;Did you know that our Website Cloud Backup service can also back up your database? &amp;nbsp;You have full control over backup retention and schedule. &lt;a href="https://my.discountasp.net/addons/backup.aspx" target="_blank"&gt;Automate your backups now with Website Cloud Backup&lt;/a&gt;.&lt;/div&gt;</description>
    </item>
    <item>
      <title>How to Assign Additional SQL Logins to a SQL Database</title>
      <link>https://kb.discountasp.net/kb/a1428/how-to-assign-additional-sql-logins-to-a-sql-database.aspx</link>
      <pubDate>Fri, 10 Jun 2016 22:36:52 GMT</pubDate>
      <guid isPermaLink="false">kbarticle1428</guid>
      <description>&lt;div&gt;How to assign an SQL login to a database:&lt;br&gt;&lt;br&gt;&lt;ol&gt;&lt;li&gt;Use the SQL Login Manager to create a new login in the MS SQL Manager section of the Control Panel.&lt;/li&gt;&lt;li&gt;Connect to the database using SQL Server Management Studio with your primary login (&lt;a href="https://support.discountasp.net/kb/a1426/how-to-configured-sql-server-management-studio-to-connect-to-a-sql-server.aspx" target="_blank"&gt;see this Knowledge Base article&lt;/a&gt;).&lt;/li&gt;&lt;li&gt;In Object Explorer, expand the Databases node.&lt;/li&gt;&lt;li&gt;Locate the database to which you want to add the new SQL Login and expand the node.&lt;/li&gt;&lt;li&gt;Expand the Security Node under your Database node.&lt;/li&gt;&lt;li&gt;Right click on the Users node and select &amp;quot;New User...&amp;quot;&lt;/li&gt;&lt;li&gt;In the Database User Properties&lt;br&gt;&lt;br&gt;&lt;ul&gt;&lt;li&gt;Choose SQL user with login in the User Type drop down box.&lt;/li&gt;&lt;li&gt;Type the username you want to assign to this login in the &amp;quot;User name&amp;quot; text box.&lt;/li&gt;&lt;li&gt;Type the login you want to assign to the database in the &amp;quot;Login name&amp;quot; text box.&lt;/li&gt;&lt;li&gt;Click &amp;#39;Membership&amp;#39; in the &amp;#39;Select page&amp;#39; column.&lt;/li&gt;&lt;li&gt;Choose &amp;#39;db_owner&amp;#39;, for &amp;#39;Role Members&amp;#39;.&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;li&gt;Click OK.&lt;/li&gt;&lt;/ol&gt;&lt;div style="background-color: #FFFFED; border: 1px dotted #000000; padding: 20px;"&gt;Did you know that our Website Cloud Backup service can also back up your database?&amp;nbsp;&amp;nbsp;You have full control over backup retention and schedule. &lt;a href="https://my.discountasp.net/addons/backup.aspx" target="_blank"&gt;Automate your backups now with Website Cloud Backup&lt;/a&gt;.&lt;/div&gt;&lt;/div&gt;</description>
    </item>
    <item>
      <title>How to Configure SQL Server Management Studio to Connect to a SQL Server</title>
      <link>https://kb.discountasp.net/kb/a1426/how-to-configure-sql-server-management-studio-to-connect-to-a-sql-server.aspx</link>
      <pubDate>Fri, 10 Jun 2016 20:04:30 GMT</pubDate>
      <guid isPermaLink="false">kbarticle1426</guid>
      <description>&lt;div&gt;To connect to your SQL database using SQL Server Management Studio, follow the steps listed below.&lt;br&gt;&lt;br&gt;You can find your database information on the Database Manager page of Control Panel.&lt;br&gt;&lt;br&gt;Open SQL Server Management Studio, the &amp;quot;Connect to Server&amp;quot; window will open. &amp;nbsp; Select/enter the following:&lt;br&gt;&lt;br&gt;&lt;ul&gt;&lt;li&gt;Server Type: Database Engine&lt;/li&gt;&lt;li&gt;Server Name: [The SQL server name]&lt;/li&gt;&lt;li&gt;Authentication: SQL Server Authentication&lt;/li&gt;&lt;li&gt;Login: [SQL Login name]&lt;/li&gt;&lt;li&gt;Password: [SQL Password]&lt;/li&gt;&lt;/ul&gt;Click &amp;quot;connect&amp;quot; and you will be connected to the SQL server.&lt;br&gt;&lt;br&gt;Note: You will need to &lt;a href="https://learn.microsoft.com/en-us/sql/ssms/download-sql-server-management-studio-ssms?view=sql-server-ver16" rel="noopener noreferrer" target="_blank"&gt;download and install SQL Server Management Studio&lt;/a&gt; to connect to a SQL database.&lt;br&gt;&lt;br&gt;&lt;div style="background-color: #FFFFED; border: 1px dotted #000000; padding: 20px;"&gt;Did you know that our Website Cloud Backup service can also back up your database? &amp;nbsp;You have full control over backup retention and schedule. &amp;nbsp; &lt;a href="https://my.discountasp.net/addons/backup.aspx" target="_blank"&gt;Automate your backups now with Website Cloud Backup&lt;/a&gt;.&lt;/div&gt;&lt;/div&gt;</description>
    </item>
    <item>
      <title>Changing the Default Database of a MS SQL Database Login</title>
      <link>https://kb.discountasp.net/kb/a1425/changing-the-default-database-of-a-ms-sql-database-login.aspx</link>
      <pubDate>Fri, 10 Jun 2016 20:02:02 GMT</pubDate>
      <guid isPermaLink="false">kbarticle1425</guid>
      <description>&lt;div&gt;How to change the default database on a SQL Server login:&lt;br&gt;&lt;br&gt;&lt;ol&gt;&lt;li&gt;Grant the user with right to the database you want to set as the default database (&lt;a href="https://support.discountasp.net/kb/a1426/how-to-configured-sql-server-management-studio-to-connect-to-a-sql-server.aspx" target="_blank"&gt;see this Knowledge Base article&lt;/a&gt;)&lt;/li&gt;&lt;li&gt;Connect to the database using SQL Server Management Studio with your primary sql login&lt;/li&gt;&lt;li&gt;Click New Query Button&lt;/li&gt;&lt;li&gt;Execute the following command:&lt;/li&gt;&lt;/ol&gt;&lt;pre class="prettyprint"&gt;ALTER LOGIN [login name] WITH DEFAULT_DATABASE = [name of default database]&lt;/pre&gt;&lt;em&gt;Replace [login name] and [name of default database] with the sql login name (primary or secondary) and database name.&lt;/em&gt;&lt;br&gt;&lt;br&gt;&lt;div style="background-color:#FFFFED; border: 1px dotted #000000; padding: 20px;"&gt;Did you know that our Website Cloud Backup service can also back up your database? &amp;nbsp;You have full control over backup retention and schedule. &amp;nbsp; &lt;a href="https://my.discountasp.net/addons/backup.aspx" target="_blank"&gt;Automate your backups now with Website Cloud Backup&lt;/a&gt;.&lt;/div&gt;&lt;/div&gt;</description>
    </item>
    <item>
      <title>Upgrading an MS SQL Database to a Newer Version</title>
      <link>https://kb.discountasp.net/kb/a1366/upgrading-an-ms-sql-database-to-a-newer-version.aspx</link>
      <pubDate>Wed, 15 Jul 2015 02:13:55 GMT</pubDate>
      <guid isPermaLink="false">kbarticle1366</guid>
      <description>&lt;div&gt;When you want to upgrade your SQL database to a newer version, we can migrate the database for you or you can do it yourself. &amp;nbsp;Which option is best for you depends on your needs.&lt;br&gt;&lt;br&gt;&lt;strong&gt;When we migrate a database for you:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;ul&gt;&lt;li&gt;We recommend that you first put your site into maintenance mode.&lt;/li&gt;&lt;li&gt;We will set the database to read only (to insure that no new data can be entered during migration) and make a backup.&lt;/li&gt;&lt;li&gt;Then we will create a new database on the SQL version of your choice and restore the database from the backup.&lt;/li&gt;&lt;li&gt;We will provide you with the new login information (database server name, login, etc.).&lt;/li&gt;&lt;li&gt;You will then update your application connection string to point to the new database server.&lt;/li&gt;&lt;li&gt;We will delete the old database, and the process will be complete.&lt;/li&gt;&lt;/ul&gt;&lt;br&gt;When you migrate a database yourself, you have more control over the process of course, and you can keep both the old and new databases online concurrently during the migration which can be beneficial in certain circumstances.&lt;br&gt;&lt;br&gt;The main drawback to self-migration is the need to order the new database, so you incur an additional cost during migration. &amp;nbsp;Though you can get a credit applied to your account for the time remaining on the old database when you cancel it, you still essentially pay for two databases while both are active.&lt;br&gt;&lt;br&gt;&lt;strong&gt;Typical steps of a self-migration:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;ul&gt;&lt;li&gt;Order a new database on the SQL version of your choice.&lt;/li&gt;&lt;li&gt;Make your old database read only (to insure that no new data can be entered during migration).&lt;/li&gt;&lt;li&gt;Make a backup of the old database and restore it to the new database.&lt;/li&gt;&lt;li&gt;Update your application connection string to point to the new database server.&lt;/li&gt;&lt;li&gt;Contact the billing department to cancel your old database.&lt;/li&gt;&lt;/ul&gt;&lt;br&gt;We are still here to assist you with any help you need, even during a self-migration.&lt;br&gt;&lt;br&gt;&lt;div style="color: red;"&gt;Databases from SQL 2008 and older cannot be directly restored to newer versions of SQL server. &amp;nbsp;And so for those versions in particular we recommend having Support perform the restore / upgrade.&lt;/div&gt;&lt;br&gt;&lt;div style="background-color: #FFFFED; border: 1px dotted #000000; padding: 20px;"&gt;Did you know that our Website Cloud Backup service can also back up your database? &amp;nbsp;You have full control over backup retention and schedule. &lt;a href="https://my.discountasp.net/addons/backup.aspx" target="_blank"&gt;Automate your backups now with Website Cloud Backup&lt;/a&gt;.&lt;/div&gt;&lt;/div&gt;</description>
    </item>
    <item>
      <title>How to Import a CSV File into a Database using SQL Server Management Studio</title>
      <link>https://kb.discountasp.net/kb/a1179/how-to-import-a-csv-file-into-a-database-using-sql-server-management-studio.aspx</link>
      <pubDate>Tue, 05 Nov 2013 19:15:22 GMT</pubDate>
      <guid isPermaLink="false">kbarticle1179</guid>
      <description>&lt;div&gt;While bulk copy and other bulk import options are not available on the SQL servers, you can import a CSV formatted file into your database using SQL Server Management Studio.&lt;br&gt;&lt;br&gt;First, create a table in your database into which you will import the CSV file. &amp;nbsp;&amp;nbsp;After the table is created:&lt;br&gt;&lt;br&gt;&lt;ul&gt;&lt;li&gt;Log in to your database using SQL Server Management Studio.&lt;/li&gt;&lt;li&gt;Right click the database and select &lt;strong&gt;Tasks&lt;/strong&gt; -&amp;gt; &lt;strong&gt;Import Data...&lt;/strong&gt;&lt;/li&gt;&lt;li&gt;Click the &lt;strong&gt;Next &amp;gt;&lt;/strong&gt; button.&lt;/li&gt;&lt;li&gt;For Data Source, select &lt;strong&gt;Flat File Source&lt;/strong&gt;.&amp;nbsp;&amp;nbsp;Then use the &lt;strong&gt;Browse&lt;/strong&gt; button to select the CSV file.&amp;nbsp;&amp;nbsp;Spend some time configuring the data import before clicking the &lt;strong&gt;Next &amp;gt;&lt;/strong&gt; button.&lt;/li&gt;&lt;li&gt;For Destination, select the correct database provider (e.g. for SQL Server 2012, you can use SQL Server Native Client 11.0).&amp;nbsp;&amp;nbsp;Enter the &lt;strong&gt;Server name&lt;/strong&gt;, check &lt;strong&gt;Use SQL Server Authentication&lt;/strong&gt;, enter the &lt;strong&gt;User name&lt;/strong&gt;, &lt;strong&gt;Password&lt;/strong&gt;, and &lt;strong&gt;Database&lt;/strong&gt; before clicking the &lt;strong&gt;Next &amp;gt;&lt;/strong&gt; button.&lt;/li&gt;&lt;li&gt;In the Select Source Tables and Views window, you can &lt;strong&gt;Edit Mappings&lt;/strong&gt; before clicking the &lt;strong&gt;Next &amp;gt;&lt;/strong&gt; button.&lt;/li&gt;&lt;li&gt;Check &lt;strong&gt;Run immediately&lt;/strong&gt; and click the &lt;strong&gt;Next &amp;gt;&lt;/strong&gt; button.&lt;/li&gt;&lt;li&gt;Click the &lt;strong&gt;Finish&lt;/strong&gt; button to run the package.&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;</description>
    </item>
    <item>
      <title>How to Create Contained DB Users</title>
      <link>https://kb.discountasp.net/kb/a1031/how-to-create-contained-db-users.aspx</link>
      <pubDate>Tue, 27 Mar 2012 04:49:17 GMT</pubDate>
      <guid isPermaLink="false">kbarticle1031</guid>
      <description>&lt;div&gt;&lt;strong&gt;These instructions are for MS SQL 2012 and later databases.&lt;/strong&gt;&lt;br&gt;&lt;br&gt;To create contained DB users:&lt;br&gt;&lt;br&gt;&lt;ul&gt;&lt;li&gt;Log in to the SQL server using SQL Server Management Studio. &amp;nbsp;Use your primary SQL DB user.&lt;/li&gt;&lt;li&gt;Click &amp;quot;New Query&amp;quot; and run this SQL command against your database.&lt;/li&gt;&lt;/ul&gt;&lt;pre class="prettyprint"&gt;USE MASTER
GO
ALTER DATABASE [Database Name]
SET SINGLE_USER WITH ROLLBACK IMMEDIATE
GO
ALTER DATABASE [Database Name]
SET CONTAINMENT  = PARTIAL
GO
ALTER DATABASE [Database Name]
SET MULTI_USER
GO&lt;/pre&gt;&lt;br&gt;This will set the database containment type from &amp;quot;None&amp;quot; to &amp;quot;Partial&amp;quot;. &amp;nbsp; By default your database is set to &amp;quot;None.&amp;quot;&lt;br&gt;&lt;br&gt;&lt;ul&gt;&lt;li&gt;Go to the Security folder under your database.&lt;/li&gt;&lt;li&gt;Right click the Security folder and choose &amp;quot;New User...&amp;quot;&lt;/li&gt;&lt;li&gt;Choose &amp;quot;SQL user with a password&amp;quot; for the User Type.&lt;/li&gt;&lt;li&gt;Enter the password for this contained DB User.&lt;/li&gt;&lt;li&gt;On the &amp;quot;Select a page&amp;quot; column click &amp;quot;Membership.&amp;quot;&lt;/li&gt;&lt;li&gt;Click on the db_owner.&lt;/li&gt;&lt;/ul&gt;&lt;br&gt;When logging into the SQL server using SQL Server Management Studio, you will need to ensure that default database connection is set to point to your database. &amp;nbsp;If you leave it in its default state, SQL Server Management Studio will automatically try to authenticate to the Master database which will generate an error.&lt;/div&gt;</description>
    </item>
    <item>
      <title>How to Change the Collation of a SQL Database</title>
      <link>https://kb.discountasp.net/kb/a794/how-to-change-the-collation-of-a-sql-database.aspx</link>
      <pubDate>Tue, 30 Mar 2010 18:22:09 GMT</pubDate>
      <guid isPermaLink="false">kbarticle794</guid>
      <description>&lt;div&gt;&lt;em&gt;Note: While changing the collation, no users should be connected to the database.&lt;/em&gt;&lt;br&gt;&lt;br&gt;In order to successfully change the database collation you will need to set your database to single-user mode, change the collation, and set it back to multi-user mode.&lt;br&gt;&lt;br&gt;You can copy, paste, and run the following T-SQL script to achieve this:&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;pre class="prettyprint"&gt;SELECT name, collation_name FROM sys.databases; 
GO 
ALTER DATABASE [DatabaseName] SET SINGLE_USER WITH ROLLBACK IMMEDIATE; 
GO 
ALTER DATABASE [DatabaseName] COLLATE [CollationName]; 
GO 
ALTER DATABASE [DatabaseName] SET MULTI_USER; 
GO 
SELECT name, collation_name FROM sys.databases; 
GO &lt;/pre&gt;&lt;div&gt;Replace [DatabaseName] with your actual database name and [CollationName] with your target collation name.&lt;br&gt;&lt;br&gt;The query result window will display the collation names of your databases before and after the execution of the query.&lt;br&gt;&lt;br&gt;You can see which collations are available on the server by executing the following statement:&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;pre class="prettyprint"&gt;SELECT * FROM fn_helpcollations()&lt;/pre&gt;&lt;div&gt;&lt;br&gt;&lt;div style="background-color: #FFFFED; border: 1px dotted #000000; padding: 20px;"&gt;Our Website Cloud Backup service can automate your database backups. &amp;nbsp; You have full control over backup retention and schedule. &amp;nbsp; &lt;a href="http://my.discountasp.net/addons/backup.aspx" target="_blank"&gt;DiscountASP.NET Website Cloud Backup&lt;/a&gt; - &lt;a href="https://cp.everleap.com/backup/" target="_blank"&gt;Everleap Website Cloud Backup&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;</description>
    </item>
  </channel>
</rss>