Jekyll2022-11-17T19:27:10+00:00https://warthurton.com/feed.xmlwarthurton.comA tiny simple blog with posts about SQL Server, Business Intelligence, Games, Backpacking, and all the other things that interest me.Restart SQL Server DB Mail2019-08-27T19:02:06+00:002019-08-27T19:02:06+00:00https://warthurton.com/sqlserver/2019/08/27/restart-sqlserver-dbmail<p>SQL Server DB Mail will occasionaly use a crazy amount of memory and/or resources. I have added the following to SQL Servers for years as an Agent Job.</p>
<figure class="highlight"><pre><code class="language-sql" data-lang="sql"><span class="c1">--Stop DBMail</span>
<span class="n">use</span> <span class="n">msdb</span><span class="p">;</span>
<span class="k">go</span>
<span class="k">execute</span> <span class="n">dbo</span><span class="p">.</span><span class="n">sysmail_stop_sp</span><span class="p">;</span>
<span class="k">go</span>
<span class="c1">--Start DBMail</span>
<span class="n">use</span> <span class="n">msdb</span><span class="p">;</span>
<span class="k">go</span>
<span class="k">execute</span> <span class="n">dbo</span><span class="p">.</span><span class="n">sysmail_start_sp</span><span class="p">;</span>
<span class="k">go</span>
<span class="c1">--Check the status of DBMail</span>
<span class="n">use</span> <span class="n">msdb</span><span class="p">;</span>
<span class="k">go</span>
<span class="k">execute</span> <span class="n">sysmail_help_status_sp</span><span class="p">;</span>
<span class="k">go</span></code></pre></figure>SQL Server DB Mail will occasionaly use a crazy amount of memory and/or resources. I have added the following to SQL Servers for years as an Agent Job.Redownloading Console Games2015-03-22T00:00:00+00:002015-03-22T00:00:00+00:00https://warthurton.com/2015/03/22/redownload-console-games<p>For some reason it is much harder than it should be to find links to re-download your Playstation and XBOX games. Here there are in one play.</p>
<p><a href="https://store.playstation.com/#!/en-us/download/list">PlayStation®Store US</a></p>
<p><a href="https://live.xbox.com/en-US/download/history">XBOX Live US</a></p>
<p>This is more for me than anybody else.</p>For some reason it is much harder than it should be to find links to re-download your Playstation and XBOX games. Here there are in one play.List Microsoft Azure VMs2015-02-28T00:00:00+00:002015-02-28T00:00:00+00:00https://warthurton.com/2015/02/28/list-microsoft-azure-vms<p><em>Update:</em> I am not sure if these are of any use anymore</p>
<h3 id="get-all-microsoft-published-azure-vms">Get all Microsoft Published Azure VMs</h3>
<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>( Get-AzureVMImage | where-object { $_.PublisherName -like "Microsoft*" } ) | Format-List -Property Label, ImageName -GroupBy PublisherName | Out-String
</code></pre></div></div>
<h3 id="scratch-testing-queries">Scratch Testing Queries</h3>
<p><em>Table</em></p>
<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>( Get-AzureVMImage | where-object { $_.PublisherName -like "*Visual*Studio*" } ) | Format-Table -Property Label, ImageName -AutoSize -GroupBy PublisherName | Out-String
</code></pre></div></div>
<p><em>List</em></p>
<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>( Get-AzureVMImage | where-object { $_.PublisherName -like "*Visual*Studio*" } ) | Format-List -Property Label, ImageName -GroupBy PublisherName | Out-String
</code></pre></div></div>Update: I am not sure if these are of any use anymore Get all Microsoft Published Azure VMsSleeping Dogs DLC dat List (Original PC Version)2013-01-15T00:00:00+00:002013-01-15T00:00:00+00:00https://warthurton.com/2013/01/15/sleeping-dogs-dlc-dat-list-original-pc-version<p>Disable by moving out of install folder.</p>
<script src="https://gist.github.com/0b081df850ad7557b6df738bb20c3ed5.js"> </script>Disable by moving out of install folder.