<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:pingback="http://madskills.com/public/xml/rss/module/pingback/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0">
  <channel>
    <title>My Fried Tech! - Sql</title>
    <link>http://www.myfriedmind.com/techBlog/</link>
    <description>oddities from my work</description>
    <language>en-us</language>
    <copyright>Matt Mcknight</copyright>
    <lastBuildDate>Fri, 25 Jun 2010 14:52:37 GMT</lastBuildDate>
    <generator>newtelligence dasBlog 2.3.9074.18820</generator>
    <managingEditor>matt@em.org</managingEditor>
    <webMaster>matt@em.org</webMaster>
    <item>
      <trackback:ping>http://www.myfriedmind.com/techBlog/Trackback.aspx?guid=338f7be8-6723-4849-afd5-30eeb9eb0035</trackback:ping>
      <pingback:server>http://www.myfriedmind.com/techBlog/pingback.aspx</pingback:server>
      <pingback:target>http://www.myfriedmind.com/techBlog/PermaLink,guid,338f7be8-6723-4849-afd5-30eeb9eb0035.aspx</pingback:target>
      <dc:creator>papabear</dc:creator>
      <wfw:comment>http://www.myfriedmind.com/techBlog/CommentView,guid,338f7be8-6723-4849-afd5-30eeb9eb0035.aspx</wfw:comment>
      <wfw:commentRss>http://www.myfriedmind.com/techBlog/SyndicationService.asmx/GetEntryCommentsRss?guid=338f7be8-6723-4849-afd5-30eeb9eb0035</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p>
I stumbled across this - <a href="http://deepakrangarajan.blogspot.com/2008/11/moving-system-databases-in-sql-server.html">http://deepakrangarajan.blogspot.com/2008/11/moving-system-databases-in-sql-server.html.</a></p>
        <p>
          <a href="http://deepakrangarajan.blogspot.com/2008/11/moving-system-databases-in-sql-server.html">:)<br /></a>
        </p>
        <img width="0" height="0" src="http://www.myfriedmind.com/techBlog/aggbug.ashx?id=338f7be8-6723-4849-afd5-30eeb9eb0035" />
      </body>
      <title>Moving System Databases in sql 2008</title>
      <guid isPermaLink="false">http://www.myfriedmind.com/techBlog/PermaLink,guid,338f7be8-6723-4849-afd5-30eeb9eb0035.aspx</guid>
      <link>http://www.myfriedmind.com/techBlog/2010/06/25/MovingSystemDatabasesInSql2008.aspx</link>
      <pubDate>Fri, 25 Jun 2010 14:52:37 GMT</pubDate>
      <description>&lt;p&gt;
I stumbled across this - &lt;a href="http://deepakrangarajan.blogspot.com/2008/11/moving-system-databases-in-sql-server.html"&gt;http://deepakrangarajan.blogspot.com/2008/11/moving-system-databases-in-sql-server.html.&lt;/a&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;a href="http://deepakrangarajan.blogspot.com/2008/11/moving-system-databases-in-sql-server.html"&gt;:)&lt;br&gt;
&lt;/a&gt;
&lt;/p&gt;
&lt;img width="0" height="0" src="http://www.myfriedmind.com/techBlog/aggbug.ashx?id=338f7be8-6723-4849-afd5-30eeb9eb0035" /&gt;</description>
      <comments>http://www.myfriedmind.com/techBlog/CommentView,guid,338f7be8-6723-4849-afd5-30eeb9eb0035.aspx</comments>
      <category>Sql</category>
      <category>Sql 2008</category>
    </item>
    <item>
      <trackback:ping>http://www.myfriedmind.com/techBlog/Trackback.aspx?guid=c2d85130-7467-4578-9b16-a58ad2c13330</trackback:ping>
      <pingback:server>http://www.myfriedmind.com/techBlog/pingback.aspx</pingback:server>
      <pingback:target>http://www.myfriedmind.com/techBlog/PermaLink,guid,c2d85130-7467-4578-9b16-a58ad2c13330.aspx</pingback:target>
      <dc:creator>papabear</dc:creator>
      <wfw:comment>http://www.myfriedmind.com/techBlog/CommentView,guid,c2d85130-7467-4578-9b16-a58ad2c13330.aspx</wfw:comment>
      <wfw:commentRss>http://www.myfriedmind.com/techBlog/SyndicationService.asmx/GetEntryCommentsRss?guid=c2d85130-7467-4578-9b16-a58ad2c13330</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p>
If you have ever had to truncate a log in Sql 2005, the 'with truncate_only' is fairly
familiar. Unfortunately for you, if you have it in your scripts, it has been removed
in Sql 2008. 
</p>
        <p>
You can use the Sql Management Studio to shrink the log files, I can post later about
how to do this, but for some databases it will appear not to work (even if it throws
no error). The log files stay the same size.
</p>
        <p>
What may be the issue is that the Database is using a Full vs a Simple backup recovery
method. You can find out more about the difference between the two here -&gt; <a href="http://msdn.microsoft.com/en-us/library/ms187048.aspx">http://msdn.microsoft.com/en-us/library/ms187048.aspx</a>.
What we are concerned about is the note show below:<br /></p>
        <blockquote>
          <p>
            <img id="alert_note" alt="Note" src="http://i.msdn.microsoft.com/Hash/030c41d9079671d09a62d8e2c1db6973.gif" title="Note" xmlns="" class="cl_IC101471" />
            <strong>Note</strong>
            <br />
Under the simple recovery model, the transaction log is automatically truncated to
remove any inactive virtual log files. Truncation usually occurs after each checkpoint
but can be delayed under some conditions. For more information, see <span><a href="http://msdn.microsoft.com/en-us/library/ms189085.aspx">Transaction
Log Truncation</a></span>. 
</p>
        </blockquote>
        <p>
What this means in the short run is that by switching your backup recovery method
to Simple, you will instantly be able to shrink your log file.
</p>
        <p>
Ex: <font color="#000080"><i>Alter Database %your Db Name Here% Set Recovery Simple</i></font></p>
        <p>
I would be remiss if I did not mention this note from the page on the Simple recovery
method:
</p>
        <blockquote>
          <p>
            <img id="alert_caution" alt="Important note" src="http://i.msdn.microsoft.com/Hash/030c41d9079671d09a62d8e2c1db6973.gif" title="Important note" xmlns="" class="cl_IC46226" />
            <strong>Important</strong>
            <br />
The simple recovery model is inappropriate for production systems for which loss of
recent changes is unacceptable. In these cases, we recommend that you use the full
recovery model. For more information, see <span><a href="http://msdn.microsoft.com/en-us/library/ms190217.aspx">Backup
Under the Full Recovery Model</a></span>.
</p>
        </blockquote>
        <p>
One could always switch it to Simple, truncate, and switch back to Full, but it would
probably be better to keep it at Full and establish a more functional means to keep
those pesky log files small...<br /></p>
        <img width="0" height="0" src="http://www.myfriedmind.com/techBlog/aggbug.ashx?id=c2d85130-7467-4578-9b16-a58ad2c13330" />
      </body>
      <title>Sql 2008 'truncate_only' is not a recognized BACKUP option.</title>
      <guid isPermaLink="false">http://www.myfriedmind.com/techBlog/PermaLink,guid,c2d85130-7467-4578-9b16-a58ad2c13330.aspx</guid>
      <link>http://www.myfriedmind.com/techBlog/2010/06/24/Sql2008TruncateonlyIsNotARecognizedBACKUPOption.aspx</link>
      <pubDate>Thu, 24 Jun 2010 13:38:55 GMT</pubDate>
      <description>&lt;p&gt;
If you have ever had to truncate a log in Sql 2005, the 'with truncate_only' is fairly
familiar. Unfortunately for you, if you have it in your scripts, it has been removed
in Sql 2008.&amp;nbsp;
&lt;/p&gt;
&lt;p&gt;
You can use the Sql Management Studio to shrink the log files, I can post later about
how to do this, but for some databases it will appear not to work (even if it throws
no error). The log files stay the same size.
&lt;/p&gt;
&lt;p&gt;
What may be the issue is that the Database is using a Full vs a Simple backup recovery
method. You can find out more about the difference between the two here -&amp;gt; &lt;a href="http://msdn.microsoft.com/en-us/library/ms187048.aspx"&gt;http://msdn.microsoft.com/en-us/library/ms187048.aspx&lt;/a&gt;.
What we are concerned about is the note show below:&lt;br&gt;
&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;
&lt;img id="alert_note" alt="Note" src="http://i.msdn.microsoft.com/Hash/030c41d9079671d09a62d8e2c1db6973.gif" title="Note" xmlns="" class="cl_IC101471"&gt;&lt;strong&gt;Note&lt;/strong&gt;
&lt;br&gt;
Under the simple recovery model, the transaction log is automatically truncated to
remove any inactive virtual log files. Truncation usually occurs after each checkpoint
but can be delayed under some conditions. For more information, see &lt;span&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/ms189085.aspx"&gt;Transaction
Log Truncation&lt;/a&gt;&lt;/span&gt;. 
&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;
What this means in the short run is that by switching your backup recovery method
to Simple, you will instantly be able to shrink your log file.
&lt;/p&gt;
&lt;p&gt;
Ex: &lt;font color="#000080"&gt;&lt;i&gt;Alter Database %your Db Name Here% Set Recovery Simple&lt;/i&gt;&lt;/font&gt;
&lt;/p&gt;
&lt;p&gt;
I would be remiss if I did not mention this note from the page on the Simple recovery
method:
&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;
&lt;img id="alert_caution" alt="Important note" src="http://i.msdn.microsoft.com/Hash/030c41d9079671d09a62d8e2c1db6973.gif" title="Important note" xmlns="" class="cl_IC46226"&gt;&lt;strong&gt;Important&lt;/strong&gt;
&lt;br&gt;
The simple recovery model is inappropriate for production systems for which loss of
recent changes is unacceptable. In these cases, we recommend that you use the full
recovery model. For more information, see &lt;span&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/ms190217.aspx"&gt;Backup
Under the Full Recovery Model&lt;/a&gt;&lt;/span&gt;.
&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;
One could always switch it to Simple, truncate, and switch back to Full, but it would
probably be better to keep it at Full and establish a more functional means to keep
those pesky log files small...&lt;br&gt;
&lt;/p&gt;
&lt;img width="0" height="0" src="http://www.myfriedmind.com/techBlog/aggbug.ashx?id=c2d85130-7467-4578-9b16-a58ad2c13330" /&gt;</description>
      <comments>http://www.myfriedmind.com/techBlog/CommentView,guid,c2d85130-7467-4578-9b16-a58ad2c13330.aspx</comments>
      <category>Sql</category>
      <category>Sql 2008</category>
    </item>
    <item>
      <trackback:ping>http://www.myfriedmind.com/techBlog/Trackback.aspx?guid=abf61892-5a93-4794-93b4-a5ebc68c18eb</trackback:ping>
      <pingback:server>http://www.myfriedmind.com/techBlog/pingback.aspx</pingback:server>
      <pingback:target>http://www.myfriedmind.com/techBlog/PermaLink,guid,abf61892-5a93-4794-93b4-a5ebc68c18eb.aspx</pingback:target>
      <dc:creator>papabear</dc:creator>
      <wfw:comment>http://www.myfriedmind.com/techBlog/CommentView,guid,abf61892-5a93-4794-93b4-a5ebc68c18eb.aspx</wfw:comment>
      <wfw:commentRss>http://www.myfriedmind.com/techBlog/SyndicationService.asmx/GetEntryCommentsRss?guid=abf61892-5a93-4794-93b4-a5ebc68c18eb</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">If you try to create a Maintenance Plan
on Sql 2008 you may ge<img src="http://www.myfriedmind.com/techBlog/content/binary/AgentXPSError.JPG" align="right" border="0" />t
the following error:<br />
'Agent XPs' component is turned off as part of the security configuration of this
server. A system administrator can enable the use of 'Agent XPs' by using sp_configure....<br /><br />
The reason is simple - the Sql Server Agent Service, which handles Maintenance plans
among other things, is not started automatically. The service is set to Manual start.
The solution is simple - just set it to Automatic (so it starts in case of a reboot)
and start it up!<br /><br />
You can, of course, do this through windows services, but you can also do it through
the Sql tools - specifically the "Sql Server Configuration Manager".<br /><br /><h3>Step 1 - open up the Sql Server Configuration Manager and click on 'Sql Server
Services in the left pane. You will see that the SQL Server Agetn is Stopped and has
its 'Start Mode' set to Manual.
</h3><br /><img src="http://www.myfriedmind.com/techBlog/content/binary/AgentXpsInfo.JPG" border="0" /><br /><br /><h3>Step 2 - double click on the Sql Server Agent in the right tab and its properties
will appear. Click on the 'Start' button to begin it running.
</h3><br /><img src="http://www.myfriedmind.com/techBlog/content/binary/AgentXPSStartService.JPG" border="0" /><br /><br /><h3>Step 3 - now click on the 'Service' tab and change the Start Mode to Automatic.
This will ensure that if your server restarts this service will start as well (and
hence you will get your Maintenance plans.
</h3><br /><img src="http://www.myfriedmind.com/techBlog/content/binary/AgentXpsServiceSetting.JPG" border="0" /><br /><br />
Now, give yourself a raise and take the rest of the day off....<br /><img width="0" height="0" src="http://www.myfriedmind.com/techBlog/aggbug.ashx?id=abf61892-5a93-4794-93b4-a5ebc68c18eb" /></body>
      <title>Sql 2008 and 'Agent XPs' component is turned off as part of the security configuration of this server when creating a Maintenance Plan</title>
      <guid isPermaLink="false">http://www.myfriedmind.com/techBlog/PermaLink,guid,abf61892-5a93-4794-93b4-a5ebc68c18eb.aspx</guid>
      <link>http://www.myfriedmind.com/techBlog/2010/02/09/Sql2008AndAgentXPsComponentIsTurnedOffAsPartOfTheSecurityConfigurationOfThisServerWhenCreatingAMaintenancePlan.aspx</link>
      <pubDate>Tue, 09 Feb 2010 19:55:42 GMT</pubDate>
      <description>If you try to create a Maintenance Plan on Sql 2008 you may ge&lt;img src="http://www.myfriedmind.com/techBlog/content/binary/AgentXPSError.JPG" align="right" border="0"&gt;t
the following error:&lt;br&gt;
'Agent XPs' component is turned off as part of the security configuration of this
server. A system administrator can enable the use of 'Agent XPs' by using sp_configure....&lt;br&gt;
&lt;br&gt;
The reason is simple - the Sql Server Agent Service, which handles Maintenance plans
among other things, is not started automatically. The service is set to Manual start.
The solution is simple - just set it to Automatic (so it starts in case of a reboot)
and start it up!&lt;br&gt;
&lt;br&gt;
You can, of course, do this through windows services, but you can also do it through
the Sql tools - specifically the "Sql Server Configuration Manager".&lt;br&gt;
&lt;br&gt;
&lt;h3&gt;Step 1 - open up the Sql Server Configuration Manager and click on 'Sql Server
Services in the left pane. You will see that the SQL Server Agetn is Stopped and has
its 'Start Mode' set to Manual.
&lt;/h3&gt;
&lt;br&gt;
&lt;img src="http://www.myfriedmind.com/techBlog/content/binary/AgentXpsInfo.JPG" border="0"&gt;
&lt;br&gt;
&lt;br&gt;
&lt;h3&gt;Step 2 - double click on the Sql Server Agent in the right tab and its properties
will appear. Click on the 'Start' button to begin it running.
&lt;/h3&gt;
&lt;br&gt;
&lt;img src="http://www.myfriedmind.com/techBlog/content/binary/AgentXPSStartService.JPG" border="0"&gt;
&lt;br&gt;
&lt;br&gt;
&lt;h3&gt;Step 3 - now click on the 'Service' tab and change the Start Mode to Automatic.
This will ensure that if your server restarts this service will start as well (and
hence you will get your Maintenance plans.
&lt;/h3&gt;
&lt;br&gt;
&lt;img src="http://www.myfriedmind.com/techBlog/content/binary/AgentXpsServiceSetting.JPG" border="0"&gt;
&lt;br&gt;
&lt;br&gt;
Now, give yourself a raise and take the rest of the day off....&lt;br&gt;
&lt;img width="0" height="0" src="http://www.myfriedmind.com/techBlog/aggbug.ashx?id=abf61892-5a93-4794-93b4-a5ebc68c18eb" /&gt;</description>
      <comments>http://www.myfriedmind.com/techBlog/CommentView,guid,abf61892-5a93-4794-93b4-a5ebc68c18eb.aspx</comments>
      <category>Sql</category>
      <category>Sql 2008</category>
    </item>
    <item>
      <trackback:ping>http://www.myfriedmind.com/techBlog/Trackback.aspx?guid=d92d1c31-e8d7-41fd-98f7-3327b84f6160</trackback:ping>
      <pingback:server>http://www.myfriedmind.com/techBlog/pingback.aspx</pingback:server>
      <pingback:target>http://www.myfriedmind.com/techBlog/PermaLink,guid,d92d1c31-e8d7-41fd-98f7-3327b84f6160.aspx</pingback:target>
      <dc:creator>papabear</dc:creator>
      <wfw:comment>http://www.myfriedmind.com/techBlog/CommentView,guid,d92d1c31-e8d7-41fd-98f7-3327b84f6160.aspx</wfw:comment>
      <wfw:commentRss>http://www.myfriedmind.com/techBlog/SyndicationService.asmx/GetEntryCommentsRss?guid=d92d1c31-e8d7-41fd-98f7-3327b84f6160</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">Installing a new sql 2008 box and thought
I would throw out the reminder to partition the drives that sql uses to 64k (not the
default 4k) due to Sql's 'extents', which come in packages of eight 8k boxes...<br /><p></p><img width="0" height="0" src="http://www.myfriedmind.com/techBlog/aggbug.ashx?id=d92d1c31-e8d7-41fd-98f7-3327b84f6160" /></body>
      <title>Sql 2008 Disk Allocation Unit Size</title>
      <guid isPermaLink="false">http://www.myfriedmind.com/techBlog/PermaLink,guid,d92d1c31-e8d7-41fd-98f7-3327b84f6160.aspx</guid>
      <link>http://www.myfriedmind.com/techBlog/2009/11/10/Sql2008DiskAllocationUnitSize.aspx</link>
      <pubDate>Tue, 10 Nov 2009 17:22:50 GMT</pubDate>
      <description>Installing a new sql 2008 box and thought I would throw out the reminder to partition the drives that sql uses to 64k (not the default 4k) due to Sql's 'extents', which come in packages of eight 8k boxes...&lt;br&gt;
&lt;p&gt;
&lt;/p&gt;
&lt;img width="0" height="0" src="http://www.myfriedmind.com/techBlog/aggbug.ashx?id=d92d1c31-e8d7-41fd-98f7-3327b84f6160" /&gt;</description>
      <comments>http://www.myfriedmind.com/techBlog/CommentView,guid,d92d1c31-e8d7-41fd-98f7-3327b84f6160.aspx</comments>
      <category>Sql</category>
    </item>
    <item>
      <trackback:ping>http://www.myfriedmind.com/techBlog/Trackback.aspx?guid=793592db-0a9f-426e-8520-75e3dd328789</trackback:ping>
      <pingback:server>http://www.myfriedmind.com/techBlog/pingback.aspx</pingback:server>
      <pingback:target>http://www.myfriedmind.com/techBlog/PermaLink,guid,793592db-0a9f-426e-8520-75e3dd328789.aspx</pingback:target>
      <dc:creator>papabear</dc:creator>
      <wfw:comment>http://www.myfriedmind.com/techBlog/CommentView,guid,793592db-0a9f-426e-8520-75e3dd328789.aspx</wfw:comment>
      <wfw:commentRss>http://www.myfriedmind.com/techBlog/SyndicationService.asmx/GetEntryCommentsRss?guid=793592db-0a9f-426e-8520-75e3dd328789</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <div>You may get an error like:
</div>
        <div> 
</div>
        <div>
          <i>Cannot open database requested in login 'SharedServicesDatabase'. Login fails.<br />
Login failed for user ' MYDOMAIN\MyServer$'.</i> Description: An unhandled exception
occurred during the execution of the current web request. Please review the stack
trace for more information about the error and where it originated in the code. 
<br /><br /><b>Exception Details: </b>System.Data.SqlClient.SqlException: Cannot open database
requested in login 'SharedServicesDatabase'. Login fails.<br />
Login failed for user ' MYDOMAIN\MyServer$'.
</div>
        <div> 
</div>
        <div>This is triggered by the odd fact (which I can not find documented anywhere)
that the server that is housing the Sharepoint site must have its computer account
listed as a user within the Shared Services database for the search to function. 
</div>
        <p>
        </p>
        <img width="0" height="0" src="http://www.myfriedmind.com/techBlog/aggbug.ashx?id=793592db-0a9f-426e-8520-75e3dd328789" />
      </body>
      <title>Cannot open database requested in login 'SharedServicesDatabase'. Login fails. Login failed for user MYDOMAIN\MyServer$</title>
      <guid isPermaLink="false">http://www.myfriedmind.com/techBlog/PermaLink,guid,793592db-0a9f-426e-8520-75e3dd328789.aspx</guid>
      <link>http://www.myfriedmind.com/techBlog/2009/06/02/CannotOpenDatabaseRequestedInLoginSharedServicesDatabaseLoginFailsLoginFailedForUserMYDOMAINMyServer.aspx</link>
      <pubDate>Tue, 02 Jun 2009 17:45:15 GMT</pubDate>
      <description>&lt;div&gt;You may get an error like:
&lt;/div&gt;
&lt;div&gt;&amp;nbsp;
&lt;/div&gt;
&lt;div&gt;&lt;i&gt;Cannot open database requested in login 'SharedServicesDatabase'. Login fails.&lt;br&gt;
Login failed for user ' MYDOMAIN\MyServer$'.&lt;/i&gt; Description: An unhandled exception
occurred during the execution of the current web request. Please review the stack
trace for more information about the error and where it originated in the code. 
&lt;br&gt;
&lt;br&gt;
&lt;b&gt;Exception Details: &lt;/b&gt;System.Data.SqlClient.SqlException: Cannot open database
requested in login 'SharedServicesDatabase'. Login fails.&lt;br&gt;
Login failed for user ' MYDOMAIN\MyServer$'.
&lt;/div&gt;
&lt;div&gt;&amp;nbsp;
&lt;/div&gt;
&lt;div&gt;This is triggered by the odd fact (which I can not find documented anywhere)
that the server that is housing the Sharepoint site must have its computer account
listed as a user within the Shared Services database for the search to function. 
&lt;/div&gt;
&lt;p&gt;
&lt;/p&gt;
&lt;img width="0" height="0" src="http://www.myfriedmind.com/techBlog/aggbug.ashx?id=793592db-0a9f-426e-8520-75e3dd328789" /&gt;</description>
      <comments>http://www.myfriedmind.com/techBlog/CommentView,guid,793592db-0a9f-426e-8520-75e3dd328789.aspx</comments>
      <category>Sharepoint 2007</category>
      <category>Sql</category>
    </item>
    <item>
      <trackback:ping>http://www.myfriedmind.com/techBlog/Trackback.aspx?guid=84e0d576-c92d-436a-bb2e-4a33dc2ee3f9</trackback:ping>
      <pingback:server>http://www.myfriedmind.com/techBlog/pingback.aspx</pingback:server>
      <pingback:target>http://www.myfriedmind.com/techBlog/PermaLink,guid,84e0d576-c92d-436a-bb2e-4a33dc2ee3f9.aspx</pingback:target>
      <dc:creator>papabear</dc:creator>
      <wfw:comment>http://www.myfriedmind.com/techBlog/CommentView,guid,84e0d576-c92d-436a-bb2e-4a33dc2ee3f9.aspx</wfw:comment>
      <wfw:commentRss>http://www.myfriedmind.com/techBlog/SyndicationService.asmx/GetEntryCommentsRss?guid=84e0d576-c92d-436a-bb2e-4a33dc2ee3f9</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <div class="ExternalClass74B6ED1E6F4B4A309E2DAADD5F91F0DE">
          <div>For those of you who are using Sharepoint's 'built-in' backup feature, you probably
already know that one of the biggest problems with it is that you can not automate
it directly. In order to do that you need to used AT -&gt;
</div>
          <div>AT 01:00 /every:1,2,3,4,5,6,7 cmd /c "stsadm.exe -o backup -directory <a href="file://myserver/mybackupshare">file://myserver/mybackupshare</a> -backupmethod
full"
</div>
          <div> 
</div>
          <div>This is not a showstopper. It works. However unless you have the correct perms
it will fail. Or, to be more specific, the Sql Service Account needs to be able to
read/write to that share. Again, this is the account that the Sql Service runs under.
Hopefully a domain account.
</div>
          <div> 
</div>
          <div>Also, if you are going to run it from the Sharepoint Central Administration Website,
the account you are logged in with needs those perms as well.
</div>
        </div>
        <img width="0" height="0" src="http://www.myfriedmind.com/techBlog/aggbug.ashx?id=84e0d576-c92d-436a-bb2e-4a33dc2ee3f9" />
      </body>
      <title>Sharepoint Backup Permissions or SqlException: Cannot open backup device '\\myserver\backups\spbr0000\00000024.bak'. Device error or device off-line</title>
      <guid isPermaLink="false">http://www.myfriedmind.com/techBlog/PermaLink,guid,84e0d576-c92d-436a-bb2e-4a33dc2ee3f9.aspx</guid>
      <link>http://www.myfriedmind.com/techBlog/2009/05/18/SharepointBackupPermissionsOrSqlExceptionCannotOpenBackupDeviceMyserverbackupsspbr000000000024bakDeviceErrorOrDeviceOffline.aspx</link>
      <pubDate>Mon, 18 May 2009 16:14:45 GMT</pubDate>
      <description>&lt;div class=ExternalClass74B6ED1E6F4B4A309E2DAADD5F91F0DE&gt;
&lt;div&gt;For those of you who are using Sharepoint's 'built-in' backup feature, you probably
already know that one of the biggest problems with it is that you can not automate
it directly. In order to do that you need to used AT -&amp;gt;
&lt;/div&gt;
&lt;div&gt;AT&amp;nbsp;01:00 /every:1,2,3,4,5,6,7 cmd /c "stsadm.exe -o backup -directory &lt;a href="file://myserver/mybackupshare"&gt;file://myserver/mybackupshare&lt;/a&gt; -backupmethod
full"
&lt;/div&gt;
&lt;div&gt;&amp;nbsp;
&lt;/div&gt;
&lt;div&gt;This is not a showstopper. It works. However unless you have the correct perms
it will fail. Or, to be more specific, the Sql Service Account needs to be able to
read/write to that share. Again, this is the account that the Sql Service runs under.
Hopefully a domain account.
&lt;/div&gt;
&lt;div&gt;&amp;nbsp;
&lt;/div&gt;
&lt;div&gt;Also, if you are going to run it from the Sharepoint Central Administration Website,
the account you are logged in with needs those perms as well.
&lt;/div&gt;
&lt;/div&gt;
&lt;img width="0" height="0" src="http://www.myfriedmind.com/techBlog/aggbug.ashx?id=84e0d576-c92d-436a-bb2e-4a33dc2ee3f9" /&gt;</description>
      <comments>http://www.myfriedmind.com/techBlog/CommentView,guid,84e0d576-c92d-436a-bb2e-4a33dc2ee3f9.aspx</comments>
      <category>Sharepoint 2007</category>
      <category>Sql</category>
    </item>
  </channel>
</rss>