<?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>OpenKB::Server Technical Papers &#187; Uncategorized</title>
	<atom:link href="http://www.openkb.org/category/uncategorized/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.openkb.org</link>
	<description>Computer , server issues and solutions</description>
	<lastBuildDate>Sat, 17 Jul 2010 21:16:22 +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>HTML: Using the alt tag</title>
		<link>http://www.openkb.org/html-using-the-alt-tag/</link>
		<comments>http://www.openkb.org/html-using-the-alt-tag/#comments</comments>
		<pubDate>Sun, 20 Dec 2009 02:00:02 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.openkb.org/?p=694</guid>
		<description><![CDATA[Per the w3c Standards the alt tag is used to serve as content when the element(image) cannot be rendered normally. The means the value define by the alt tag should only display if the image is not available. It was not meant to be used as a tooltip but earlier version of internet explorer ignored [...]]]></description>
			<content:encoded><![CDATA[<p>Per the w3c Standards the alt tag is used to serve as content when the element(image) cannot be rendered normally. The means the value define by the alt tag should only display if the image is not available. It was not meant to be used as a tooltip but earlier version of internet explorer ignored this specification. This standard was adopted in IE 7 and above. This has always been the case with Firefox ,and Opera. if you are looking for a tooltip to pop up then you will need to use the title tag.</p>
<p>  <a href="http://www.w3.org/TR/1999/REC-html401-19991224/struct/objects.html#h-13.8">13.8 How to specify alternate text</a><br />
<a href="http://www.w3.org/TR/1999/REC-html401-19991224/struct/global.html#adef-title">7.4.3 The title attribute</a></p>
<p><a href="http://robertnyman.com/2009/05/07/the-alt-attribute-is-not-for-tooltips/">Tooltips</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.openkb.org/html-using-the-alt-tag/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Paypal Deadline</title>
		<link>http://www.openkb.org/paypal-deadline/</link>
		<comments>http://www.openkb.org/paypal-deadline/#comments</comments>
		<pubDate>Sun, 16 Aug 2009 16:32:05 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.openkb.org/?p=566</guid>
		<description><![CDATA[The Paypal Gateway upgrade deadline is near folks .. More information can be found at >>>>>>>> CF Custom tag to use the latest version can be downloaded from RiaForge]]></description>
			<content:encoded><![CDATA[<p>The Paypal Gateway upgrade deadline is near folks ..<br />
More information can be found at <a href="http://www.openkb.org/security_center/">>>>>>>>></a></p>
<p>CF Custom tag to use the latest version can be downloaded from <a href="http://cf_payflowpro.riaforge.org/">RiaForge</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.openkb.org/paypal-deadline/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SSL: Firefox SSL error sec_error_unknown_issuer</title>
		<link>http://www.openkb.org/ssl-firefox-ssl-error-sec_error_unknown_issuer/</link>
		<comments>http://www.openkb.org/ssl-firefox-ssl-error-sec_error_unknown_issuer/#comments</comments>
		<pubDate>Wed, 04 Feb 2009 22:57:31 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.openkb.org/?p=356</guid>
		<description><![CDATA[Error: sec_error_unknown_issuer I found this error was mostly ocurring under firefox version 3 and the root cert was listed within the browser settings. To resolve this error you must install the root cert on the server. This seems to happen mostly with PositiveSSL&#8217;s from Comodo. Root cert needed: PositiveSSLca.crt from Download Reference: Positive SSL installation [...]]]></description>
			<content:encoded><![CDATA[<p>Error: sec_error_unknown_issuer</p>
<p>I found this error was mostly ocurring under firefox version 3 and the root cert was listed within the browser settings. </p>
<p>To resolve this error you must install the root cert on the server. This seems to happen mostly with PositiveSSL&#8217;s from Comodo. </p>
<p>Root cert needed: PositiveSSLca.crt from<br />
<a href="https://support.comodo.com/index.php?_m=downloads&#038;_a=view&#038;parentcategoryid=4&#038;pcid=1&#038;nav=0,1"> Download </a></p>
<p>Reference:<br />
<a href="https://support.comodo.com/index.php?_m=knowledgebase&#038;_a=viewarticle&#038;kbarticleid=883"> Positive SSL installation </a></p>
<p><a href="http://support.mozilla.com/tiki-view_forum_thread.php?locale=fr&#038;forumId=1&#038;comments_parentId=75478"> Mozilla Reference </a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.openkb.org/ssl-firefox-ssl-error-sec_error_unknown_issuer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Drupal: install blank page</title>
		<link>http://www.openkb.org/drupal-install-blank-page/</link>
		<comments>http://www.openkb.org/drupal-install-blank-page/#comments</comments>
		<pubDate>Sat, 13 Dec 2008 20:23:58 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.openkb.org/?p=296</guid>
		<description><![CDATA[If you receive a blank page during the install of Drupal , you will beed to add the following to the bootstrap.inc files located in /includes/bootstrap.inc ini_set(&#8220;include_path&#8221;,&#8221;.&#8221;); This can be added anywhere in the beginning of the file.    Error log showed:  PHP Fatal error:  require_once() [&#60;a href='function.require'&#62;function.require&#60;/a&#62;]: Failed opening required         [...]]]></description>
			<content:encoded><![CDATA[<p>If you receive a blank page during the install of Drupal , you will beed to add the following to the bootstrap.inc files located in /includes/bootstrap.inc</p>
<p>ini_set(&#8220;include_path&#8221;,&#8221;.&#8221;);</p>
<p>This can be added anywhere in the beginning of the file. </p>
<p> </p>
<p>Error log showed:</p>
<p> PHP Fatal error:  require_once() [&lt;a href='function.require'&gt;function.require&lt;/a&gt;]: Failed opening required                              &#8217;modules/block/block.install&#8217; (include_path=&#8217;.;c:\\php\\includes&#8217;) in /includes/install.inc on line 690, referer: http://xxx.com                       /install.php?profile=default</p>
<div></div>
<div>-Reference : <a href="http://drupal.org/node/223466">Issue Tracker 223466</div>
<p>========<br />
Additional config , Override All needed to be enabled in the apache config for the virtual host.<br />
=========</p>
]]></content:encoded>
			<wfw:commentRss>http://www.openkb.org/drupal-install-blank-page/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Plesk: Stats and other scheduled tasks failed &#8211; 0x8007000d</title>
		<link>http://www.openkb.org/plesk-stats-and-other-scheduled-tasks-failed-0x8007000d/</link>
		<comments>http://www.openkb.org/plesk-stats-and-other-scheduled-tasks-failed-0x8007000d/#comments</comments>
		<pubDate>Wed, 16 Jul 2008 21:51:43 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Plesk]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blog.masadmin1.com/?p=143</guid>
		<description><![CDATA[Error msg General page initialization failed 0x8007000d I think the error occurs because the run as information is missing and the tasks is corrupted. I was not able to find anything on the forums at Plesk for this error. My only fixed was to delete and recreate the tasks. Oh yeah there is one more [...]]]></description>
			<content:encoded><![CDATA[<p>Error msg<br />
General page initialization failed<br />
0x8007000d </p>
<p>I think the error occurs because the run as information is missing and the tasks is corrupted. I was not able to find anything on the forums at Plesk for this error. My only fixed was to delete and recreate the tasks. Oh yeah there is one more problem , i was not able to view the properties for the tasks so i could not see the commands. I add to pull the commands from another working system. i have posted the commands below aliong with the task name. This worked on Plesk version 8.3<br />
All the start in folders should be &#8220;C:\Program Files\SWsoft\Plesk\admin&#8221; and write down your current schedule for the task and reenter it. The task can run as the system user or the admin .<br />
=============<br />
Task :<br />
Plesk Scheduler Task #{0C235029-C1F5-4916-AB08-1C6FEA9CE9EA}<br />
Command to execute</p>
<p>C:\WINDOWS\system32\cmd.exe /c &#8220;&#8221;C:\Program Files\SWsoft\Plesk\admin\bin\runtask.exe&#8221; &#8220;&#8211;application=C:\Program Files\SWsoft\Plesk\admin\bin\php.exe&#8221; &#8220;&#8211;parameters=-q -dauto_prepend_file=\&#8221;\&#8221; -c php.ini \&#8221;C:\Program Files\SWsoft\Plesk\admin\plib\report\autoreport.php\&#8221; &#8211;auto daily&#8221;"</p>
<p>===========<br />
Task :<br />
Plesk Scheduler Task #{7F9CD2FC-8C81-4f3c-AE0B-BB8C9BA560A7}</p>
<p>Command </p>
<p>C:\WINDOWS\system32\cmd.exe /c &#8220;&#8221;C:\Program Files\SWsoft\Plesk\admin\bin\runtask.exe&#8221; &#8220;&#8211;application=C:\Program Files\SWsoft\Plesk\admin\bin\php.exe&#8221; &#8220;&#8211;parameters=-q -dauto_prepend_file=\&#8221;\&#8221; -c php.ini \&#8221;C:\Program Files\SWsoft\Plesk\admin\plib\report\autoreport.php\&#8221; &#8211;auto monthly&#8221;"</p>
<p>==================<br />
Task</p>
<p>Plesk Scheduler Task #{99254CDC-8EA7-49ee-8A49-FC2A169843B7}</p>
<p>Command<br />
C:\WINDOWS\system32\cmd.exe /c &#8220;&#8221;C:\Program Files\SWsoft\Plesk\admin\bin\runtask.exe&#8221; &#8220;&#8211;application=C:\Program Files\SWsoft\Plesk\admin\bin\php.exe&#8221; &#8220;&#8211;parameters=-q -dauto_prepend_file=\&#8221;\&#8221; -c php.ini \&#8221;C:\Program Files\SWsoft\Plesk\admin\plib\report\autoreport.php\&#8221; &#8211;auto weekly&#8221;"<br />
========<br />
Task name &#8211; stats command<br />
Plesk Scheduler Task #ad08f1e5-f9e2-4be7-b4f7-fc8248acf5e8</p>
<p>command<br />
C:\WINDOWS\system32\cmd.exe /c &#8220;&#8221;C:\Program Files\SWsoft\Plesk\admin\bin\runtask.exe&#8221; &#8211;defaultmail &#8220;&#8211;application=C:\Program Files\SWsoft\Plesk\admin\bin\statistics.exe&#8221; &#8220;&#8211;parameters=&#8221;"<br />
==============<br />
Task<br />
Plesk Scheduler Task #C6586631-C086-43FE-9B96-BA28E52FDCD6<br />
Command<br />
C:\WINDOWS\system32\cmd.exe /c &#8220;&#8221;C:\Program Files\SWsoft\Plesk\admin\bin\runtask.exe&#8221; &#8220;&#8211;application=\&#8221;C:\Program Files\SWsoft\Plesk\DrWeb\drwebupw.exe\&#8221;" &#8220;&#8211;parameters= /GO /ST \&#8221;/RPC:\Program Files\SWsoft\Plesk\DrWeb\DrWebUpW.log\&#8221; \&#8221;/DIR:C:\Program Files\SWsoft\Plesk\DrWeb\\\&#8221;"&#8221;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.openkb.org/plesk-stats-and-other-scheduled-tasks-failed-0x8007000d/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Frontpage- Unable to connect &#8211; fp admin</title>
		<link>http://www.openkb.org/frontpage-unable-to-connect-fp-admin/</link>
		<comments>http://www.openkb.org/frontpage-unable-to-connect-fp-admin/#comments</comments>
		<pubDate>Mon, 17 Mar 2008 00:05:33 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blog.masadmin1.com/?p=104</guid>
		<description><![CDATA[First make sure the domain is pointing to the server. or trying using the ip address as such http://ipaddress/_vti_bin/_vti_adm/fpadmdll.dll?page=webadmin.htm always create the fp user within fp admin and not under computer management server admin http://ipaddress:7814/fpadmdll.dll?page=fpadmin.htm the port can be something different depending on the server]]></description>
			<content:encoded><![CDATA[<p>First make sure the domain is pointing to the server.</p>
<p>or trying using the ip address as such</p>
<p>http://ipaddress/_vti_bin/_vti_adm/fpadmdll.dll?page=webadmin.htm</p>
<p>always create the fp user within fp admin and not under computer management</p>
<p>server admin</p>
<p>http://ipaddress:7814/fpadmdll.dll?page=fpadmin.htm</p>
<p>the port can be something different depending on the server</p>
]]></content:encoded>
			<wfw:commentRss>http://www.openkb.org/frontpage-unable-to-connect-fp-admin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Plesk &#8211; set default domain for a given ip</title>
		<link>http://www.openkb.org/plesk-set-default-domain-for-a-given-ip/</link>
		<comments>http://www.openkb.org/plesk-set-default-domain-for-a-given-ip/#comments</comments>
		<pubDate>Sat, 15 Mar 2008 22:00:42 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blog.masadmin1.com/?p=103</guid>
		<description><![CDATA[I. IP ADDRESS MANAGEMENT The IP Address Management function of Plesk enables the administrator of the server to control the available IP Addresses on system network interfaces. This function is designed specifically for servers that have more than one IP address or more than one network interface. Here is how you can access the IP [...]]]></description>
			<content:encoded><![CDATA[<p><font color="#ff9900">I. IP ADDRESS MANAGEMENT<br />
The IP Address Management function of Plesk enables the administrator of the server to control the available IP Addresses on system network interfaces. This function is designed specifically for servers that have more than one IP address or more than one network interface. </font></p>
<p><font color="#ff9900">Here is how you can access the IP Address Management page where you can add and remove IP addresses, refresh the list of IP addresses, and edit the IP address properties:</font></p>
<p><font color="#ff9900">1. Login to your Plesk Control Panel using admin as &#8220;Login&#8221; and your dedicated server password as &#8220;Password&#8221;. </font></p>
<p><font color="#ff9900">2. Click on Server from the navigation bar on the left.</font></p>
<p><font color="#ff9900">3. Click the IP Addresses icon.</font></p>
<p><font color="#ff9900">4. You will now see the list of available IP Addresses on the server.</font></p>
<p><font color="#ff9900">Here is how to set the default domain for a particular IP Address:</font></p>
<p><font color="#ff9900">1. At the IP Address Management page, click the number in the Hosting column of the IP Address you’d like to manage.</font><br />
<font color="#ff9900">2. Select a domain from the list using the respective radio button.</font></p>
<p><font color="#ff9900">3. Finally, click the Set as Default link. </font></p>
]]></content:encoded>
			<wfw:commentRss>http://www.openkb.org/plesk-set-default-domain-for-a-given-ip/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Plesk SOAP Failed , mail server issue SM4 and SM5</title>
		<link>http://www.openkb.org/plesk-soap-failed-mail-server-issue-sm4-and-sm5/</link>
		<comments>http://www.openkb.org/plesk-soap-failed-mail-server-issue-sm4-and-sm5/#comments</comments>
		<pubDate>Sun, 09 Mar 2008 23:24:29 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blog.masadmin1.com/?p=102</guid>
		<description><![CDATA[Unable to delete DSMail service for domain: Unable to remove domain mail: mailmng failed: SOAP failed. Failed in sending message &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;- Debug Info &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;- 0: C:\Program Files\SWsoft\Plesk\admin\plib\common_func.php3:153  psaerror(string &#8216;Unable to delete DSMail service for domain: Unable to remove domain mail: mailmng failed: SOAP failed. Failed in sending message&#8217;) &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; check the component under server and [...]]]></description>
			<content:encoded><![CDATA[<p>Unable to delete DSMail service for domain: Unable to remove domain mail: mailmng failed: SOAP failed. Failed in sending message<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;- Debug Info &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
0: C:\Program Files\SWsoft\Plesk\admin\plib\common_func.php3:153<br />
 psaerror(string &#8216;Unable to delete DSMail service for domain: Unable to remove domain mail: mailmng failed: SOAP failed. Failed in sending message&#8217;)<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
check the component under server and also make sure the service is running<br />
Using host header as mail.domain.com to port 80 to view smartermail webmail panel.</p>
<p>the solution is in proper host headers (duh) assuming as most of you are running multiple web sites/ip.<br />
Make sure the &#8216;Default&#8217; pointer is set to the correct port and the host header value is &#8216;blank&#8217;. Mine got screwy trying different ports.<br />
I am also running SM on iis port 9998 &amp; &#8216;All Unassigned&#8217; now (same as SM server default). Although you can probably choose any port.</p>
<p>incompleted</p>
]]></content:encoded>
			<wfw:commentRss>http://www.openkb.org/plesk-soap-failed-mail-server-issue-sm4-and-sm5/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Plesk httpd.include files for httpd.conf</title>
		<link>http://www.openkb.org/plesk-httpdinclude-files-for-httpdconf/</link>
		<comments>http://www.openkb.org/plesk-httpdinclude-files-for-httpdconf/#comments</comments>
		<pubDate>Mon, 25 Feb 2008 04:17:37 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blog.masadmin1.com/?p=98</guid>
		<description><![CDATA[Customizable httpd.include per domain In Plesk each domain has virtual hosts configuration stored in a separate file: /home/httpd/vhosts/&#60;domain-name&#62;/conf/httpd.include This file is overwritten each time the virtual host configuration is changed, thus any manual alterations made to the file are discarded. To use custom directives or redefine those inserted by Plesk, you need to create the [...]]]></description>
			<content:encoded><![CDATA[<h2 class="title"><span class="title">Customizable httpd.include per domain</span></h2>
<p>In Plesk each domain has virtual hosts configuration stored in a separate file:</p>
<p><strong><tt>/home/httpd/vhosts/&lt;domain-name&gt;/conf/httpd.include</tt></strong></p>
<p>This file is overwritten each time the virtual host configuration is changed, thus any manual alterations made to the file are discarded. To use custom directives or redefine those inserted by Plesk, you need to create the files vhost.conf and/or vhost_ssl.conf with necessary directives in the directory /home/httpd/vhosts/&lt;domain-name&gt;/conf/</p>
<p>If any (or both) of these files exist by the time the main configuration file is generated, Plesk inserts the appropriate directive <strong><tt>Include /home/httpd/vhosts/&lt;domain-name&gt;/conf/vhost.conf</tt></strong> or <strong><tt>Include /home/httpd/vhosts/&lt;domain-name&gt;/conf/vhost_ssl.conf</tt></strong> into the HTTP and/or HTTPS virtual host context respectively.</p>
<p>For security reasons, only root can create the vhost.conf and vhost_ssl.conf files.</p>
<p>For the changes to take effect, you need to run the following: or restart httpd</p>
<p><strong><tt>/usr/local/psa/admin/sbin/websrvmng --reconfigure-vhost --vhost-name=&lt;domain_name&gt;</tt></strong></p>
<p>or windows<br />
In Windows command prompt:<br />
Code:</p>
<p>cd c:\Program Files\SWSoft\Plesk\admin\bin<br />
websrvmng &#8211;reconfigure-vhost &#8211;vhost-name=domain.com</p>
]]></content:encoded>
			<wfw:commentRss>http://www.openkb.org/plesk-httpdinclude-files-for-httpdconf/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>sql server 2000 change ownership of tables</title>
		<link>http://www.openkb.org/sql-server-2000-change-ownership-of-tables/</link>
		<comments>http://www.openkb.org/sql-server-2000-change-ownership-of-tables/#comments</comments>
		<pubDate>Mon, 25 Feb 2008 00:47:02 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blog.masadmin1.com/?p=97</guid>
		<description><![CDATA[DECLARE @old sysname, @new sysname, @sql varchar(1000) SELECT @old = 'OLDUSERNAME' , @new = 'dbo' , @sql = ' IF EXISTS (SELECT NULL FROM INFORMATION_SCHEMA.TABLES WHERE QUOTENAME(TABLE_SCHEMA)+''.''+QUOTENAME(TABLE_NAME) = ''?'' AND TABLE_SCHEMA = ''' + @old + ''' ) EXECUTE sp_changeobjectowner ''?'', ''' + @new + '''' EXECUTE sp_MSforeachtable @sql ====================================== changing stored procs ======================== SELECT [...]]]></description>
			<content:encoded><![CDATA[<pre class="sql">DECLARE @old sysname, @new sysname, @sql varchar<span style="color: #66cc66">(</span><span style="color: #cc66cc">1000</span><span style="color: #66cc66">)</span>

<span style="color: #993333; font-weight: bold">SELECT</span>
  @old = <span style="color: #ff0000">'OLDUSERNAME'</span>
  , @new = <span style="color: #ff0000">'dbo'</span>
  , @sql = <span style="color: #ff0000">'
  IF EXISTS (SELECT NULL FROM INFORMATION_SCHEMA.TABLES
  WHERE
      QUOTENAME(TABLE_SCHEMA)+'</span><span style="color: #ff0000">'.'</span><span style="color: #ff0000">'+QUOTENAME(TABLE_NAME) = '</span><span style="color: #ff0000">'?'</span><span style="color: #ff0000">'
      AND TABLE_SCHEMA = '</span><span style="color: #ff0000">''</span> + @old + <span style="color: #ff0000">''</span><span style="color: #ff0000">'
  )
  EXECUTE sp_changeobjectowner '</span><span style="color: #ff0000">'?'</span><span style="color: #ff0000">', '</span><span style="color: #ff0000">''</span> + @new + <span style="color: #ff0000">''</span><span style="color: #ff0000">''</span>

EXECUTE sp_MSforeachtable @sql</pre>
<pre class="sql">======================================</pre>
<pre class="sql">changing stored procs</pre>
<pre class="sql">========================</pre>
<pre class="sql">
<pre>SELECT 'EXEC(''sp_changeobjectowner @objname = '''''+
  ltrim(u.name) + '.' + ltrim(s.name) + ''''''
  + ', @newowner = dbo'')'
FROM  sysobjects s,
      sysusers u
WHERE s.uid = u.uid
AND   u.name &lt;&gt; 'dbo'
AND   xtype in ('V', 'P', 'U')
AND   u.name not like 'INFORMATION%'
order by s.name</pre>
<pre>This query finds every view, stored procedure and user table in the database not owned by the <strong>dbo</strong> and converts ownership to the dbo. The output looks like this:

<strong><code>EXEC('sp_changeobjectowner @objname = ''lname.Authors'', @newowner = dbo')
EXEC('sp_changeobjectowner @objname = ''lname.BANNER_Ads'', @newowner = dbo')
EXEC('sp_changeobjectowner @objname = ''lname.Comments'', @newowner = dbo')</code></strong>

You can simply copy and paste the EXEC statements into Query Analyzer and run it. This might have been overkill for fifteen objects in my database. At work I deal with a database that has over 6,000 stored procedures and approaches like this are a little more appropriate. Enjoy.</pre>
<pre><a href="http://www.sqlteam.com/article/let-sql-server-write-sql-statements">Reference </a></pre>
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.openkb.org/sql-server-2000-change-ownership-of-tables/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
