<?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>Edwin M SarmientoChanging a SQL Server 2000 login &#8211; Edwin M Sarmiento</title>
	<atom:link href="https://www.edwinmsarmiento.com/changing-a-sql-server-2000-login/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.edwinmsarmiento.com</link>
	<description>Intentional Excellence</description>
	<lastBuildDate>Mon, 13 Apr 2026 21:00:49 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
<site xmlns="com-wordpress:feed-additions:1">84283043</site>		<item>
		<title>Changing a SQL Server 2000 login</title>
		<link>https://www.edwinmsarmiento.com/changing-a-sql-server-2000-login/</link>
		<comments>https://www.edwinmsarmiento.com/changing-a-sql-server-2000-login/#respond</comments>
		<pubDate>Tue, 07 Apr 2009 02:02:00 +0000</pubDate>
		<dc:creator>Edwin M Sarmiento</dc:creator>
				<category><![CDATA[modify SQL Server logins]]></category>
		<category><![CDATA[SQL Server 2000]]></category>
		<guid isPermaLink="false">http://bassplayerdoc.wordpress.com/2009/04/07/changing-a-sql-server-2000-login</guid>

				<description><![CDATA[WARNING: This is not a recommended approach. Use at your own risk While SQL Server 2005 has the ALTER LOGIN statement to change the properties of a SQL Server login account, SQL Server 2000 does not have such a command. Unfortunately, there are cases where you need to simply rename the login due to a [&#8230;]]]></description>
					<content:encoded><![CDATA[<div align="center"><strong><span style="font-size:85%;">WARNING: This is not a recommended approach. Use at your own risk</span></strong></div>
<p><span style="font-family:arial;">While SQL Server 2005 has the <a href="http://msdn.microsoft.com/en-us/library/ms189828(SQL.90).aspx">ALTER LOGIN</a> statement to change the properties of a SQL Server login account, SQL Server 2000 does not have such a command. Unfortunately, there are cases where you need to simply rename the login due to a misspelled name or a change management policy. The proper way to do it in SQL Server 2000 is to create the new login, map the permissions and roles of the existing login that you wish to change to this new login and, then, drop the old login. I wouldn&#8217;t want to go thru that if I only have to rename the login. The only simpler way to do it is to modify the system tables. As I&#8217;ve said, it is not recommended to modify the system tables and/or objects directly so bear in mind that doing this would be at your own risk. This would also require that you torn on allowing ad hoc updates to system tables and turning it off afterwards</span></p>
<p><span style="font-family:Arial;"><span style="font-size:85%;"><span style="color:darkred;">sp_CONFIGURE </span><span style="color:red;">&#8216;ALLOW UPDATES&#8217;</span><span style="color:gray;">, </span><span style="color:black;">1<br />
GO<br />
</span><span style="color:blue;">RECONFIGURE WITH </span><span style="color:black;">OVERRIDE<br />
GO </span></span></span></p>
<p><span style="color:blue;">UPDATE </span><span style="color:black;">db..sysusers<br />
</span><span style="color:blue;">SET </span><span style="color:black;">name</span><span style="color:blue;">=</span><span style="color:red;">&#8216;newLogin&#8217;<br />
</span><span style="color:blue;">WHERE<br />
</span><span style="color:black;">name</span><span style="color:blue;">=</span><span style="color:red;">&#8216;oldLogin&#8217; </span></p>
<p><span style="color:blue;">UPDATE </span><span style="color:black;">master..sysxlogins<br />
</span><span style="color:blue;">SET </span><span style="color:black;">name</span><span style="color:blue;">=</span><span style="color:red;">&#8216;newLogin&#8217;<br />
</span><span style="color:blue;">WHERE<br />
</span><span style="color:black;">name</span><span style="color:blue;">=</span><span style="color:red;">&#8216;oldLogin&#8217; </span></p>
<p><span style="color:darkred;">sp_CONFIGURE </span><span style="color:red;">&#8216;ALLOW UPDATES&#8217;</span><span style="color:gray;">, </span><span style="color:black;">0<br />
GO<br />
</span><span style="color:blue;">RECONFIGURE WITH </span><span style="color:black;">OVERRIDE<br />
GO </span></p>
<p><span style="font-family:arial;">A similar stored procedure is described <a href="http://www.sqlservercentral.com/scripts/Miscellaneous/30178/">here</a></span></p>
<div class="blogger-post-footer"><img decoding="async" src="https://blogger.googleusercontent.com/tracker/92377218009570869-7853894846892751022?l=bassplayerdoc.blogspot.com" alt="" width="1" height="1" /></div>
]]></content:encoded>
			

		<wfw:commentRss>https://www.edwinmsarmiento.com/changing-a-sql-server-2000-login/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
				<post-id xmlns="com-wordpress:feed-additions:1">180</post-id>	</item>
	</channel>
</rss>