<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>my code trip &#187; Management Studio</title>
	<atom:link href="http://mycodetrip.com/tag/ms-sql-server-management-studio-gui/feed/" rel="self" type="application/rss+xml" />
	<link>http://mycodetrip.com</link>
	<description>stories from the information technology highway</description>
	<lastBuildDate>Thu, 01 Jul 2010 04:47:55 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Fix for &#8216;The database principal owns a schema in the database, and cannot be dropped&#8217; Error</title>
		<link>http://mycodetrip.com/2007/03/27/15138-the-database-principal-owns-a-schema-in-the-database-and-cannot-be-dropped_34/</link>
		<comments>http://mycodetrip.com/2007/03/27/15138-the-database-principal-owns-a-schema-in-the-database-and-cannot-be-dropped_34/#comments</comments>
		<pubDate>Wed, 28 Mar 2007 01:30:27 +0000</pubDate>
		<dc:creator>Shiva</dc:creator>
				<category><![CDATA[Tips / HowTos]]></category>
		<category><![CDATA[Bugs And Fixes]]></category>
		<category><![CDATA[Error Solution]]></category>
		<category><![CDATA[Management Studio]]></category>

		<guid isPermaLink="false">http://mycodetrip.com/?p=34</guid>
		<description><![CDATA[A Fix for SQL Server 2005 Error "15138 the database principal owns a schema in the database and cannot be dropped".]]></description>
			<content:encoded><![CDATA[<p>In <strong>SQL Server 2005</strong>, if you try to drop a database user by right-clicking the user name and clicking <strong>Delete</strong>, you   may encounter an error as follows.</p>
<p><span style="font-family: Courier New;">&#8220;The database principal owns a schema in the database, and cannot be dropped. (Microsoft SQL Server, Error: 15138)&#8221; </span></p>
<p><img src="http://img148.imageshack.us/img148/6200/sqlserver2005deleteuserol0.jpg" alt="sql-server-2005-user-cannot-be-dropped-error-image-1" /></p>
<p>The reason for this is that in <strong>SQL Server 2005</strong>, if a user is associated with a Schema, then that user has to be first   replaced by another user in the schema before you can drop the user from the database.</p>
<h2>Fix the Error</h2>
<p>In <strong>SQL Server 2005 Management Studio</strong>, expand the node</p>
<p><strong>Database &gt; <em>yourdatabasename</em> &gt; Security</strong> and then click   <strong>Schemas</strong>. On the right pane, you will see a name value pairs list of the schemas and the corresponding owners.</p>
<p><a title="sql-server-2005-user-cannot-be-dropped-error-image-2" rel="lightbox" href="http://img201.imageshack.us/img201/5012/sqlserver2005deleteuserhw8.jpg"> <img class="left" src="http://img201.imageshack.us/img201/5012/sqlserver2005deleteuserhw8.th.jpg" alt="sql-server-2005-user-cannot-be-dropped-error-image-2" /></a></p>
<p>For one or more of the schemas, you should see the user you are trying to drop listed as the owner.  For each of these schemas, do the following.</p>
<ul>
<li>Right click the schema, and click <strong>Properties</strong>. In the schema owner box, type the name of the schema, ex. in the following, I would type <strong>db_admin</strong> over the   <strong>mynewcommunity_admin.</strong></li>
<li>Click <strong>OK</strong>.</li>
<li>After you do this for all schemas that the user you are trying to drop is the owner of, you should see something like this.     <a title="sql-server-2005-user-cannot-be-dropped-error-image-3" rel="lightbox" href="http://img155.imageshack.us/img155/2284/sqlserver2005deleteuserrz4.jpg"> <img class="right" src="http://img155.imageshack.us/img155/2284/sqlserver2005deleteuserrz4.th.jpg" alt="sql-server-2005-user-cannot-be-dropped-error-image-3" /></a></li>
</ul>
<ul>
<li>Now, if you right click the user and click <strong>Delete</strong>, you should be able to successfully drop the user from the database.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://mycodetrip.com/2007/03/27/15138-the-database-principal-owns-a-schema-in-the-database-and-cannot-be-dropped_34/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Fix for &#8216;No Process is on the Other End of the Pipe&#8217; Error</title>
		<link>http://mycodetrip.com/2006/12/20/fix-no-process-is-on-the-other-end-of-the-pipe-error-2005_48/</link>
		<comments>http://mycodetrip.com/2006/12/20/fix-no-process-is-on-the-other-end-of-the-pipe-error-2005_48/#comments</comments>
		<pubDate>Thu, 21 Dec 2006 02:48:06 +0000</pubDate>
		<dc:creator>Shiva</dc:creator>
				<category><![CDATA[Tips / HowTos]]></category>
		<category><![CDATA[Management Studio]]></category>

		<guid isPermaLink="false">http://mycodetrip.com/?p=48</guid>
		<description><![CDATA[Fix for SQL Server 2005 Error 'No Process is on the Other End of the Pipe']]></description>
			<content:encoded><![CDATA[<p>If you are trying to login to SQL Server 2005 and get an error message that says &#8216;No Process is on the Other End of the Pipe&#8217;, then try the following.</p>
<p>Open up SQL Server Suraface Area Configuration tool by clicking</p>
<p><strong>Start </strong>&gt; <strong>Microsoft SQL Server 2005 </strong>&gt; <strong>Configuration Tools </strong>&gt; <strong>SQL Server Suraface Area Configuration</strong></p>
<p>Click the <strong>Surface Area Configuration for Services and Connections</strong> link at the bottom of the window.</p>
<p>In the <strong>View By Instance</strong> pane on the left, expand the node for the SQL Server that is giving you the error, and click the <strong>Database Engine</strong> &gt; <strong>Service </strong>&gt; <strong>Remote Connections</strong>. <a rel="lightbox" href="http://img117.imageshack.us/img117/9646/sqlserver2005setremotecki6.jpg"><img src="http://theshiva.us/images/blogimages/sql-server-surface-area-config-window_tn.jpg" alt="sql-server-surface-area-config-window" /></a></p>
<p>In the setting for the <strong>Remote Connections</strong>, click the <strong>Local and Remote Connections </strong>option.</p>
<p>Now click the <strong>Using both TCP/IP and named pipes</strong> option and click <strong>OK</strong>.</p>
<p>You will be prompted to restart your Database Server for the changes to take effect. Do that.</p>
<p>Once you restart your Database Server, you should be able to login to the SQL Server database successfully !</p>
]]></content:encoded>
			<wfw:commentRss>http://mycodetrip.com/2006/12/20/fix-no-process-is-on-the-other-end-of-the-pipe-error-2005_48/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
