<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/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>How to recreate the msdb database in SQL Server 2005?</title><link>http://blogs.msdn.com/sqlserverstorageengine/archive/2006/06/06/619304.aspx</link><description>I've just spent a bunch time researching an answer to this question on the new disaster recovery forum because I couldn't find any definitive info on how to do this in SQL Server 2005. I pieced together a method to do this on previous releases of SQL</description><dc:language>en</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>re: How to recreate the msdb database in SQL Server 2005?</title><link>http://blogs.msdn.com/sqlserverstorageengine/archive/2006/06/06/619304.aspx#621998</link><pubDate>Thu, 08 Jun 2006 15:24:23 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:621998</guid><dc:creator>jeremyts</dc:creator><description>Good info Paul. But I'm wondering if this works on SQL 2005 Express Edition?&lt;br&gt;&lt;br&gt;When running step 3, I get the following error....&lt;br&gt;&lt;br&gt;C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Install&amp;gt;sqlcmd -i instmsdb.sql&lt;br&gt;----------------------------------&lt;br&gt;Starting execution of INSTMSDB.SQL&lt;br&gt;----------------------------------&lt;br&gt;Configuration option 'allow updates' changed from 1 to 1. Run the RECONFIGURE statement to install.&lt;br&gt;Changed database context to 'master'.&lt;br&gt;Msg 5120, Level 16, State 101, Server DC1, Line 63&lt;br&gt;Unable to open the physical file &amp;quot;c:\Program Files\Microsoft SQL Server\MSSQL.1\ MSSQL\DATA\MSDBData.mdf&amp;quot;. Operating system error 2: &amp;quot;2(error not found)&amp;quot;.&lt;br&gt;File activation failure. The physical file name &amp;quot;c:\Program Files\Microsoft SQL&lt;br&gt;Server\MSSQL.1\MSSQL\DATA\MSDBLog.ldf&amp;quot; may be incorrect.&lt;br&gt;Msg 945, Level 14, State 2, Server DC1, Line 63&lt;br&gt;Database 'msdb' cannot be opened due to inaccessible files or insufficient memory or disk space. &amp;nbsp;See the SQL Server errorlog for details.&lt;br&gt;Msg 3446, Level 16, State 2, Server DC1, Line 3&lt;br&gt;Primary log file is not available for database 'msdb'. &amp;nbsp;The log cannot be backed up.&lt;br&gt;Msg 5069, Level 16, State 1, Server DC1, Line 3&lt;br&gt;ALTER DATABASE statement failed.&lt;br&gt;Msg 945, Level 14, State 2, Server DC1, Line 2&lt;br&gt;Database 'msdb' cannot be opened due to inaccessible files or insufficient memor&lt;br&gt;y or disk space. &amp;nbsp;See the SQL Server errorlog for details.&lt;br&gt;Msg 50000, Level 20, State 127, Server DC1, Line 4&lt;br&gt;A problem was encountered accessing msdb. INSTMSDB.SQL terminating.&lt;br&gt;&lt;br&gt;C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Install&amp;gt;&lt;br&gt;&lt;br&gt;Are you able to provide advice?&lt;br&gt;&lt;br&gt;Cheers,&lt;br&gt;Jeremy.</description></item><item><title>re: How to recreate the msdb database in SQL Server 2005?</title><link>http://blogs.msdn.com/sqlserverstorageengine/archive/2006/06/06/619304.aspx#622818</link><pubDate>Thu, 08 Jun 2006 23:41:09 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:622818</guid><dc:creator>Paul Randal - MSFT</dc:creator><description>Hmm - I just tried it on my Express instance on my laptop and it worked fine. Are you trying to do it on a RANU instance? I ran:&lt;br&gt;&lt;br&gt;sqlcmd /E /S.\SQLEXPRESS /Iinstmsdb.sql</description></item><item><title>re: How to recreate the msdb database in SQL Server 2005?</title><link>http://blogs.msdn.com/sqlserverstorageengine/archive/2006/06/06/619304.aspx#642477</link><pubDate>Thu, 22 Jun 2006 10:00:33 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:642477</guid><dc:creator>wmrock</dc:creator><description>Great Information!&lt;br&gt;&lt;br&gt;This is what I have been looking for for about 7 months, sql server on win 2000 has been stopped due to bad data base, can not run restore as backup requires sql to be running. catch 22. &amp;nbsp; As the bad data base is one this business has not used in years, your method is a great tool to use. &lt;br&gt; &amp;nbsp;I only have one problem. &amp;nbsp;I just because responsible to this server and have no documentation. &lt;br&gt; I run steps 1 and 2 , but the thirdstep of &lt;br&gt; &amp;quot;Run the instmsdb.sql script in the 'C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Install' directory&amp;quot; &amp;nbsp;is the problem. &amp;nbsp;How or what do I run it with? &amp;nbsp; sqlcmd does not seem to be system.&lt;br&gt;&lt;br&gt;thanks for any advice you might give.&lt;br&gt;regards&lt;br&gt;</description></item><item><title>re: How to recreate the msdb database in SQL Server 2005?</title><link>http://blogs.msdn.com/sqlserverstorageengine/archive/2006/06/06/619304.aspx#645002</link><pubDate>Sat, 24 Jun 2006 03:04:36 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:645002</guid><dc:creator>Paul Randal - MSFT</dc:creator><description>Try using 'osql' instead of 'sqlcmd'</description></item><item><title>Rebuild MSDB in SQL 2005</title><link>http://blogs.msdn.com/sqlserverstorageengine/archive/2006/06/06/619304.aspx#649367</link><pubDate>Wed, 28 Jun 2006 08:58:55 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:649367</guid><dc:creator>Vinod Kumar's Blog</dc:creator><description>Good step by step approach by the Storage engine blog. Will help quite a lot of folks :) ...&lt;br&gt;How to...</description></item><item><title>re: How to recreate the msdb database in SQL Server 2005?</title><link>http://blogs.msdn.com/sqlserverstorageengine/archive/2006/06/06/619304.aspx#1078521</link><pubDate>Wed, 15 Nov 2006 02:23:55 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1078521</guid><dc:creator>apms</dc:creator><description>&lt;p&gt;Great information. Thanks! But...&lt;/p&gt;
&lt;p&gt;Still have a problem. Installed MSDE2K as an instance and ran sp3 on that instance.&lt;/p&gt;
&lt;p&gt;Sp setup breaked at running scripts, saying database msdb log file was not good, look at the SQL log file (where no info was...)&lt;/p&gt;
&lt;p&gt;Than stumbled over this usefull piece of information. Tried this, but this is not ok. Could you prompt me what's the problem?&lt;/p&gt;
&lt;p&gt;C:\Program Files\Microsoft SQL Server\MSSQL$DRUMIS\BinnMSSQL$DRUMIS\Binn&amp;gt;sqlservr.exe -c -T3608 -s DRUMIS&lt;/p&gt;
&lt;p&gt;C:\Program Files\Microsoft SQL Server\80\Tools\Binn&amp;gt;OSQL.EXE -S&amp;quot;RATIOSERVER\DRUMIS&amp;quot; -d&amp;quot;Master&amp;quot; -U********** -P********** -i&amp;quot;C:\Program Files\Microsoft SQL Server\MSSQL$DRUMIS\DataMSSQL$DRUMIS\Install\instmsdb.sql&amp;quot;&lt;/p&gt;
&lt;p&gt;***********SQL-Server log*****************&lt;/p&gt;
&lt;p&gt;2006-11-14 17:10:34.07 server &amp;nbsp; &amp;nbsp;Microsoft SQL Server &amp;nbsp;2000 - 8.00.760 (Intel X8&lt;/p&gt;
&lt;p&gt;6)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Dec 17 2002 14:22:05&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Copyright (c) 1988-2003 Microsoft Corporation&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Desktop Engine on Windows NT 5.2 (Build 3790: )&lt;/p&gt;
&lt;p&gt;2006-11-14 17:10:34.09 server &amp;nbsp; &amp;nbsp;Copyright (C) 1988-2002 Microsoft Corporation.&lt;/p&gt;
&lt;p&gt;2006-11-14 17:10:34.09 server &amp;nbsp; &amp;nbsp;All rights reserved.&lt;/p&gt;
&lt;p&gt;2006-11-14 17:10:34.09 server &amp;nbsp; &amp;nbsp;Server Process ID is 2100.&lt;/p&gt;
&lt;p&gt;2006-11-14 17:10:34.09 server &amp;nbsp; &amp;nbsp;Logging SQL Server messages in file 'C:\Program&lt;/p&gt;
&lt;p&gt; Files\Microsoft SQL Server\MSSQL$DRUMIS\DataMSSQL$DRUMIS\LOG\ERRORLOG'.&lt;/p&gt;
&lt;p&gt;2006-11-14 17:10:34.11 server &amp;nbsp; &amp;nbsp;SQL Server is starting at priority class 'norma&lt;/p&gt;
&lt;p&gt;l'(2 CPUs detected).&lt;/p&gt;
&lt;p&gt;2006-11-14 17:10:34.29 server &amp;nbsp; &amp;nbsp;SQL Server configured for thread mode processin&lt;/p&gt;
&lt;p&gt;g.&lt;/p&gt;
&lt;p&gt;2006-11-14 17:10:34.29 server &amp;nbsp; &amp;nbsp;Using dynamic lock allocation. [500] Lock Block&lt;/p&gt;
&lt;p&gt;s, [1000] Lock Owner Blocks.&lt;/p&gt;
&lt;p&gt;2006-11-14 17:10:34.34 spid4 &amp;nbsp; &amp;nbsp; Recovering only master database&lt;/p&gt;
&lt;p&gt;2006-11-14 17:10:34.34 spid4 &amp;nbsp; &amp;nbsp; Starting up database 'master'.&lt;/p&gt;
&lt;p&gt;2006-11-14 17:10:34.53 server &amp;nbsp; &amp;nbsp;Using 'SSNETLIB.DLL' version '8.0.766'.&lt;/p&gt;
&lt;p&gt;2006-11-14 17:10:34.56 spid4 &amp;nbsp; &amp;nbsp; Server name is 'RATIOSERVER\DRUMIS'.&lt;/p&gt;
&lt;p&gt;2006-11-14 17:10:34.57 server &amp;nbsp; &amp;nbsp;SQL server listening on 192.168.1.100: 3676.&lt;/p&gt;
&lt;p&gt;2006-11-14 17:10:34.57 server &amp;nbsp; &amp;nbsp;SQL server listening on 127.0.0.1: 3676.&lt;/p&gt;
&lt;p&gt;2006-11-14 17:10:34.59 spid4 &amp;nbsp; &amp;nbsp; Recovery complete.&lt;/p&gt;
&lt;p&gt;2006-11-14 17:10:34.59 spid4 &amp;nbsp; &amp;nbsp; SQL global counter collection task is created.&lt;/p&gt;
&lt;p&gt;2006-11-14 17:10:34.59 server &amp;nbsp; &amp;nbsp;SQL server listening on TCP, Shared Memory, Nam&lt;/p&gt;
&lt;p&gt;ed Pipes.&lt;/p&gt;
&lt;p&gt;2006-11-14 17:10:34.59 server &amp;nbsp; &amp;nbsp;SQL Server is ready for client connections&lt;/p&gt;
&lt;p&gt;2006-11-14 17:10:34.61 spid4 &amp;nbsp; &amp;nbsp; Warning: override, autoexec procedures skipped.&lt;/p&gt;
&lt;p&gt;2006-11-14 17:11:05.10 spid51 &amp;nbsp; &amp;nbsp;Starting up database 'D4WData'.&lt;/p&gt;
&lt;p&gt;2006-11-14 17:23:41.42 spid51 &amp;nbsp; &amp;nbsp;DBCC TRACEON 1717, server process ID (SPID) 51.&lt;/p&gt;
&lt;p&gt;2006-11-14 17:23:41.90 spid51 &amp;nbsp; &amp;nbsp;Clearing tempdb database.&lt;/p&gt;
&lt;p&gt;2006-11-14 17:23:41.90 spid51 &amp;nbsp; &amp;nbsp;Starting up database 'model'.&lt;/p&gt;
&lt;p&gt;2006-11-14 17:23:42.23 spid51 &amp;nbsp; &amp;nbsp;Starting up database 'tempdb'.&lt;/p&gt;
&lt;p&gt;2006-11-14 17:23:42.31 spid51 &amp;nbsp; &amp;nbsp;Error: 15457, Severity: 0, State: 1&lt;/p&gt;
&lt;p&gt;2006-11-14 17:23:42.31 spid51 &amp;nbsp; &amp;nbsp;Configuration option 'allow updates' changed fr&lt;/p&gt;
&lt;p&gt;om 1 to 1. Run the RECONFIGURE statement to install..&lt;/p&gt;
&lt;p&gt;2006-11-14 17:23:42.71 spid51 &amp;nbsp; &amp;nbsp;Starting up database 'msdb'.&lt;/p&gt;
&lt;p&gt;2006-11-14 17:23:42.71 spid51 &amp;nbsp; &amp;nbsp;udopen: Operating system error 2(error not foun&lt;/p&gt;
&lt;p&gt;d) during the creation/opening of physical device C:\Program Files\Microsoft SQL&lt;/p&gt;
&lt;p&gt; Server\MSSQL$DRUMIS\DataMSSQL$DRUMIS\Data\msdbdata.mdf.&lt;/p&gt;
&lt;p&gt;2006-11-14 17:23:42.73 spid51 &amp;nbsp; &amp;nbsp;FCB::Open failed: Could not open device C:\Prog&lt;/p&gt;
&lt;p&gt;ram Files\Microsoft SQL Server\MSSQL$DRUMIS\DataMSSQL$DRUMIS\Data\msdbdata.mdf f&lt;/p&gt;
&lt;p&gt;or virtual device number (VDN) 1.&lt;/p&gt;
&lt;p&gt;2006-11-14 17:23:43.14 spid51 &amp;nbsp; &amp;nbsp;Error: 50000, Severity: 20, State: 127&lt;/p&gt;
&lt;p&gt;2006-11-14 17:23:43.14 spid51 &amp;nbsp; &amp;nbsp;A problem was encountered accessing msdb. INSTM&lt;/p&gt;
&lt;p&gt;SDB.SQL terminating..&lt;/p&gt;
&lt;p&gt;***********OSQL output*****************&lt;/p&gt;
&lt;p&gt;-----------------------------&lt;/p&gt;
&lt;p&gt;Starting execution of INSTMSDB.SQL&lt;/p&gt;
&lt;p&gt;----------------------------------&lt;/p&gt;
&lt;p&gt;Configuration option 'allow updates' changed from 1 to 1. Run the RECONFIGURE statement to install.&lt;/p&gt;
&lt;p&gt;Msg 5105, Level 16, State 4, Server RATIOSERVER\DRUMIS, Line 57&lt;/p&gt;
&lt;p&gt;Device activation error. The physical file name 'C:\Program Files\Microsoft SQL Server\MSSQL$DRUMIS\DataMSSQL$DRUMIS\Data\msdbdata.mdf' may be incorrect.&lt;/p&gt;
&lt;p&gt;Msg 945, Level 14, State 2, Server RATIOSERVER\DRUMIS, Line 57 Database 'msdb' cannot be opened due to inaccessible files or insufficient memory or disk space.&lt;/p&gt;
&lt;p&gt; &amp;nbsp;See the SQL Server errorlog for details.&lt;/p&gt;
&lt;p&gt;Device activation error. The physical file name 'C:\Program Files\Microsoft SQL Server\MSSQL$DRUMIS\DataMSSQL$DRUMIS\Data\msdblog.ldf' may be incorrect.&lt;/p&gt;
&lt;p&gt;Msg 945, Level 14, State 2, Server RATIOSERVER\DRUMIS, Line 1&lt;/p&gt;
&lt;p&gt;Database 'msdb' cannot be opened due to inaccessible files or insufficient memory or disk space. &amp;nbsp;See the SQL Server errorlog for details.&lt;/p&gt;
&lt;p&gt;Msg 5069, Level 16, State 1, Server RATIOSERVER\DRUMIS, Line 1&lt;/p&gt;
&lt;p&gt;ALTER DATABASE statement failed.&lt;/p&gt;
&lt;p&gt;sp_dboption command failed.&lt;/p&gt;
&lt;p&gt;Msg 945, Level 14, State 2, Server RATIOSERVER\DRUMIS, Line 2&lt;/p&gt;
&lt;p&gt;Database 'msdb' cannot be opened due to inaccessible files or insufficient memory or disk space. &amp;nbsp;See the SQL Server errorlog for details.&lt;/p&gt;
&lt;p&gt;Msg 50000, Level 20, State 127, Server RATIOSERVER\DRUMIS, Line 4&lt;/p&gt;
&lt;p&gt;A problem was encountered accessing msdb. INSTMSDB.SQL terminating.&lt;/p&gt;
</description></item><item><title>re: How to recreate the msdb database in SQL Server 2005?</title><link>http://blogs.msdn.com/sqlserverstorageengine/archive/2006/06/06/619304.aspx#1081073</link><pubDate>Wed, 15 Nov 2006 15:50:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1081073</guid><dc:creator>Paul Randal - MSFT</dc:creator><description>&lt;p&gt;Looks like the pathname is screwed up (the section &amp;quot;MSSQL$DRUMIS\Data&amp;quot; is repeated - did you enter it manually? Please shoot me email rather than debugging this through the comments - thanks&lt;/p&gt;
</description></item><item><title>re: How to recreate the msdb database in SQL Server 2005?</title><link>http://blogs.msdn.com/sqlserverstorageengine/archive/2006/06/06/619304.aspx#1095823</link><pubDate>Sat, 18 Nov 2006 00:53:58 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1095823</guid><dc:creator>apms</dc:creator><description>&lt;p&gt;Solved the problem by installing MSDE on another computer.&lt;/p&gt;
&lt;p&gt;Stopping both SQL servers.&lt;/p&gt;
&lt;p&gt;Copy msdb.mdf and msdb.ldf from good installation to bad installation and started SQL server again.&lt;/p&gt;
&lt;p&gt;Msdb was now correctly recognized. - thanks&lt;/p&gt;
</description></item><item><title>re: How to recreate the msdb database in SQL Server 2005?</title><link>http://blogs.msdn.com/sqlserverstorageengine/archive/2006/06/06/619304.aspx#1588246</link><pubDate>Sat, 03 Feb 2007 09:58:12 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1588246</guid><dc:creator>thenoo</dc:creator><description>&lt;p&gt;In sql 2005, I also got the same insufficient memory error unable to connect to MSDB DB, I just tried the step 1 with -T3608 Parameter, then tried to stop and restart the sql server.Then i opened the sql server managment studio, it was now able to connect to MSDB DB without no error, before i tried with detach,move and recreate the MSDB DB.So i stopped with Step 1 with trace flag option,then removed the trace flag option in startup parameter.It works fine now.&lt;/p&gt;
&lt;p&gt;Thanks for the tips.&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Thenu&lt;/p&gt;
</description></item><item><title>MSDB went nuts !!</title><link>http://blogs.msdn.com/sqlserverstorageengine/archive/2006/06/06/619304.aspx#2273860</link><pubDate>Wed, 25 Apr 2007 19:57:06 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2273860</guid><dc:creator>Braulio_Malaga</dc:creator><description>&lt;p&gt;It's the second time that I got an ugly message from my SQL Server: Database 'msdb' cannot be opened...&lt;/p&gt;
</description></item><item><title>re: How to recreate the msdb database in SQL Server 2005?</title><link>http://blogs.msdn.com/sqlserverstorageengine/archive/2006/06/06/619304.aspx#2413719</link><pubDate>Fri, 04 May 2007 22:11:20 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2413719</guid><dc:creator>AmberHand</dc:creator><description>&lt;p&gt;Got some problems with dns can create dns server cuz it cant connect to sql server i got this error from dns &lt;/p&gt;
&lt;p&gt;Microsoft SQl server login&lt;/p&gt;
&lt;p&gt;Connection failed:&lt;/p&gt;
&lt;p&gt;SQL state error:'01000'&lt;/p&gt;
&lt;p&gt;SQL server error:10061&lt;/p&gt;
&lt;p&gt;[Microsoft][ODBC SQl server driver][TCP/IP sockets]Connectionopened(connect())&lt;/p&gt;
&lt;p&gt;Connection failed:&lt;/p&gt;
&lt;p&gt;Sql state:'08001'&lt;/p&gt;
&lt;p&gt;Sql server error:17&lt;/p&gt;
&lt;p&gt;[Microsoft][ODBC SQl server driver][TCP/IP sockets]SQL server does not exist or access diened&amp;quot;&lt;/p&gt;
</description></item><item><title>re: How to recreate the msdb database in SQL Server 2005?</title><link>http://blogs.msdn.com/sqlserverstorageengine/archive/2006/06/06/619304.aspx#3911425</link><pubDate>Tue, 17 Jul 2007 12:48:01 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:3911425</guid><dc:creator>pstavroulis</dc:creator><description>&lt;p&gt;I have gone through this exercise. If you have installed SP2 on 2005 and follow the steps above then you will get many problems with Mails. By following the above process, you basically uninstall part of SP2 by running the instmsdb.sql file. The problem is you don't see any real error messages, your emails just stay queued and never sent. A test is stored proc sysmail_delete_profile_sp should contain 3 arguments not 2 if you are on SP2.&lt;/p&gt;
&lt;p&gt;To fix it, I had to uninstall the 3054 fix + SP2 then re-install SP2 + 3054 and you should be fine. I think Microsoft should provide an updated instmsdb.sql as part of the SP2 installation. Or something similar.&lt;/p&gt;
&lt;p&gt;I have used -m as well as my argument and &amp;amp; please make sure that nothings is connected to your sql server.&lt;/p&gt;
&lt;p&gt;Panos.&lt;/p&gt;
</description></item><item><title>re: How to recreate the msdb database in SQL Server 2005?</title><link>http://blogs.msdn.com/sqlserverstorageengine/archive/2006/06/06/619304.aspx#8522582</link><pubDate>Tue, 20 May 2008 14:40:16 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8522582</guid><dc:creator>navin_vasnani</dc:creator><description>&lt;p&gt;When i am running the thrid step it is showing in error logs for good backup of msdb database.&lt;/p&gt;
&lt;p&gt;what to do now &lt;/p&gt;
</description></item><item><title>random thoughts  &amp;raquo; Fixing Suspect SQL databases</title><link>http://blogs.msdn.com/sqlserverstorageengine/archive/2006/06/06/619304.aspx#8579609</link><pubDate>Sat, 07 Jun 2008 09:27:30 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8579609</guid><dc:creator>random thoughts  &amp;raquo; Fixing Suspect SQL databases</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://thought.mobiforumz.com/2006/09/08/fixing-suspect-sql-databases/"&gt;http://thought.mobiforumz.com/2006/09/08/fixing-suspect-sql-databases/&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>Random Thoughts  &amp;raquo; Blog Archive   &amp;raquo; Fixing Suspect SQL databases</title><link>http://blogs.msdn.com/sqlserverstorageengine/archive/2006/06/06/619304.aspx#8720886</link><pubDate>Fri, 11 Jul 2008 13:23:46 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8720886</guid><dc:creator>Random Thoughts  &amp;raquo; Blog Archive   &amp;raquo; Fixing Suspect SQL databases</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://winzenz.mobiforumz.com/2006/09/08/fixing-suspect-sql-databases/"&gt;http://winzenz.mobiforumz.com/2006/09/08/fixing-suspect-sql-databases/&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>re: How to recreate the msdb database in SQL Server 2005?</title><link>http://blogs.msdn.com/sqlserverstorageengine/archive/2006/06/06/619304.aspx#8899504</link><pubDate>Wed, 27 Aug 2008 13:09:39 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8899504</guid><dc:creator>TiborKaraszi</dc:creator><description>&lt;p&gt;Here's my findings trying this on SQL Server 2008:&lt;/p&gt;
&lt;p&gt;You need to add startup parameter -s &amp;lt;instancename&amp;gt; if it is a named instance. Now, this I knew, but for the sake of other potential readers...&lt;/p&gt;
&lt;p&gt;I initially started the instance from the Windows services applet by adding -T3608. That didn't allow for detaching msdb. So I started from an OS command prompt and also added -c. This allowed me to detach msdb.&lt;/p&gt;
&lt;p&gt;I now ran instmsdb, but that produced a number of errors. Here are a few comments about some of them:&lt;/p&gt;
&lt;p&gt;* Complaints on xp_cmdshell. I did try enabling this first and then ran instmsdb again but same result.&lt;/p&gt;
&lt;p&gt;* Bunch of errors when creating various Data Collector objects. This wasn't good, because cleaning up DC was the reason to rebuild msdb in the frist place.&lt;/p&gt;
&lt;p&gt;* 3 errors about sp_configure and -1 wasn't allowed value (two for Agent Xps and one for xp_cmdshell).&lt;/p&gt;
&lt;p&gt;Just for the sake of trying, I now tried to connect to the instance using SSMS Object Explorer. But I now got some error regarding Agent Xp's when connecting. I tried to explicitly enabling Agent XP's using sp_configure but same error. When connected there's no node in Objects Explorer for Agent. &lt;/p&gt;
&lt;p&gt;I took this as an indication that Agent isn't healthy. Whether it was me doing something fishy or it isn't as easy as just running insmsdb.sql for SQL Server 2008 - I don't know. But I'm in for a rebuild of system databases. This isn't that bad since it is a just a test machine. But these issues might serve as example why you want to follow Paul's initial advice: always backup msdb (also on test machines).&lt;/p&gt;
</description></item><item><title>Rebuilding msdb on SQL Server 2008</title><link>http://blogs.msdn.com/sqlserverstorageengine/archive/2006/06/06/619304.aspx#8899513</link><pubDate>Wed, 27 Aug 2008 13:17:20 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8899513</guid><dc:creator>Tibor Karaszi</dc:creator><description>&lt;p&gt;Because of the problems I had removing Data Collector I decided to rebuild msdb. You probably heard about&lt;/p&gt;
</description></item><item><title>Rebuilding msdb on SQL Server 2008</title><link>http://blogs.msdn.com/sqlserverstorageengine/archive/2006/06/06/619304.aspx#8899518</link><pubDate>Wed, 27 Aug 2008 13:20:05 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8899518</guid><dc:creator>SQL Server</dc:creator><description>&lt;p&gt;Because of the problems I had removing Data Collector I decided to rebuild msdb. You probably heard about&lt;/p&gt;
</description></item><item><title>  Rebuilding msdb on SQL Server 2008 : EasyCoded</title><link>http://blogs.msdn.com/sqlserverstorageengine/archive/2006/06/06/619304.aspx#8917068</link><pubDate>Mon, 01 Sep 2008 20:17:02 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8917068</guid><dc:creator>  Rebuilding msdb on SQL Server 2008 : EasyCoded</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://www.easycoded.com/rebuilding-msdb-on-sql-server-2008/"&gt;http://www.easycoded.com/rebuilding-msdb-on-sql-server-2008/&lt;/a&gt;&lt;/p&gt;
</description></item><item><title> SQL Server Storage Engine How to recreate the msdb database in SQL | Paid Surveys</title><link>http://blogs.msdn.com/sqlserverstorageengine/archive/2006/06/06/619304.aspx#9660368</link><pubDate>Sat, 30 May 2009 02:13:05 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9660368</guid><dc:creator> SQL Server Storage Engine How to recreate the msdb database in SQL | Paid Surveys</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://paidsurveyshub.info/story.php?title=sql-server-storage-engine-how-to-recreate-the-msdb-database-in-sql"&gt;http://paidsurveyshub.info/story.php?title=sql-server-storage-engine-how-to-recreate-the-msdb-database-in-sql&lt;/a&gt;&lt;/p&gt;
</description></item><item><title> SQL Server Storage Engine How to recreate the msdb database in SQL | Quick Diets</title><link>http://blogs.msdn.com/sqlserverstorageengine/archive/2006/06/06/619304.aspx#9744989</link><pubDate>Sat, 13 Jun 2009 16:26:10 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9744989</guid><dc:creator> SQL Server Storage Engine How to recreate the msdb database in SQL | Quick Diets</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://quickdietsite.info/story.php?id=4056"&gt;http://quickdietsite.info/story.php?id=4056&lt;/a&gt;&lt;/p&gt;
</description></item><item><title> SQL Server Storage Engine How to recreate the msdb database in SQL | fix my credit</title><link>http://blogs.msdn.com/sqlserverstorageengine/archive/2006/06/06/619304.aspx#9763802</link><pubDate>Wed, 17 Jun 2009 04:31:07 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9763802</guid><dc:creator> SQL Server Storage Engine How to recreate the msdb database in SQL | fix my credit</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://fixmycrediteasily.info/story.php?id=1150"&gt;http://fixmycrediteasily.info/story.php?id=1150&lt;/a&gt;&lt;/p&gt;
</description></item><item><title> SQL Server Storage Engine How to recreate the msdb database in SQL | debt settlement program</title><link>http://blogs.msdn.com/sqlserverstorageengine/archive/2006/06/06/619304.aspx#9787450</link><pubDate>Fri, 19 Jun 2009 16:33:27 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9787450</guid><dc:creator> SQL Server Storage Engine How to recreate the msdb database in SQL | debt settlement program</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://edebtsettlementprogram.info/story.php?id=24418"&gt;http://edebtsettlementprogram.info/story.php?id=24418&lt;/a&gt;&lt;/p&gt;
</description></item></channel></rss>