<?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 SarmientoWSUS database &#8211; Edwin M Sarmiento</title>
	<atom:link href="https://www.edwinmsarmiento.com/category/wsus-database/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>Windows Update Explained</title>
		<link>https://www.edwinmsarmiento.com/windows-update-explained/</link>
		<comments>https://www.edwinmsarmiento.com/windows-update-explained/#respond</comments>
		<pubDate>Thu, 09 Oct 2008 04:47:00 +0000</pubDate>
		<dc:creator>Edwin M Sarmiento</dc:creator>
				<category><![CDATA[patch management]]></category>
		<category><![CDATA[Windows Update]]></category>
		<category><![CDATA[WSUS database]]></category>
		<guid isPermaLink="false">http://bassplayerdoc.wordpress.com/2008/10/09/windows-update-explained</guid>

				<description><![CDATA[For those who administer or manage WSUS or simply do patch management, here&#8217;s a documentation from TechNet written by the Windows Update Product Team to better understand updating behavior and what Microsoft is trying to do with Windows Update. While I rely so much on the WindowsUpdate.log file and/or the WSUS reporting feature to troubleshoot [&#8230;]]]></description>
					<content:encoded><![CDATA[<p><span style="font-family:arial;">For those who administer or manage WSUS or simply do patch management, here&#8217;s a <a href="http://download.microsoft.com/download/a/9/4/a94af289-a798-4143-a3f8-77004f7c2fd3/Windows%20Update%20Explained.docx">documentation from TechNet</a> written by the Windows Update Product Team to better understand updating behavior and what Microsoft is trying to do with Windows Update. While I rely so much on the WindowsUpdate.log file and/or the WSUS reporting feature to troubleshoot patch deployment issues, it&#8217;s best to understand what is happening under-the-hood to get a better picture</span></p>
<div class="blogger-post-footer"><img decoding="async" src="" alt="" width="1" height="1" /></div>
]]></content:encoded>
			

		<wfw:commentRss>https://www.edwinmsarmiento.com/windows-update-explained/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
				<post-id xmlns="com-wordpress:feed-additions:1">140</post-id>	</item>
		<item>
		<title>&gt;Moving the WSUS database to a new location</title>
		<link>https://www.edwinmsarmiento.com/moving-the-wsus-database-to-a-new-location/</link>
		<comments>https://www.edwinmsarmiento.com/moving-the-wsus-database-to-a-new-location/#comments</comments>
		<pubDate>Mon, 26 May 2008 09:14:00 +0000</pubDate>
		<dc:creator>Edwin M Sarmiento</dc:creator>
				<category><![CDATA[MICROSOFT##SSEE]]></category>
		<category><![CDATA[Windows Internal Database]]></category>
		<category><![CDATA[WSUS database]]></category>
		<guid isPermaLink="false">http://bassplayerdoc.wordpress.com/2008/05/26/moving-the-wsus-database-to-a-new-location</guid>

				<description><![CDATA[&#62;I woke up from a call from our support engineers telling me that a drive has less than 10% free space and needs to be maintained. This drive happens to be hosting my WSUS server together with the database used in the backend. There&#8217;s only one thing for me to do: move the database to [&#8230;]]]></description>
					<content:encoded><![CDATA[<p>&gt;<span style="font-family:arial;font-size:100%;">I woke up from a call from our support engineers telling me that a drive has less than 10% free space and needs to be maintained. This drive happens to be hosting my WSUS server together with the database used in the backend. There&#8217;s only one thing for me to do: move the database to a new location. This approach works for any SQL Server/MSDE database you want to move to a different location.</span><br /><span style="font-family:arial;font-size:100%;"></span><br /><span style="font-family:arial;font-size:100%;">Step 1: Stop any service that is accessing the database</span></p>
<blockquote><p><span style="font-family:arial;font-size:100%;">Since this is a WSUS database, we need to stop several services like the Update Service and the WWW service. You can do so using the Services applet or by using the NET STOP command</span></p></blockquote>
<div dir="ltr"><span style="font-family:arial;font-size:100%;">Step 2: Detach the database using the <span style="font-size:85%;color:#0000ff;"><strong>sp_detach_db </strong></span>command</span></div>
<blockquote>
<div dir="ltr"><span style="font-size:100%;"><span style="font-family:arial;">Since we do not have Enterprise Manager by default in using MSDE, we will stick to our command-line tool, <span style="font-size:85%;color:#0000ff;"><strong>osql</strong></span>. The <span style="font-size:85%;color:#0000ff;"><strong>sp_detach_db</strong></span> command detaches the specified database from SQL Server/MSDE. If you didn&#8217;t stop any service or application accessing this database, this command will fail. Below is the syntax for the <span style="font-size:85%;color:#0000ff;"><strong>sp_detach_db</strong></span> command(see </span><a href="http://msdn2.microsoft.com/en-us/library/ms188031.aspx"><span style="font-family:arial;">MSDN </span></a><span style="font-family:arial;">as well)</span></span></div>
<p></p>
<blockquote><p></p>
<div dir="ltr"><span style="font-size:100%;"><span style="font-family:arial;font-size:85%;color:#0000ff;"><em>sp_detach_db [ @dbname= ] &#8216;database_name&#8217;<br />[ , [ @skipchecks= ] &#8216;skipchecks&#8217; ] </em></span></span></div>
</blockquote>
<p></p>
<p dir="ltr"><span style="font-size:100%;"><em><span style="font-size:85%;color:#0000ff;"></span></em><span style="color:#000000;"></span><span style="font-family:arial;">To use the <strong><span style="font-size:85%;color:#0000ff;">sp_detach_db</span></strong> in <strong><span style="font-size:85%;color:#0000ff;">osql</span></strong> for the <span style="font-size:85%;"><span style="color:#0000ff;"><strong>SUSDB</strong> </span></span>database, execute this in the command line</span></span><span style="font-family:arial;"><br /></span></p>
<blockquote><p><span style="font-size:100%;"></span><span style="font-size:100%;"></p>
<p dir="ltr"></span><span style="font-size:100%;"><span style="font-family:arial;font-size:85%;color:#0000ff;"><strong>osql -E -S %computername%wsus -Q &#8220;exec sp_detach_db &#8216;SUSDB'&#8221;</strong></span></span></p>
</blockquote>
<p></p>
<p dir="ltr"><span style="font-size:100%;"><span style="font-family:arial;font-size:100%;color:#000000;">I am more comfortable with executing TSQL scripts while logged in that&#8217;s why I make it a point to secure a logged in connection first before I execute them. </span></span></p>
</blockquote>
<p></p>
<p dir="ltr"><span style="font-family:arial;"><span style="font-size:100%;"><span style="font-size:100%;color:#000000;">Step 3: Move the database files to a new location</span></span> </span></p>
<blockquote>
<p dir="ltr"><span style="font-size:100%;"><span style="font-family:arial;font-size:100%;color:#000000;">Now that you have disconnected the database from the server, you can now treat it as any other file in your file system. Move the SUSDB.mdf and SUSDB_Log.LDF files (for any database, be sure you know which files correspond to which database by executing the <span style="font-size:85%;color:#0000ff;"><strong>sp_helpdb</strong></span> command)</span></span></p>
</blockquote>
<p dir="ltr"><span style="font-family:arial;"><span style="font-size:100%;"><span style="color:#000000;">Step 4: Re-attach the database using the <span style="font-size:85%;color:#0000ff;"><strong>sp_attach_db</strong></span> command</span></span> </span></p>
<blockquote>
<p dir="ltr"><span style="font-family:arial;"><span style="font-size:100%;"><span style="color:#000000;">Execute the <span style="font-size:85%;color:#0000ff;"><strong>sp_attach_db</strong></span> in <span style="font-size:85%;color:#0000ff;"><strong>osql</strong></span> to re-attach the database files you have moved to a new location.</span></span><br /></span></p>
<p dir="ltr"><span style="font-size:100%;"><span style="color:#000000;"><span style="font-family:arial;"><span style="font-size:85%;color:#0000ff;"><strong>osql -E -S %computername%wsus -Q &#8220;exec sp_attach_db @dbname=N&#8217;SUSDB&#8217;, @filename1=N&#8217;E:WSUSMSSQL$SUSDataSUSDB.mdf&#8217;, @filename2=N&#8217;E:WSUSMSSQL$SUSDataSUSDB_log.ldf'&#8221;</strong></span></span></span></span></p>
</blockquote>
<p dir="ltr"><span style="font-family:arial;"><span style="font-size:100%;"><span style="color:#000000;">Step 5: Start the services which you stopped in Step 1</span></span><br /></span></p>
<blockquote><p></p>
<p dir="ltr"><span style="font-size:100%;"><span style="font-family:arial;color:#000000;">Resume the services or applications you stopped. Check whether the application still works fine and that it can still access the database.</span></span></p>
</blockquote>
<p dir="ltr"><span style="font-size:100%;"><span style="font-family:arial;color:#000000;">This is a generic approach which can be used for any database running on MSDE or SQL Server, whether it&#8217;s WSUS or not. Note that if you are dealing with WSUS 3.0 which, by default, uses the Windows Internal Database (SQL Server 2005 Embedded Edition), check out this <a href="http://bassplayerdoc.blogspot.com/2007/11/managing-windows-internal-database-sql.html">blog post</a> to connect to this instance.</span></span></p>
<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/92377218009570869-2325912546481837197?l=bassplayerdoc.blogspot.com' alt='' /></div>
]]></content:encoded>
			

		<wfw:commentRss>https://www.edwinmsarmiento.com/moving-the-wsus-database-to-a-new-location/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
				<post-id xmlns="com-wordpress:feed-additions:1">102</post-id>	</item>
	</channel>
</rss>