<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://weblogs.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Change schema name on Tables and Stored procedures in SQL Server 2005</title><link>http://weblogs.asp.net/steveschofield/archive/2005/12/31/change-schema-name-on-tables-and-stored-procedures-in-sql-server-2005.aspx</link><description>I was trying to change the 'schema' name on an object from 'username' to 'dbo' in SQL Server 2005. The script generates code you have to copy, paste and run on the database. Thanks to the DBA gurus on the sql-sqlsvr-sprocs@sqladvice.com list that provided</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Invalid object name &amp;#8216;umbracoUser&amp;#8217; &amp;raquo; Prolific Notion</title><link>http://weblogs.asp.net/steveschofield/archive/2005/12/31/change-schema-name-on-tables-and-stored-procedures-in-sql-server-2005.aspx#6910160</link><pubDate>Mon, 16 Feb 2009 21:29:40 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6910160</guid><dc:creator>Invalid object name ‘umbracoUser’ » Prolific Notion</dc:creator><author>Invalid object name ‘umbracoUser’ » Prolific Notion</author><description>&lt;p&gt;Pingback from &amp;nbsp;Invalid object name &amp;amp;#8216;umbracoUser&amp;amp;#8217; &amp;amp;raquo; Prolific Notion&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6910160" width="1" height="1"&gt;</description></item><item><title>re: Change schema name on Tables and Stored procedures in SQL Server 2005</title><link>http://weblogs.asp.net/steveschofield/archive/2005/12/31/change-schema-name-on-tables-and-stored-procedures-in-sql-server-2005.aspx#4849927</link><pubDate>Wed, 31 Oct 2007 23:53:16 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:4849927</guid><dc:creator>Michael Khalsa</dc:creator><author>Michael Khalsa</author><description>&lt;p&gt;Super, Great, saved lots of time changing owner for table and sprocs.&lt;/p&gt;
&lt;p&gt;For those who do not quite understand (be sure to change sys.Procedures p&lt;/p&gt;
&lt;p&gt;to sys.Tables p) to get your list of table change statements ready to copy from results pane to a new query window, then execute the whole list at once.&lt;/p&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=4849927" width="1" height="1"&gt;</description></item><item><title>re: Change schema name on Tables and Stored procedures in SQL Server 2005</title><link>http://weblogs.asp.net/steveschofield/archive/2005/12/31/change-schema-name-on-tables-and-stored-procedures-in-sql-server-2005.aspx#4767786</link><pubDate>Fri, 26 Oct 2007 15:08:26 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:4767786</guid><dc:creator>Henrik</dc:creator><author>Henrik</author><description>&lt;p&gt;yeah verry cool. That helps me to save a lot of time. &lt;/p&gt;
&lt;p&gt;Thanks Daniel !!&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=4767786" width="1" height="1"&gt;</description></item><item><title>re: Change schema name on Tables and Stored procedures in SQL Server 2005</title><link>http://weblogs.asp.net/steveschofield/archive/2005/12/31/change-schema-name-on-tables-and-stored-procedures-in-sql-server-2005.aspx#4517839</link><pubDate>Wed, 10 Oct 2007 16:43:47 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:4517839</guid><dc:creator>Daniel T</dc:creator><author>Daniel T</author><description>&lt;p&gt;For tables and views you can use &lt;/p&gt;
&lt;p&gt;SELECT &amp;#39;ALTER SCHEMA NewSchema TRANSFER &amp;#39; + TABLE_SCHEMA + &amp;#39;.&amp;#39; + TABLE_NAME FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA = &amp;#39;OldSchema&amp;#39;&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=4517839" width="1" height="1"&gt;</description></item><item><title>re: Change schema name on Tables and Stored procedures in SQL Server 2005</title><link>http://weblogs.asp.net/steveschofield/archive/2005/12/31/change-schema-name-on-tables-and-stored-procedures-in-sql-server-2005.aspx#4507181</link><pubDate>Tue, 09 Oct 2007 09:32:39 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:4507181</guid><dc:creator>BAT</dc:creator><author>BAT</author><description>&lt;p&gt;Thanks a lot&lt;/p&gt;
&lt;p&gt;U have given a great solution&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=4507181" width="1" height="1"&gt;</description></item><item><title>re: Change schema name on Tables and Stored procedures in SQL Server 2005</title><link>http://weblogs.asp.net/steveschofield/archive/2005/12/31/change-schema-name-on-tables-and-stored-procedures-in-sql-server-2005.aspx#4276924</link><pubDate>Mon, 01 Oct 2007 22:57:13 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:4276924</guid><dc:creator>jn</dc:creator><author>jn</author><description>&lt;p&gt;You can use &amp;quot;ALTER SCHEMA schema_name TRANSFER securable_name&amp;quot;&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=4276924" width="1" height="1"&gt;</description></item><item><title>re: Change schema name on Tables and Stored procedures in SQL Server 2005</title><link>http://weblogs.asp.net/steveschofield/archive/2005/12/31/change-schema-name-on-tables-and-stored-procedures-in-sql-server-2005.aspx#3859931</link><pubDate>Fri, 14 Sep 2007 07:33:35 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:3859931</guid><dc:creator>Raul</dc:creator><author>Raul</author><description>&lt;p&gt;It works perfectly, &lt;/p&gt;
&lt;p&gt;Thanks a ton, but how can we change de function&amp;#39;s schema?&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=3859931" width="1" height="1"&gt;</description></item><item><title>re: Change schema name on Tables and Stored procedures in SQL Server 2005</title><link>http://weblogs.asp.net/steveschofield/archive/2005/12/31/change-schema-name-on-tables-and-stored-procedures-in-sql-server-2005.aspx#3717631</link><pubDate>Mon, 03 Sep 2007 07:57:40 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:3717631</guid><dc:creator>nez</dc:creator><author>nez</author><description>&lt;p&gt;BEAUTIFUL!, thank you very much, save alot time updating a web database.&lt;/p&gt;
&lt;p&gt;CHEERS!&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=3717631" width="1" height="1"&gt;</description></item><item><title>re: Change schema name on Tables and Stored procedures in SQL Server 2005</title><link>http://weblogs.asp.net/steveschofield/archive/2005/12/31/change-schema-name-on-tables-and-stored-procedures-in-sql-server-2005.aspx#2673694</link><pubDate>Mon, 28 May 2007 16:53:25 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:2673694</guid><dc:creator>nix</dc:creator><author>nix</author><description>&lt;p&gt;this worked like a charm, changed tables&amp;#39; schemas perfectly...thanks a ton&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=2673694" width="1" height="1"&gt;</description></item><item><title>re: Change schema name on Tables and Stored procedures in SQL Server 2005</title><link>http://weblogs.asp.net/steveschofield/archive/2005/12/31/change-schema-name-on-tables-and-stored-procedures-in-sql-server-2005.aspx#2170915</link><pubDate>Tue, 03 Apr 2007 14:06:37 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:2170915</guid><dc:creator>Meron</dc:creator><author>Meron</author><description>&lt;p&gt;it would have been more helpful it include a typical sql statement example&lt;/p&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=2170915" width="1" height="1"&gt;</description></item></channel></rss>