<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>SQL from the Trenches</title>
	<atom:link href="http://devjef.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://devjef.wordpress.com</link>
	<description>«There&#039;s a bit of SQL in all of us»</description>
	<lastBuildDate>Fri, 24 May 2013 09:07:46 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='devjef.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>SQL from the Trenches</title>
		<link>http://devjef.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://devjef.wordpress.com/osd.xml" title="SQL from the Trenches" />
	<atom:link rel='hub' href='http://devjef.wordpress.com/?pushpress=hub'/>
		<item>
		<title>T-SQL Tuesday #42 &#8211; The Long and Winding Road</title>
		<link>http://devjef.wordpress.com/2013/05/14/t-sql-tuesday-42-the-long-and-winding-road/</link>
		<comments>http://devjef.wordpress.com/2013/05/14/t-sql-tuesday-42-the-long-and-winding-road/#comments</comments>
		<pubDate>Tue, 14 May 2013 06:42:18 +0000</pubDate>
		<dc:creator>DevJef</dc:creator>
				<category><![CDATA[T-SQL Tuesday]]></category>
		<category><![CDATA[Colleague]]></category>
		<category><![CDATA[Database]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQLFamily]]></category>

		<guid isPermaLink="false">http://devjef.wordpress.com/?p=1393</guid>
		<description><![CDATA[T-SQL Tuesday is a recurring blog party, that is started by Adam Machanic (Blog &#124; @AdamMachanic). Each month a blog will host the party, and everyone that want&#8217;s to can write a blog about a specific subject. This month the subject is &#8220;The Long and Winding Road&#8221;. If you want to read the opening post, [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devjef.wordpress.com&#038;blog=29084825&#038;post=1393&#038;subd=devjef&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>T-SQL Tuesday is a recurring blog party, that is started by Adam Machanic (<a href="http://sqlblog.com/blogs/adam_machanic/default.aspx" target="_blank">Blog</a> | <a href="http://twitter.com/adammachanic" target="_blank">@AdamMachanic</a>). Each month a blog will host the party, and everyone that want&#8217;s to can write a blog about a specific subject.</p>
<p>This month the subject is &#8220;The Long and Winding Road&#8221;. If you want to read the opening post, please click the image below to go to the party-starter: Wendy Pastrick (<a href="http://wendyverse.blogspot.com/" target="_blank">Blog</a> | <a href="http://twitter.com/wendy_dance" target="_blank">@wendy_dance</a>).</p>
<p><a target="_blank" href="http://wendyverse.blogspot.nl/2013/05/its-time-for-t-sqltuesday-42-long-and.html"><br />
<img class="aligncenter" src="https://dl.dropbox.com/u/46174238/Blog/Posts/TSQL2sDay/Images/TSQL2sDay_Logo.jpg" /><br />
</a></p>
<p>After I skipped the last few T-SQL Tuesday posts, I saw the topic Wendy suggested for this month. That&#8217;s an interesting one, so I&#8217;m kind of back again&#8230;</p>
<p>One particular sentences that stuck with me, was &#8220;Let&#8217;s make these stories about the tech and how that has led you down a certain path&#8221;. A few months ago, I <a href="http://devjef.wordpress.com/2013/02/21/without-pain-without-sacrifice-we-would-have-nothing/" target="_blank">blogged</a> about leaving my former employer. There I got a change to discover a bunch of new technologies and discover what I really wanted. But the path started earlier.</p>
<p>During my first internship, I started working as a desktop support engineer and help desk employee. This meant I needed to install, replace and fix PC&#8217;s, phones, network, etc. After the first internship (6 months), I stayed with the company as a part-time employee. Then I decided to stay there for my second internship of 6 months, which I filled working as a system administrator.</p>
<p>When I was still busy with exams and finishing my education, the company asked me to stay with them. They had an interesting role in mind for me: SQL Server consultant. At that time, I&#8217;ve never wrote a single query (except a few trials in my database classes at school), but I accepted the offer. The learning curve was pretty steep, but I managed with the help of my wonderful colleagues. My first experiences with SQL Server were very interesting, and it really triggered me to learn more about it, even though it was SQL Server 2000 back then.</p>
<p>After 2 years I got the opportunity to start as a .NET developer within the same company. Because several colleagues left, there was a high demand for software engineers. So with no knowledge of ASP and VB, I started to discover this new world. After a few months, I moved from ASP to ASP.NET, from VB to C#, and eventually worked with WCF, Silverlight, NHibernate, etc.</p>
<p>After 2.5 years of being a software engineer, I came back to the database world. I can&#8217;t explain why, but I missed something in my daily job that I had before. When searching for a new job, I found a company that seemed to fit my ideas of a great company and a huge challenge: multinational, young team, great colleagues, lots of learning opportunities, etc. There I started out as a BI- and SQL Server developer, and I found what I was missing in my previous job: data!</p>
<p>One thing I&#8217;ve learned after this wide variety of jobs, is that I love databases and data. In my current job of DBA I can combine the 2 things I love the most: data and technology. As a DBA I&#8217;m not only responsible for keeping the databases alive, but also for data quality, database performance, etc.</p>
<p>So this is the ultimate job for me, at least at the moment. But if I ever change jobs, I&#8217;m definitely not leaving the SQL Server world! Not only because I love working with databases and data, but also because of the wonderful community. At first I didn&#8217;t know what to think about the &#8220;SQL Family&#8221;, but now I know it practically IS a family. The people have the same issues as you, the same interests, and they love to help you out. So I&#8217;m never going to leave that behind again!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/devjef.wordpress.com/1393/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/devjef.wordpress.com/1393/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devjef.wordpress.com&#038;blog=29084825&#038;post=1393&#038;subd=devjef&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://devjef.wordpress.com/2013/05/14/t-sql-tuesday-42-the-long-and-winding-road/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/10c2cca49a46b534c1ece3efe1984426?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">devjef</media:title>
		</media:content>

		<media:content url="https://dl.dropbox.com/u/46174238/Blog/Posts/TSQL2sDay/Images/TSQL2sDay_Logo.jpg" medium="image" />
	</item>
		<item>
		<title>Draw.io &#8211; Free Modelling Tool</title>
		<link>http://devjef.wordpress.com/2013/05/01/draw-io-free-modelling-tool/</link>
		<comments>http://devjef.wordpress.com/2013/05/01/draw-io-free-modelling-tool/#comments</comments>
		<pubDate>Wed, 01 May 2013 12:11:18 +0000</pubDate>
		<dc:creator>DevJef</dc:creator>
				<category><![CDATA[Personal]]></category>
		<category><![CDATA[Modelling]]></category>
		<category><![CDATA[Tools]]></category>

		<guid isPermaLink="false">http://devjef.wordpress.com/?p=1345</guid>
		<description><![CDATA[One of the many tasks of a DBA, is to create documentation or designing your (new) environment. Last week, I started this journey myself. Normally I would use Microsoft Office Visio, but unfortunately I wasn&#8217;t able to get myself a license for that, and I didn&#8217;t want to use a trial version. So what other [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devjef.wordpress.com&#038;blog=29084825&#038;post=1345&#038;subd=devjef&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>One of the many tasks of a DBA, is to create documentation or designing your (new) environment. Last week, I started this journey myself. Normally I would use Microsoft Office Visio, but unfortunately I wasn&#8217;t able to get myself a license for that, and I didn&#8217;t want to use a trial version. So what other options do you have then?</p>
<p>In my quest to find a free to use modelling tool, I found <a href="https://www.draw.io/" target="_blank">draw.io</a>. It&#8217;s a free online modelling tool, with an amazing amount of options!</p>
<p>If you open the link, the web application will load. Once it&#8217;s loaded, you see a blank drawing. In this blank drawing, you can add your shapes, texts, etc.</p>
<p>You can click on General in the left column to collapse it, and then right-click on General. Now a menu will pop up that allows you to add more shapes to the menu:</p>
<p>&nbsp;<br />
<img src="https://dl.dropboxusercontent.com/u/46174238/Blog/Posts/DrawIOPost/AddMoreShapes.png"></p>
<p>&nbsp;<br />
For example, if you add the Rack shapes to the menu, you&#8217;re able to add all kinds of server rack images to your diagram. For example the racks from Dell:</p>
<p>&nbsp;<br />
<img src="https://dl.dropboxusercontent.com/u/46174238/Blog/Posts/DrawIOPost/AddedRackShapes.png"></p>
<p>&nbsp;<br />
So as you can see, there are a lot of possibilities when you use <a href="https://www.draw.io/" target="_blank">draw.io</a>. And if you ask me, it&#8217;s a good alternative if you need to draw up a diagram quickly, and don&#8217;t have Visio installed.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/devjef.wordpress.com/1345/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/devjef.wordpress.com/1345/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devjef.wordpress.com&#038;blog=29084825&#038;post=1345&#038;subd=devjef&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://devjef.wordpress.com/2013/05/01/draw-io-free-modelling-tool/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/10c2cca49a46b534c1ece3efe1984426?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">devjef</media:title>
		</media:content>

		<media:content url="https://dl.dropboxusercontent.com/u/46174238/Blog/Posts/DrawIOPost/AddMoreShapes.png" medium="image" />

		<media:content url="https://dl.dropboxusercontent.com/u/46174238/Blog/Posts/DrawIOPost/AddedRackShapes.png" medium="image" />
	</item>
		<item>
		<title>Moving system database: rocket science or piece of cake?</title>
		<link>http://devjef.wordpress.com/2013/04/29/moving-system-database-rocket-science-or-piece-of-cake/</link>
		<comments>http://devjef.wordpress.com/2013/04/29/moving-system-database-rocket-science-or-piece-of-cake/#comments</comments>
		<pubDate>Mon, 29 Apr 2013 06:26:27 +0000</pubDate>
		<dc:creator>DevJef</dc:creator>
				<category><![CDATA[SQL Server 2008]]></category>
		<category><![CDATA[Database]]></category>
		<category><![CDATA[Engine]]></category>
		<category><![CDATA[Instance]]></category>
		<category><![CDATA[Performance]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SSAS]]></category>
		<category><![CDATA[SSD]]></category>
		<category><![CDATA[tempdb]]></category>

		<guid isPermaLink="false">http://devjef.wordpress.com/?p=1309</guid>
		<description><![CDATA[Being a DBA often makes you the &#8220;Default Blame Acceptor&#8221;, according to Buck Woody (Website &#124; @buckwoody). This means that everything is your fault by default. Server broke down? Your fault! Database corrupt? Your fault! Query of a user doesn&#8217;t compile because of a syntax error? Yeah, you guessed right&#8230; Your fault! But on the [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devjef.wordpress.com&#038;blog=29084825&#038;post=1309&#038;subd=devjef&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>Being a DBA often makes you the &#8220;Default Blame Acceptor&#8221;, according to Buck Woody (<a href="http://buckwoody.com/" target="_blank">Website</a> | <a href="https://twitter.com/buckwoody" target="_blank">@buckwoody</a>). This means that everything is your fault by default. Server broke down? Your fault! Database corrupt? Your fault! Query of a user doesn&#8217;t compile because of a syntax error? Yeah, you guessed right&#8230; Your fault!</p>
<p>But on the other hand, you have a lot of opportunities to find out the best practices of doing things. An example of that is moving a system database. About two weeks ago we decided to order 4 SSD&#8217;s for our SQL Server. We plan to store tempdb and the SSAS data on these disks, hoping that it will reduce resource costs on our environment.</p>
<p>So with no experience of moving system databases, I started thinking about how to do this. You probably need to stop the SQL Server, move the MDF and LDF files, change the start-up options of SQL Server, start the service, hope that SQL Server finds the new location, etc. But after a quick peek I found a much simpler solution: just modify the current file location!</p>
<p>&nbsp;<br />
<u>Check the current location and file sizes</u><br />
Before moving your database (in this case I&#8217;m moving my tempdb), run the query below, and store the result just in case all goes south:</p>
<pre class="brush: sql; title: ; notranslate">
SELECT name, physical_name, state_desc, (size * 8 / 1024.00) AS InitialSize
FROM sys.master_files
WHERE database_id = DB_ID('tempdb');
</pre>
<p>&nbsp;<br />
The reason you also want to store the initial sizes, is that if you restart the SQL Service (one of the next steps), SQL Server will set the files to the default file sizes. And you don&#8217;t want to run on those default settings of course!</p>
<p>&nbsp;<br />
<u>Set the new file location</u><br />
You can set the new file location for your tempdb, by running the query below. In this example I&#8217;m moving my datafiles to the D:\ volume of my machine:</p>
<pre class="brush: sql; title: ; notranslate">
USE master
GO

ALTER DATABASE tempdb 
	MODIFY FILE (NAME = tempdev, FILENAME = 'D:\MSSQL\DATA\tempdb.mdf')
GO
ALTER DATABASE tempdb 
	MODIFY FILE (NAME = templog, FILENAME = 'D:\LOG\templog.ldf')
GO
</pre>
<p>&nbsp;<br />
After executing this statement, you&#8217;ll see a message like this appear in the Messages window:</p>
<p>&nbsp;</p>
<blockquote><p>
<i>The file &#8220;tempdev&#8221; has been modified in the system catalog. The new path will be used the next time the database is started.<br />
The file &#8220;templog&#8221; has been modified in the system catalog. The new path will be used the next time the database is started.<br />
</i>
</p></blockquote>
<p>&nbsp;<br />
So the file location is altered, but the running values are not changed until your machine is rebooted, or the SQL Service is restarted.</p>
<p>Now just restart the SQL Service (or the machine if you like to), and run the first query again. This way you can check if your tempdb is stored in the right folder, and if the initial sizes are correct:</p>
<pre class="brush: sql; title: ; notranslate">
SELECT name, physical_name, state_desc, (size * 8 / 1024.00) AS InitialSize
FROM sys.master_files
WHERE database_id = DB_ID('tempdb');
</pre>
<p>&nbsp;<br />
The service should stop and start without issues. After the restart you&#8217;ll see that SQL Server created a new MDF and LDF file at the new file location. After a successful restart, you can delete the MDF and LDF files from the old location.</p>
<p>&nbsp;<br />
<u>Now, was that so hard?</u><br />
So as you can see, not all changes in SQL Server are rocket science. One thing I&#8217;ve learned, is that from now on, I&#8217;m not going to assume the worst, and hope for the best!</p>
<p>&nbsp;<br />
<u><b>UPDATE</b></u><br />
As Pieter Vanhove (<a href="http://blogs.sqlug.be/pieter/" target="_blank">Blog</a> | <a href="https://twitter.com/Pieter_Vanhove" target="_blank">@Pieter_Vanhove</a>) mentions in his tweets about <a href="https://twitter.com/Pieter_Vanhove/status/328761491123761152" target="_blank">msdb/model</a> and <a href="https://twitter.com/Pieter_Vanhove/status/328761659411800064" target="_blank">master</a>, in some cases you need to do a little bit more work. Because the tempdb is the database with the least probable cause of breaking SQL Server (it&#8217;s recreated if the SQL service starts), you can move it by changing the settings.</p>
<p>On the restart, the &#8220;Running values&#8221; (current settings) are overwritten by the &#8220;Configured values&#8221; (new settings) you set with the query you ran, and tempdb is recreated.</p>
<p>But the other system databases require a little bit more effort. If you want to move master, model or msdb, check out <a href="http://msdn.microsoft.com/en-us/library/ms345408.aspx" target="_blank">this link</a>.</p>
<p>And thank you Pieter, for pointing out this stupid mishap to me!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/devjef.wordpress.com/1309/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/devjef.wordpress.com/1309/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devjef.wordpress.com&#038;blog=29084825&#038;post=1309&#038;subd=devjef&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://devjef.wordpress.com/2013/04/29/moving-system-database-rocket-science-or-piece-of-cake/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/10c2cca49a46b534c1ece3efe1984426?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">devjef</media:title>
		</media:content>
	</item>
		<item>
		<title>Deadlock Detector: Drop it like it&#8217;s hot!</title>
		<link>http://devjef.wordpress.com/2013/04/23/deadlock-detector-drop-it-like-its-hot/</link>
		<comments>http://devjef.wordpress.com/2013/04/23/deadlock-detector-drop-it-like-its-hot/#comments</comments>
		<pubDate>Tue, 23 Apr 2013 06:35:49 +0000</pubDate>
		<dc:creator>DevJef</dc:creator>
				<category><![CDATA[SQL Server 2008]]></category>
		<category><![CDATA[Database]]></category>
		<category><![CDATA[Engine]]></category>
		<category><![CDATA[msdb]]></category>
		<category><![CDATA[Object]]></category>
		<category><![CDATA[Performance]]></category>
		<category><![CDATA[Queues]]></category>
		<category><![CDATA[Services]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[Tools]]></category>

		<guid isPermaLink="false">http://devjef.wordpress.com/?p=1313</guid>
		<description><![CDATA[Last time I talked about the right tool for the right job. After that post, I noticed that during the nightly backups and job-runs, the SQL Server log filled up with deadlocks. Hoping to find the cause of this issue, I installed SQL Solutions Deadlock Detector. But I must warn you: it&#8217;s easier to install [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devjef.wordpress.com&#038;blog=29084825&#038;post=1313&#038;subd=devjef&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>Last time I talked about <a href="http://devjef.wordpress.com/2013/04/03/my-first-month-as-dba-the-right-tools-for-the-job/" target="_blank">the right tool for the right job</a>. After that post, I noticed that during the nightly backups and job-runs, the SQL Server log filled up with deadlocks. Hoping to find the cause of this issue, I installed SQL Solutions <a href="http://www.sqlsolutions.com/products/sql-deadlock-detector/index.html" target="_blank">Deadlock Detector</a>. But I must warn you: it&#8217;s easier to install it, then to get rid of it!</p>
<p>&nbsp;<br />
<u>Downloading it</u><br />
The drama starts with downloading the tool. If you go to the <a href="http://www.sqlsolutions.com/products/sql-deadlock-detector/index.html" target="_blank">download location</a> of the tool, there&#8217;s no mention of a trial-version. They do like to tell you that it&#8217;s free&#8230; A lot of times&#8230; But guess what&#8230; It isn&#8217;t!</p>
<p>&nbsp;<br />
<u>Installing it</u><br />
After downloading the tool, I started the installation. Again, there&#8217;s no mention of any kind that I&#8217;ve just downloaded a trial version, and that you need to pay for the tool after 7 days.</p>
<p>&nbsp;<br />
<u>Use it</u><br />
After the installation I started the tool. The tool shows you for the first time that you&#8217;re actually running a triall:</p>
<p><img src="https://dl.dropboxusercontent.com/u/46174238/Blog/Posts/DeadlockDetectorDropitlikeitshot/Images/StartupWindow.png"></p>
<p>After I clicked on &#8220;Try&#8221;, I was prompted to enter a SQL instance to run the tool on. After giving it my SQL Server instance location and name, it showed a pop-up really quick. Apparently it installed a bunch of crap on my SQL instance! Again, there is NO mention that it needs to install objects in your msdb! Also, SQL Server Agent needs to run on your instance, because Deadlock Detector can&#8217;t run without that.</p>
<p>So what does Deadlock Detector install? I&#8217;ve created a screenshot of all the objects that are installed:</p>
<p><img src="https://dl.dropboxusercontent.com/u/46174238/Blog/Posts/DeadlockDetectorDropitlikeitshot/Images/InstalledObjects.png"></p>
<p>&nbsp;<br />
<u>Uninstalling it</u><br />
Okay, the tool wasn&#8217;t what I was looking for, so I wanted to uninstall it. But how do I get rid of all those objects that were created in my msdb database?</p>
<p>First I uninstalled the tool, hoping that it would also drop all the objects it created. But at the end of the uninstall, it sent me to <a href="http://www.sqlsolutions.com/products/sql-deadlock-detector/Uninstall.html" target="_blank">this webpage</a>. So I&#8217;m suppost to download a special uninstaller to get rid of your installer?</p>
<p>Okay, so I downloaded the special installer-uninstaller, and ran it. Close, but no cigar&#8230; The tool ran, returned no errors, but the objects still existed. Running it again, ended with the same results.</p>
<p>To check it yourself, run this query:</p>
<pre class="brush: sql; title: ; notranslate">
SELECT *
FROM msdb.LakeSideLockLogger._LakeSide_DbTools_LockLog
</pre>
<p>If it&#8217;s still running you&#8217;ll see record appear that tell you that there were deadlocks on your system. Even though you closed the tool and, like me, expect it to shutdown, the services still run.</p>
<p>To check if the objects still exist on your server, run this query:</p>
<pre class="brush: sql; title: ; notranslate">
SELECT *
FROM msdb.sys.objects
WHERE 1 = 1
AND is_ms_shipped = 0
AND Name LIKE '_LakeSide%'
</pre>
<p>So what do you do then? Right, I sent the company a support call. I&#8217;ve waited more than a week by now, but still no reply. Not even a reply that they&#8217;ve received my mail. So a really, really bad service of SQL Solutions if you ask me&#8230;</p>
<p>So after a lot of searching, I saw a really small reference to another uninstall method: from the tool itself. So I&#8217;ve re-installed the tool, and tried that:</p>
<p><img src="https://dl.dropboxusercontent.com/u/46174238/Blog/Posts/DeadlockDetectorDropitlikeitshot/Images/Uninstall.png"></p>
<p>And that worked for me!</p>
<p>&nbsp;<br />
<u>Conclusion</u><br />
Apparently more people had issues with uninstalling the tool, looking at results like <a href="http://dba.stackexchange.com/questions/28092/sql-server-removing-service-queues" target="_blank">this</a>.</p>
<p>The thing I learned from this, is to dig a little bit deeper if I look at a new tool. The website of the tool&#8217;s manufacturer might not be the best source to find out how a tools functions&#8230;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/devjef.wordpress.com/1313/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/devjef.wordpress.com/1313/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devjef.wordpress.com&#038;blog=29084825&#038;post=1313&#038;subd=devjef&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://devjef.wordpress.com/2013/04/23/deadlock-detector-drop-it-like-its-hot/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/10c2cca49a46b534c1ece3efe1984426?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">devjef</media:title>
		</media:content>

		<media:content url="https://dl.dropboxusercontent.com/u/46174238/Blog/Posts/DeadlockDetectorDropitlikeitshot/Images/StartupWindow.png" medium="image" />

		<media:content url="https://dl.dropboxusercontent.com/u/46174238/Blog/Posts/DeadlockDetectorDropitlikeitshot/Images/InstalledObjects.png" medium="image" />

		<media:content url="https://dl.dropboxusercontent.com/u/46174238/Blog/Posts/DeadlockDetectorDropitlikeitshot/Images/Uninstall.png" medium="image" />
	</item>
		<item>
		<title>My first month as DBA &#8211; The right tools for the job</title>
		<link>http://devjef.wordpress.com/2013/04/03/my-first-month-as-dba-the-right-tools-for-the-job/</link>
		<comments>http://devjef.wordpress.com/2013/04/03/my-first-month-as-dba-the-right-tools-for-the-job/#comments</comments>
		<pubDate>Wed, 03 Apr 2013 10:48:02 +0000</pubDate>
		<dc:creator>DevJef</dc:creator>
				<category><![CDATA[SQL Server 2008]]></category>
		<category><![CDATA[SQL Server 2012]]></category>
		<category><![CDATA[sp_Blitz]]></category>
		<category><![CDATA[sp_WhoIsActive]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQL Server Management Studio]]></category>
		<category><![CDATA[SQLjobvis]]></category>
		<category><![CDATA[SSMS]]></category>
		<category><![CDATA[SSMSBoost]]></category>
		<category><![CDATA[Tools]]></category>

		<guid isPermaLink="false">http://devjef.wordpress.com/?p=1281</guid>
		<description><![CDATA[Last month I started my first real DBA job. Until then I only had &#8220;accidental DBA&#8221; experience, and I&#8217;m glad I got the opportunity to prove myself as a real full time DBA. As a SQL Server developer you and I both know that using the right tools can be a lifesaver. But my first [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devjef.wordpress.com&#038;blog=29084825&#038;post=1281&#038;subd=devjef&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>Last month I started my first real DBA job. Until then I only had &#8220;accidental DBA&#8221; experience, and I&#8217;m glad I got the opportunity to prove myself as a real full time DBA.</p>
<p>As a SQL Server developer you and I both know that using the right tools can be a lifesaver. But my first weeks as DBA gave me the feeling this is more important than ever before. Having the right tools can save you a lot of time, and can actually help you make time for the important stuff. In this blog I&#8217;ll try to show you which tools I use nowadays, and the reason why you should use them as well.</p>
<p>&nbsp;<br />
<u>SQL Server Management Studio (SSMS) for SQL Server 2012</u><br />
If you&#8217;re working with SQL Server, you&#8217;ll need a version of SSMS (3rd party tools excluded). My first experience was with SQL Server 2000, and back then the &#8220;Enterpise Manager&#8221; and &#8220;Query Analyzer&#8221; were a drama to work with. If you look at the last version of the SSMS that is shipped with SQL Server 2012, then you&#8217;ll see that SSMS has come a long way!</p>
<p>Because I&#8217;m administering SQL Server 2008R2, I can&#8217;t use SSMS 2012 for everything, but it&#8217;s still my main tool. Just because of the performance enhancements, and the Visual Studio look and feel.</p>
<p>You can download the studio as a separate installation from <a href="http://www.microsoft.com/en-us/download/details.aspx?id=29062" target="_blank">this location</a>.</p>
<p>&nbsp;<br />
<u>SSMSBoost</u><br />
One of my favorite SSMS add-ins is SSMSBoost. This allows you to quickly create and use snippets in your SSMS, script data with a few clicks, and quickly find objects in your databases.</p>
<p>SSMSBoost won the Bronze Community award for &#8220;Best Database Development Product&#8221; 2012, so I&#8217;m not the only one who appreciates this add-in! You can download the tool from <a href="http://www.ssmsboost.com/" target="_blank">their website</a>. After the installation, you can request a <a href="http://www.ssmsboost.com/generate-free-license-for-ssmsboost-ssms-add-in" target="_blank">free community license</a> on the website.</p>
<p>&nbsp;<br />
<u>sp_Blitz</u><br />
If you take over a server as DBA, there&#8217;s only one way to determine the health of that server: <a href="http://www.brentozar.com/blitz/" target="_blank">sp_Blitz</a>! This script, build by Brent Ozar&#8217;s company &#8220;Brent Ozar Unlimited&#8221; (<a href="http://www.brentozar.com/" target="_blank">Website</a> | <a href="https://twitter.com/BrentOzarULTD" target="_blank">@BrentOzarULTD </a>), gives you a full overview of the &#8220;health status&#8221; of your SQL Server.</p>
<p>This also gives you a list of items you might want to fix, in order to ensure a stable and maintainable environment. The items are sorted based on importance, so you know which items you need to fix first. An excellent start for every new environment!</p>
<p>You can download the sp_Blitz code from <a href="http://www.brentozar.com/blitz/" target="_blank">this location</a>.</p>
<p>&nbsp;<br />
<u>sp_WhoIsActive</u><br />
If you start out as a DBA it&#8217;s hard to find a good point to start from. What do you want to fix first? Your users keep complaining that they&#8217;re queries are running slow, your manager wants more and more performance from the same hardware without any real hardware changes, etc. A good point to start from is finding our which slow running queries and stored procedures your users are executing.</p>
<p>sp_WhoIsActive, written by Adam Machanic (<a href="http://sqlblog.com/blogs/adam_machanic/default.aspx" target="_blank">Blog</a> | <a href="https://twitter.com/adammachanic" target="_blank">@AdamMachanic </a>), gives you the ability to quickly gather this information, without any hassle. Once you&#8217;ve deployed the stored procedure to your machine, you can start using it to pinpoint issues on your SQL Server.</p>
<p>You can download the sp_WhoIsActive code from <a href="http://sqlblog.com/files/8/default.aspx" target="_blank">this location</a>.</p>
<p>&nbsp;<br />
<u>SQLjobvis</u><br />
The last hurdle I needed to take, is to find out which SQL Server Agent Jobs were running on our environment, and at which time. Because I didn&#8217;t want to document this manually, I tried to find a tool that did this for me. Then I came across SQLjobvis.</p>
<p>SQLjobvis, written by SQLsoft (<a href="http://www.sqlsoft.co.uk/" target="_blank">Website</a>), is a free tool that visualizes the jobs on your SQL Server. It shows you all jobs and the result of the execution. You can select the data you want to see by date, and with color codes it shows the result within the date range you set.</p>
<p>You can download SQLjobvis from <a href="http://www.sqlsoft.co.uk/sqljobvis.php" target="_blank">this location</a>.</p>
<p>&nbsp;<br />
<u>SQL Sentry Plan Explorer</u><br />
And last, but not least: SQL Sentry Plan Explorer. I&#8217;m glad Pieter Vanhove (<a href="http://blogs.sqlug.be/pieter/" target="_blank">Blog</a> | <a href="https://twitter.com/Pieter_Vanhove" target="_blank">@Pieter_Vanhove</a>) reminded me I forgot an <a href="https://twitter.com/Pieter_Vanhove/status/319407529220268033" target="_blank">important tool</a>!</p>
<p>SQL Sentry Plan Explorer, written by SQL Sentry Inc. (<a href="http://www.sqlsentry.com/" target="_blank">Website</a>), is a lightweight standalone app that helps you analyse execution plans. By making it more graphical than the default execution plan viewer in SSMS, it&#8217;s easier to spot the bottleneck.</p>
<p>You can download the tool from <a href="http://www.sqlsentry.com/plan-explorer/sql-server-query-view.asp" target="_blank">this location</a>. And don&#8217;t forget to install the SSMS add-in, so you can directly view your execution plan in the SQL Sentry Plan Explorer from SSMS, when you right-click your execution plan.</p>
<p>&nbsp;<br />
<u>What tools do you use?</u><br />
There are many more DBA&#8217;s out there, and every DBA has it&#8217;s own toolbelt. So I&#8217;d like to know which tools do YOU use to get the job done? Let me now by leaving a comment, or contact me by Twitter or mail, and I&#8217;ll add it to the list of must-haves!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/devjef.wordpress.com/1281/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/devjef.wordpress.com/1281/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devjef.wordpress.com&#038;blog=29084825&#038;post=1281&#038;subd=devjef&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://devjef.wordpress.com/2013/04/03/my-first-month-as-dba-the-right-tools-for-the-job/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/10c2cca49a46b534c1ece3efe1984426?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">devjef</media:title>
		</media:content>
	</item>
		<item>
		<title>Visualizing Spatial Data &#8211; Toggling map layers</title>
		<link>http://devjef.wordpress.com/2013/03/27/visualizing-spatial-data-toggling-map-layers/</link>
		<comments>http://devjef.wordpress.com/2013/03/27/visualizing-spatial-data-toggling-map-layers/#comments</comments>
		<pubDate>Wed, 27 Mar 2013 08:39:16 +0000</pubDate>
		<dc:creator>DevJef</dc:creator>
				<category><![CDATA[Spatial Data]]></category>
		<category><![CDATA[Geography]]></category>
		<category><![CDATA[Geometry]]></category>
		<category><![CDATA[GIS]]></category>
		<category><![CDATA[Reporting]]></category>
		<category><![CDATA[Reports]]></category>
		<category><![CDATA[Spatial Report]]></category>
		<category><![CDATA[SSRS]]></category>

		<guid isPermaLink="false">http://devjef.wordpress.com/?p=1265</guid>
		<description><![CDATA[Last time I showed you how to add a PushPin to your map control. But what if you want to toggle that (or any other) layer in your map control? The reason I wanted to do this, is that I want to allow the users of my report to toggle different layers in the map [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devjef.wordpress.com&#038;blog=29084825&#038;post=1265&#038;subd=devjef&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>Last time I showed you how to <a href="http://devjef.wordpress.com/2013/03/19/visualizing-spatial-data-show-locations-with-a-pinpoint/" target="_blank">add a PushPin to your map control</a>. But what if you want to toggle that (or any other) layer in your map control?</p>
<p>The reason I wanted to do this, is that I want to allow the users of my report to toggle different layers in the map control. That way, you can pre-build all the different layers you think your users need into a single report, and just let them toggle the layers themselves. That saves you a lot of time building a report for every single combination of layer-types.</p>
<p><u>Multi-layer map control</u><br />
In order to keep it simple, I used the report from my <a href="http://devjef.wordpress.com/2013/03/19/visualizing-spatial-data-show-locations-with-a-pinpoint/" target="_blank">previous post</a>. Specifically, the version with the standard PushPins. And the only layer I want them to be able to toggle, is the PushPin layer on top of the basic map.</p>
<p><u>Creating a parameter</u><br />
Because your want to present an easy solution to your users, I want to create a Boolean parameter that they can use to toggle the PushPin layer. To create this parameter, right-click on Parameters in Report Builder, and choose &#8220;Add Parameter&#8221;:</p>
<p><img src="http://dl.dropbox.com/u/46174238/Blog/Posts/TogglingMapLayers/Images/AddParameter.png"></p>
<p>In the general options window, make sure you fill in a Parameter Name, a question for your users (so they understand what they need to do), and a Data Type (in this case a Boolean, that&#8217;s either True or False):</p>
<p><img src="http://dl.dropbox.com/u/46174238/Blog/Posts/TogglingMapLayers/Images/ParameterGeneralOptions.png"></p>
<p>Because you don&#8217;t want to keep your users waiting if they open your report, you might want to give the Boolean a default value. You can do this by adding a default value to your Boolean:</p>
<p><img src="http://dl.dropbox.com/u/46174238/Blog/Posts/TogglingMapLayers/Images/ParameterDefaultValue.png"></p>
<p>By doing this, the Boolean is True by default. So the user doesn&#8217;t have to pick a value if he runs the report for the first time. This might come in handy if you need this as an extra feature in your report, and not a feature you need to configure before the report shows your data.</p>
<p><u>Expression</u><br />
Now you need to configure your map layer to use the parameter you created to toggle it. Double-click on your map control, and once you see the Map Layers menu on the right, you can do this by right-clicking on &#8220;Layer Data&#8221;:</p>
<p><img src="http://dl.dropbox.com/u/46174238/Blog/Posts/TogglingMapLayers/Images/LayerData.png"></p>
<p>Now click on Visibility, and under Layer visibility, click the last option, and press the Fx button:</p>
<p><img src="http://dl.dropbox.com/u/46174238/Blog/Posts/TogglingMapLayers/Images/ExpressionProperties.png"></p>
<p>In the Expression window, fill in the following expression:</p>
<p><img src="http://dl.dropbox.com/u/46174238/Blog/Posts/TogglingMapLayers/Images/Expression.png"></p>
<p>Now if you run the report, you&#8217;ll see the Boolean appear in the top bar of your report. By default, it&#8217;ll show the PushPins:</p>
<p><img src="http://dl.dropbox.com/u/46174238/Blog/Posts/TogglingMapLayers/Images/LayerTrue.png"></p>
<p>And if you change the Boolean to False and press &#8220;View Report&#8221;, you&#8217;ll see the may without PushPins:</p>
<p><img src="http://dl.dropbox.com/u/46174238/Blog/Posts/TogglingMapLayers/Images/LayerFalse.png"></p>
<p><u>With a little help from my friends&#8230;</u><br />
This post isn&#8217;t just written by me, but also with the help of Valentino Vranken (<a href="http://blog.hoegaerden.be/" target="_blank">Blog</a> | <a href="https://twitter.com/ValentinoV42" target="_blank">@ValentinoV42</a>. He helped me out on <a href="https://twitter.com/ValentinoV42/status/314300255598440448" target="_blank">Twitter</a>, because my expression didn&#8217;t work as expected. So Valentino: I really appreciated your help! Thank you! <img src='http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/devjef.wordpress.com/1265/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/devjef.wordpress.com/1265/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devjef.wordpress.com&#038;blog=29084825&#038;post=1265&#038;subd=devjef&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://devjef.wordpress.com/2013/03/27/visualizing-spatial-data-toggling-map-layers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/10c2cca49a46b534c1ece3efe1984426?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">devjef</media:title>
		</media:content>

		<media:content url="http://dl.dropbox.com/u/46174238/Blog/Posts/TogglingMapLayers/Images/AddParameter.png" medium="image" />

		<media:content url="http://dl.dropbox.com/u/46174238/Blog/Posts/TogglingMapLayers/Images/ParameterGeneralOptions.png" medium="image" />

		<media:content url="http://dl.dropbox.com/u/46174238/Blog/Posts/TogglingMapLayers/Images/ParameterDefaultValue.png" medium="image" />

		<media:content url="http://dl.dropbox.com/u/46174238/Blog/Posts/TogglingMapLayers/Images/LayerData.png" medium="image" />

		<media:content url="http://dl.dropbox.com/u/46174238/Blog/Posts/TogglingMapLayers/Images/ExpressionProperties.png" medium="image" />

		<media:content url="http://dl.dropbox.com/u/46174238/Blog/Posts/TogglingMapLayers/Images/Expression.png" medium="image" />

		<media:content url="http://dl.dropbox.com/u/46174238/Blog/Posts/TogglingMapLayers/Images/LayerTrue.png" medium="image" />

		<media:content url="http://dl.dropbox.com/u/46174238/Blog/Posts/TogglingMapLayers/Images/LayerFalse.png" medium="image" />
	</item>
		<item>
		<title>Visualizing Spatial Data &#8211; Show locations with a PushPin</title>
		<link>http://devjef.wordpress.com/2013/03/19/visualizing-spatial-data-show-locations-with-a-pinpoint/</link>
		<comments>http://devjef.wordpress.com/2013/03/19/visualizing-spatial-data-show-locations-with-a-pinpoint/#comments</comments>
		<pubDate>Tue, 19 Mar 2013 14:36:32 +0000</pubDate>
		<dc:creator>DevJef</dc:creator>
				<category><![CDATA[Spatial Data]]></category>
		<category><![CDATA[Geography]]></category>
		<category><![CDATA[Geometry]]></category>
		<category><![CDATA[GIS]]></category>
		<category><![CDATA[Reporting]]></category>
		<category><![CDATA[Reports]]></category>
		<category><![CDATA[Spatial Report]]></category>

		<guid isPermaLink="false">http://devjef.wordpress.com/?p=1244</guid>
		<description><![CDATA[After my last two posts (Creating a spatial report, Create an interactive report), I came across a feature I never saw before. Apparently if you add a point layer to your report, you get different layer-options in the list. Starting with a single layer To start off easy, you could use the same steps I [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devjef.wordpress.com&#038;blog=29084825&#038;post=1244&#038;subd=devjef&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>After my last two posts (<a href="http://devjef.wordpress.com/2013/03/11/visualizing-spatial-data-creating-a-spatial-report/" target="_blank">Creating a spatial report</a>, <a href="http://devjef.wordpress.com/2013/03/15/visualizing-spatial-data-create-an-interactive-report/" target="_blank">Create an interactive report</a>), I came across a feature I never saw before. Apparently if you add a point layer to your report, you get different layer-options in the list.</p>
<p><u>Starting with a single layer</u><br />
To start off easy, you could use the same steps I used to create my <a href="http://devjef.wordpress.com/2013/03/11/visualizing-spatial-data-creating-a-spatial-report/" target="_blank">first report</a>. This is a single layer report with a full map of (in this case) the Netherlands.</p>
<p>The next step is adding a few pushpins. How about visualizing the three biggest cities in the Netherlands: Amsterdam (790.000 people), Rotterdam (616.000) and Den Haag (The Hague, 502.000).</p>
<p><u>Creating a Point layer</u><br />
Before creating a point layer, you need to determine what data you want to present to your users. In my case, I chose the center of each city. This might not be the actual center, but I tried to get as close to the center as I could.</p>
<p>Now that you have your data, you can create the Point layer in your report. Start by double-clicking on your map control, and in the &#8220;Map Layers&#8221; window, click on &#8220;New layer wizard:</p>
<p><img src="http://dl.dropbox.com/u/46174238/Blog/Posts/ShowLocationsWithAPinpoint/Images/LayerWizard.png"></p>
<p>Now choose the bottom option &#8220;SQL Server spatial query&#8221;, and click next.</p>
<p>Choose the bottom option to add a new dataset to your report, and click next.</p>
<p>Click next to choose the datasource that&#8217;s already in your report, and click next.</p>
<p>Now click on the option &#8220;Edit as Text&#8221; in the query designer:</p>
<p><img src="http://dl.dropbox.com/u/46174238/Blog/Posts/ShowLocationsWithAPinpoint/Images/EditAsText.png"></p>
<p>Type or paste your query in the editor, and press the Run button. Once you&#8217;ve done that, you&#8217;ll see the result in the bottom window:</p>
<p><img src="http://dl.dropbox.com/u/46174238/Blog/Posts/ShowLocationsWithAPinpoint/Images/QueryDesigner.png"></p>
<p>In the next window, make sure you add a Point layer, and not a Polygon layer:</p>
<p><img src="http://dl.dropbox.com/u/46174238/Blog/Posts/ShowLocationsWithAPinpoint/Images/PointLayer.png"></p>
<p>Now you will see the new layers I mentioned before:</p>
<p><img src="http://dl.dropbox.com/u/46174238/Blog/Posts/ShowLocationsWithAPinpoint/Images/AnalyticalMarkerMap.png"></p>
<p>For this report, choose the bottom one: Analytical Marker Map, and click next.</p>
<p>In the next window, select the dataset that contains your points, and click next.</p>
<p>In the window with options, make sure you select the right type of marker (in this case PushPin):</p>
<p><img src="http://dl.dropbox.com/u/46174238/Blog/Posts/ShowLocationsWithAPinpoint/Images/LayerOptions.png"></p>
<p>Once you&#8217;ve done that, click Finish. Now you see a double layer map with 3 PinPoint on your map:</p>
<p><img src="http://dl.dropbox.com/u/46174238/Blog/Posts/ShowLocationsWithAPinpoint/Images/DoubleLayerMapWithPinPoints.png"></p>
<p><u>Using a custom PinPoint</u><br />
I can imagine that you might want to use your own PinPoint image on your report. This is possible, but remember this might screw up the readability of your report.</p>
<p>In the Map Layers menu, right click your point layer, and click Point Properties:</p>
<p><img src="http://dl.dropbox.com/u/46174238/Blog/Posts/ShowLocationsWithAPinpoint/Images/PointProperties.png"></p>
<p>Now change your marker type from PinPoint to Image, and click Import:</p>
<p><img src="http://dl.dropbox.com/u/46174238/Blog/Posts/ShowLocationsWithAPinpoint/Images/MarkerType.png"></p>
<p>Now if you select an image, the name of your image will show in the &#8220;Use this image&#8221; text box. If you want to, change the &#8220;Marker size&#8221;, so your logo will appear larger on the map. Now if you click OK, and run the report, you&#8217;ll see something like this:</p>
<p><img src="http://dl.dropbox.com/u/46174238/Blog/Posts/ShowLocationsWithAPinpoint/Images/MapWithMarker.png"></p>
<p>And if you can&#8217;t resist, you can download this EPIC marker <a href="http://dl.dropbox.com/u/46174238/Blog/Posts/ShowLocationsWithAPinpoint/Images/CustomMarker.png" target="_blank">right here</a> <img src='http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/devjef.wordpress.com/1244/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/devjef.wordpress.com/1244/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devjef.wordpress.com&#038;blog=29084825&#038;post=1244&#038;subd=devjef&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://devjef.wordpress.com/2013/03/19/visualizing-spatial-data-show-locations-with-a-pinpoint/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/10c2cca49a46b534c1ece3efe1984426?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">devjef</media:title>
		</media:content>

		<media:content url="http://dl.dropbox.com/u/46174238/Blog/Posts/ShowLocationsWithAPinpoint/Images/LayerWizard.png" medium="image" />

		<media:content url="http://dl.dropbox.com/u/46174238/Blog/Posts/ShowLocationsWithAPinpoint/Images/EditAsText.png" medium="image" />

		<media:content url="http://dl.dropbox.com/u/46174238/Blog/Posts/ShowLocationsWithAPinpoint/Images/QueryDesigner.png" medium="image" />

		<media:content url="http://dl.dropbox.com/u/46174238/Blog/Posts/ShowLocationsWithAPinpoint/Images/PointLayer.png" medium="image" />

		<media:content url="http://dl.dropbox.com/u/46174238/Blog/Posts/ShowLocationsWithAPinpoint/Images/AnalyticalMarkerMap.png" medium="image" />

		<media:content url="http://dl.dropbox.com/u/46174238/Blog/Posts/ShowLocationsWithAPinpoint/Images/LayerOptions.png" medium="image" />

		<media:content url="http://dl.dropbox.com/u/46174238/Blog/Posts/ShowLocationsWithAPinpoint/Images/DoubleLayerMapWithPinPoints.png" medium="image" />

		<media:content url="http://dl.dropbox.com/u/46174238/Blog/Posts/ShowLocationsWithAPinpoint/Images/PointProperties.png" medium="image" />

		<media:content url="http://dl.dropbox.com/u/46174238/Blog/Posts/ShowLocationsWithAPinpoint/Images/MarkerType.png" medium="image" />

		<media:content url="http://dl.dropbox.com/u/46174238/Blog/Posts/ShowLocationsWithAPinpoint/Images/MapWithMarker.png" medium="image" />
	</item>
		<item>
		<title>Visualizing Spatial Data &#8211; Create an interactive report</title>
		<link>http://devjef.wordpress.com/2013/03/15/visualizing-spatial-data-create-an-interactive-report/</link>
		<comments>http://devjef.wordpress.com/2013/03/15/visualizing-spatial-data-create-an-interactive-report/#comments</comments>
		<pubDate>Fri, 15 Mar 2013 13:51:33 +0000</pubDate>
		<dc:creator>DevJef</dc:creator>
				<category><![CDATA[Spatial Data]]></category>
		<category><![CDATA[Geography]]></category>
		<category><![CDATA[Geometry]]></category>
		<category><![CDATA[GIS]]></category>
		<category><![CDATA[Reporting]]></category>
		<category><![CDATA[Reports]]></category>
		<category><![CDATA[Spatial Report]]></category>
		<category><![CDATA[SQL Server]]></category>

		<guid isPermaLink="false">http://devjef.wordpress.com/?p=1229</guid>
		<description><![CDATA[In my previous blog post I showed you how to create a report containing spatial data. But what if you want to give your users a little bit more information. How about a mouse-over tooltip, of what they&#8217;re actually looking at? Or maybe even a click-through to another report or website? Let&#8217;s take a look [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devjef.wordpress.com&#038;blog=29084825&#038;post=1229&#038;subd=devjef&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>In my <a href="http://devjef.wordpress.com/2013/03/11/visualizing-spatial-data-creating-a-spatial-report/" target="_blank">previous blog post</a> I showed you how to create a report containing spatial data. But what if you want to give your users a little bit more information. How about a mouse-over tooltip, of what they&#8217;re actually looking at? Or maybe even a click-through to another report or website? Let&#8217;s take a look at how to achieve this.</p>
<p><u>Report</u><br />
I&#8217;m starting with the report that I created in my previous blog post. I&#8217;m not going to add data to the report, but instead change some options.</p>
<p><u>Mouseover tooltip</u><br />
Because you&#8217;re working with a full map in your report, it might be hard to see what kind of location you&#8217;re looking at. So the easiest way to fix this, is to add labels to your map control. But if you have a lot of small polygons, you might end up with somethings that looks like this:</p>
<p><img src="http://dl.dropbox.com/u/46174238/Blog/Posts/CreatingAClickableSpatialReport/Images/Labels.png"></p>
<p>In the image above you see the province of South-Holland. In the red rectangle, you see the 2nd largest city of the Netherlands: Rotterdam. But this illustrates the issue, that if you have a lot of small polygons, you won&#8217;t be able to see the labels.</p>
<p>So a workaround for this, is to add a tooltip (a mouseover label) to your report. This will show the label you selected, if you (or the user of your report) can see what the polygon represents. So how can we do that?</p>
<p>Go to your Design window, and right-click on a polygon in your map control, and click on &#8220;Polygon Properties&#8221;:</p>
<p><img src="http://dl.dropbox.com/u/46174238/Blog/Posts/CreatingAClickableSpatialReport/Images/PolygonProperties.png"></p>
<p>In the next window, click on the &#8220;Fx&#8221; button next to the Tooltip textblock:</p>
<p><img src="http://dl.dropbox.com/u/46174238/Blog/Posts/CreatingAClickableSpatialReport/Images/ToolTipFx.png"></p>
<p>In this window, enter the following expression:</p>
<p><img src="http://dl.dropbox.com/u/46174238/Blog/Posts/CreatingAClickableSpatialReport/Images/TooltipExpression.png"></p>
<p>Now if you hover over your report, you&#8217;ll see the following tooltip:</p>
<p><img src="http://dl.dropbox.com/u/46174238/Blog/Posts/CreatingAClickableSpatialReport/Images/ShownTooltip.png"></p>
<p>&nbsp;<br />
<u>Clickable polygons</u><br />
If you want to spice things up even more, you could also add a click-event to your report. In my case, I wanted to add a click-event that showed the users the Wikipedia page of the city.</p>
<p>Start by right-clicking again on a polygon in your map control, and click &#8220;Polygon Properties&#8221;. Now go to the Action tab, and click the &#8220;Fx&#8221; button again:</p>
<p><img src="http://dl.dropbox.com/u/46174238/Blog/Posts/CreatingAClickableSpatialReport/Images/URLFx.png"></p>
<p>Now fill in the following expression:</p>
<p><img src="http://dl.dropbox.com/u/46174238/Blog/Posts/CreatingAClickableSpatialReport/Images/URLExpression.png"></p>
<p>Now if you go to your report, you can click on a polygon and it will open up the Wikipedia page for that specific city.</p>
<p>Another option would be to open up a report via a click-event, to show your users more information from another report. Or maybe you want to redirect your users to a specific page on your intranet. Just imagine all the opportunities&#8230; <img src='http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/devjef.wordpress.com/1229/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/devjef.wordpress.com/1229/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devjef.wordpress.com&#038;blog=29084825&#038;post=1229&#038;subd=devjef&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://devjef.wordpress.com/2013/03/15/visualizing-spatial-data-create-an-interactive-report/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/10c2cca49a46b534c1ece3efe1984426?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">devjef</media:title>
		</media:content>

		<media:content url="http://dl.dropbox.com/u/46174238/Blog/Posts/CreatingAClickableSpatialReport/Images/Labels.png" medium="image" />

		<media:content url="http://dl.dropbox.com/u/46174238/Blog/Posts/CreatingAClickableSpatialReport/Images/PolygonProperties.png" medium="image" />

		<media:content url="http://dl.dropbox.com/u/46174238/Blog/Posts/CreatingAClickableSpatialReport/Images/ToolTipFx.png" medium="image" />

		<media:content url="http://dl.dropbox.com/u/46174238/Blog/Posts/CreatingAClickableSpatialReport/Images/TooltipExpression.png" medium="image" />

		<media:content url="http://dl.dropbox.com/u/46174238/Blog/Posts/CreatingAClickableSpatialReport/Images/ShownTooltip.png" medium="image" />

		<media:content url="http://dl.dropbox.com/u/46174238/Blog/Posts/CreatingAClickableSpatialReport/Images/URLFx.png" medium="image" />

		<media:content url="http://dl.dropbox.com/u/46174238/Blog/Posts/CreatingAClickableSpatialReport/Images/URLExpression.png" medium="image" />
	</item>
		<item>
		<title>Visualizing Spatial Data &#8211; Creating a spatial report</title>
		<link>http://devjef.wordpress.com/2013/03/11/visualizing-spatial-data-creating-a-spatial-report/</link>
		<comments>http://devjef.wordpress.com/2013/03/11/visualizing-spatial-data-creating-a-spatial-report/#comments</comments>
		<pubDate>Mon, 11 Mar 2013 19:26:24 +0000</pubDate>
		<dc:creator>DevJef</dc:creator>
				<category><![CDATA[Spatial Data]]></category>
		<category><![CDATA[Geography]]></category>
		<category><![CDATA[Geometry]]></category>
		<category><![CDATA[GIS]]></category>
		<category><![CDATA[Reporting]]></category>
		<category><![CDATA[Reports]]></category>
		<category><![CDATA[Spatial Report]]></category>
		<category><![CDATA[SQL Server]]></category>

		<guid isPermaLink="false">http://devjef.wordpress.com/?p=1212</guid>
		<description><![CDATA[In the last few posts in the series, I showed you how to enrich your dataset with spatial data. Now you need to start thinking about how you want to visualize your data, so that (for example) your business analysts can start using the data. But how do you start with that? For every report [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devjef.wordpress.com&#038;blog=29084825&#038;post=1212&#038;subd=devjef&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>In the <a href="http://devjef.wordpress.com/spatial-data-series/" target="_blank">last few posts in the series</a>, I showed you how to enrich your dataset with spatial data. Now you need to start thinking about how you want to visualize your data, so that (for example) your business analysts can start using the data. But how do you start with that?</p>
<p>For every report I create, I use Report Builder 3.0 myself. This tool is a bit smaller and more responsive than the Business Intelligence Development Studio (BIDS).</p>
<p><u>Create the basic report first</u><br />
Starting to build your report starts with creating a blank report from the menu in Report Builder:</p>
<p><img src="http://dl.dropbox.com/u/46174238/Blog/Posts/CreatingASpatialReport/Images/BlankReport.png"></p>
<p>Once you&#8217;ve done that, you need to add a data source to your report:</p>
<p><img src="http://dl.dropbox.com/u/46174238/Blog/Posts/CreatingASpatialReport/Images/CreateDataSource.png"></p>
<p>Then add a map control to your report, by right-clicking on you report, and choose Map:</p>
<p><img src="http://dl.dropbox.com/u/46174238/Blog/Posts/CreatingASpatialReport/Images/CreateMapControl.png"></p>
<p>Double-click on the map control, and in the menu that appears on the right, choose &#8220;New layer wizard&#8221;:</p>
<p><img src="http://dl.dropbox.com/u/46174238/Blog/Posts/CreatingASpatialReport/Images/NewLayerWizard.png"></p>
<p>Click the last option (SQL Server spatial query) and click next.</p>
<p>Now you&#8217;re asked if you would like to create a new dataset in you report. In this case, you can just click next.</p>
<p>The same counts for the next step, datasources. Just select the datasource you created earlier, and click next.</p>
<p>In the next menu, we can select the data we want to use. In this case, I just want to select a city name and a spatial object. You can write this query in your SQL Server Management Studio (SSMS), or in this window. I wrote it in SSMS, and I want to copy it to my report. If you want to do the same, you need to click the option &#8220;Edit as Text&#8221;:</p>
<p><img src="http://dl.dropbox.com/u/46174238/Blog/Posts/CreatingASpatialReport/Images/EditAsText.png"></p>
<p>Just paste your query into the editor, and press the run button. Report Builder will retrieve your data, and shows you the results below:</p>
<p><img src="http://dl.dropbox.com/u/46174238/Blog/Posts/CreatingASpatialReport/Images/RunQuery.png"></p>
<p>Click next, and select the options you like in the next few menus. I&#8217;ll stick with the basic options. I didn&#8217;t change anything in the first menu, and in the next chose &#8220;Basic Map&#8221;:</p>
<p><img src="http://dl.dropbox.com/u/46174238/Blog/Posts/CreatingASpatialReport/Images/BasicMap.png"></p>
<p>Click next, click Finish. There you go, you just created your very first Spatial Report! <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><img src="http://dl.dropbox.com/u/46174238/Blog/Posts/CreatingASpatialReport/Images/ReportFinal.png"></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/devjef.wordpress.com/1212/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/devjef.wordpress.com/1212/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devjef.wordpress.com&#038;blog=29084825&#038;post=1212&#038;subd=devjef&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://devjef.wordpress.com/2013/03/11/visualizing-spatial-data-creating-a-spatial-report/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/10c2cca49a46b534c1ece3efe1984426?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">devjef</media:title>
		</media:content>

		<media:content url="http://dl.dropbox.com/u/46174238/Blog/Posts/CreatingASpatialReport/Images/BlankReport.png" medium="image" />

		<media:content url="http://dl.dropbox.com/u/46174238/Blog/Posts/CreatingASpatialReport/Images/CreateDataSource.png" medium="image" />

		<media:content url="http://dl.dropbox.com/u/46174238/Blog/Posts/CreatingASpatialReport/Images/CreateMapControl.png" medium="image" />

		<media:content url="http://dl.dropbox.com/u/46174238/Blog/Posts/CreatingASpatialReport/Images/NewLayerWizard.png" medium="image" />

		<media:content url="http://dl.dropbox.com/u/46174238/Blog/Posts/CreatingASpatialReport/Images/EditAsText.png" medium="image" />

		<media:content url="http://dl.dropbox.com/u/46174238/Blog/Posts/CreatingASpatialReport/Images/RunQuery.png" medium="image" />

		<media:content url="http://dl.dropbox.com/u/46174238/Blog/Posts/CreatingASpatialReport/Images/BasicMap.png" medium="image" />

		<media:content url="http://dl.dropbox.com/u/46174238/Blog/Posts/CreatingASpatialReport/Images/ReportFinal.png" medium="image" />
	</item>
		<item>
		<title>What do you want to be when you grow up?</title>
		<link>http://devjef.wordpress.com/2013/03/01/what-do-you-want-to-be-when-you-grow-up/</link>
		<comments>http://devjef.wordpress.com/2013/03/01/what-do-you-want-to-be-when-you-grow-up/#comments</comments>
		<pubDate>Fri, 01 Mar 2013 09:52:15 +0000</pubDate>
		<dc:creator>DevJef</dc:creator>
				<category><![CDATA[Personal]]></category>
		<category><![CDATA[DBA]]></category>
		<category><![CDATA[Job]]></category>
		<category><![CDATA[SQL Server]]></category>

		<guid isPermaLink="false">http://devjef.wordpress.com/?p=1198</guid>
		<description><![CDATA[Last week I told you that I&#8217;m about to change jobs. Because the contract wasn&#8217;t signed yet, I could tell you what my next challenge was going to be. But now I&#8217;m glad I can tell you where I&#8217;m going to end up next: I&#8217;m going to become a DBA! I&#8217;m so glad I can [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devjef.wordpress.com&#038;blog=29084825&#038;post=1198&#038;subd=devjef&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>Last week I <a href="http://devjef.wordpress.com/2013/02/21/without-pain-without-sacrifice-we-would-have-nothing/" target="_blank">told you</a> that I&#8217;m about to change jobs. Because the contract wasn&#8217;t signed yet, I could tell you what my next challenge was going to be. But now I&#8217;m glad I can tell you where I&#8217;m going to end up next: I&#8217;m going to become a DBA!</p>
<p>I&#8217;m so glad I can finally tell you the good news! I&#8217;m so excited to start my next challenge! From next week, I&#8217;ll be a Microsoft SQL Server DBA. And if all things work out in the first few months, the planning is that my job will also include Oracle, MySQL, and MongoDB later on.</p>
<p>But for now, my challenge is to become a DBA with expert knowledge of Microsoft SQL Server, and all the features that ship with it. As far as I know now, my planning for the upcoming year is to build a test environment for the SQL Server environment they have now, and a migration of the system to SQL Server 2012. That sounds like a hard work for my first year, but I&#8217;m really excited!</p>
<p>Until now, I only worked as a SQL Server developer with a few DBA tasks. The last years I started thinking about my future, and what I really wanted. The only thing I wanted to try out but never had the chance to, was becoming a DBA. And now I get a chance to prove myself as a fulltime DBA. This might end up getting my head blown off the first few months, but I&#8217;m excited to test my knowledge and skills, and to expand them.</p>
<p>Thinking about next week makes me both nervous and happy. Feeling happy because I can prove myself (and others) that I can actually do the things people told me I would never accomplish, and nervous because I&#8217;m stepping out of my comfort zone. But I&#8217;m totally convinced I get all the help that I need to succeed from my new colleagues, and my SQL Family.</p>
<p>Last year I experienced the commitment and dedication to help one another in the SQL Server community. That&#8217;s why they call it the SQL Family. Because it&#8217;s a hardworking community, that&#8217;s always willing to help you if you need them. They helped me out on several occasions, and I try to help them as much as I can. And with them on my side, the upcoming period is going to be a success! <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/devjef.wordpress.com/1198/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/devjef.wordpress.com/1198/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devjef.wordpress.com&#038;blog=29084825&#038;post=1198&#038;subd=devjef&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://devjef.wordpress.com/2013/03/01/what-do-you-want-to-be-when-you-grow-up/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/10c2cca49a46b534c1ece3efe1984426?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">devjef</media:title>
		</media:content>
	</item>
	</channel>
</rss>
