<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Forem: Emmanuel Duchene</title>
    <description>The latest articles on Forem by Emmanuel Duchene (@dotnet_emmanuel).</description>
    <link>https://forem.com/dotnet_emmanuel</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1146826%2F18190a1c-080f-4127-876f-ad41875a0f70.jpeg</url>
      <title>Forem: Emmanuel Duchene</title>
      <link>https://forem.com/dotnet_emmanuel</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/dotnet_emmanuel"/>
    <language>en</language>
    <item>
      <title>The 'SELECT' Few: Enhancing SSMS with SQL Add-Ons and tweaks</title>
      <dc:creator>Emmanuel Duchene</dc:creator>
      <pubDate>Tue, 28 Nov 2023 13:22:23 +0000</pubDate>
      <link>https://forem.com/dotnet_emmanuel/the-select-few-enhancing-ssms-with-sql-add-ons-and-tweaks-n4k</link>
      <guid>https://forem.com/dotnet_emmanuel/the-select-few-enhancing-ssms-with-sql-add-ons-and-tweaks-n4k</guid>
      <description>&lt;p&gt;So, the first programming course being over, we have now moved over from C# to SQL, leaving Visual Studio for SSMS. At least for a couple of weeks. I had not worked with databases before, at least not that way. I had mostly used database tables within cartography adn geodata analysis to retrieve and display data graphically but using a query builder and not real SQL queries.&lt;/p&gt;

&lt;p&gt;I find it quite fun and relatively intuitive. Most often satisfying. SQL is not a difficult language per say but sometimes feels like it was made up by a programmer who kinda sucked and thought they could make it more natural to write, which, somehow, it is. I guess it feels that way because it's been around since the 1970s, which is, all in all, pretty impressive. This is all a joke, SQL is a powerful language that will let you filter and display anything you want.&lt;/p&gt;

&lt;p&gt;I am enjoying it but some formatting conventions and best practices can be quite tedious and not very easy on your fingers, should you choose to follow them. For instance, capitalization of keywords. Of course, you're free to ignore them but I like to follow these conventions to make the code more readable and easier to understand. However, it kinda hurts after a while, having to hold shift for full words or expressions, or having to enable/disable caps all the time. Also, I'm lazy.&lt;/p&gt;

&lt;h2&gt;
  
  
  SQL Complete
&lt;/h2&gt;

&lt;p&gt;I have spent quite some time researching possible settings,  add-ons or tricks, and they are many, but mostly behing paywalls and some of them would have you sell a kidney on the darknet to be able to finance, especially as a poor student. But I am not easily defeated when it comes to be lazy, si I persevered and found dbForge's &lt;em&gt;SQL Complete&lt;/em&gt; add-on for SSMS, which lets you tweak the formatting of your SQL code. You can for example choose to automatically enclose identifiers within square brackets (and even choose conditions for this). You can also use existing formatting profiles, provided by SQL Complete or use them as templates to create your own formatting profile, saved as an xml document om your machine, should you want to use it across different machines. Within these profile, you are able to edit any formatting for any command (tabs, line breaks before and after, size of tabs, etc.). The possibilities are pretty much infinite. Not actually, but I swear you'll find what you need. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--oxQV_FPg--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/l56cy6qbnpati98tu8ns.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--oxQV_FPg--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/l56cy6qbnpati98tu8ns.png" alt="Screenshot of formatting profile" width="800" height="501"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Oh and I almost forgot, you can even ask it to format whole folders with &lt;code&gt;.sql&lt;/code&gt; files on your computer. I know...&lt;/p&gt;

&lt;p&gt;What more to ask? Well, on top of that, it's free. The Express version of SQL Complete is completely free. Upon download and set up, you'll get a Trial of their premium version first and it will downgrade to Express when the trial expires. You will lose some functionality after that but most of the formating settings will remain. Even if for a couple of weeks, it is very worth the try.&lt;br&gt;
You can get it &lt;a href="https://www.devart.com/dbforge/sql/sqlcomplete/editions.html"&gt;here&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Use your favorite VS Code theme in SSMS
&lt;/h2&gt;

&lt;p&gt;This great &lt;a href="https://github.com/tcartwright/SSMSThemeEditor"&gt;Github repository&lt;/a&gt; by &lt;a href="https://github.com/tcartwright"&gt;Tim Cartwright&lt;/a&gt; will take you through the steps of customizing your SSMS theme, because let's face it, the default theme is very bad, both for the eyes and the soul. It is very surprising that Microsoft hasn't made it possible to customize it or implemented a real dark mode into SSMS. &lt;/p&gt;

&lt;p&gt;You can follow the instructions on this repo to the letter or you can mix them with a few other processes to get SSMS to look exactly like you want, which I did. &lt;/p&gt;

&lt;p&gt;My all time favorite VS Code theme is &lt;a href="https://marketplace.visualstudio.com/items?itemName=lakshits11.monokai-drake"&gt;&lt;em&gt;Monokai Drake&lt;/em&gt;&lt;/a&gt; and I use it for absolutely everything, VS Code, Visual Studio, Obsidian and now SSMS. To get any VS Code theme to work in SSMS, you need to convert it into a &lt;code&gt;.pkgdef&lt;/code&gt;. Easy, right? Well, actually not so hard thanks to &lt;a href="https://github.com/microsoft/theme-converter-for-vs#getting-a-themes-json-file"&gt;this tutorial&lt;/a&gt;. Follow the instructions: start by creating the theme's &lt;code&gt;.JSON&lt;/code&gt; file and then go back to &lt;em&gt;Using the tool&lt;/em&gt;. At step 6, choose the second option. If you want to use your favorite theme in Visual Studio too, keep following the instructions on how to create a &lt;code&gt;.vsix&lt;/code&gt; file. &lt;/p&gt;

&lt;p&gt;Once you have the &lt;code&gt;.pkgdef&lt;/code&gt; file, go back to the &lt;em&gt;&lt;a href="https://github.com/tcartwright/SSMSThemeEditor/wiki/How-Do-I-install-Custom-Color-Themes-for-SSMS%3F"&gt;VS Color Themes&lt;/a&gt;&lt;/em&gt; tutorial and follow the instructions to install the theme manually. Basically, go to wherever SSMS is installed on your computer, by default &lt;code&gt;C:\Program Files (x86)\Microsoft SQL Server Management Studio 19\Common7\IDE\Extensions&lt;/code&gt;, create a &lt;code&gt;VSColorThemes&lt;/code&gt; folder and paste the &lt;code&gt;.pkgdef&lt;/code&gt; file you created earlier. Launch SSMS and change the theme. Voilà! Note that the &lt;em&gt;Object Explorer&lt;/em&gt; and &lt;em&gt;Results&lt;/em&gt; window will remain white and you'll have to live with it.&lt;br&gt;
Mine looks like this:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--inn3EKOB--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/5d5iytgacca64plelnk2.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--inn3EKOB--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/5d5iytgacca64plelnk2.jpg" alt="SSMS with custom theme" width="800" height="531"&gt;&lt;/a&gt; &lt;/p&gt;

&lt;h2&gt;
  
  
  SQL Shades
&lt;/h2&gt;

&lt;p&gt;If you can't live with it, forget using a custom theme and use &lt;em&gt;&lt;a href="https://www.sqlshades.com/"&gt;SQL Shades&lt;/a&gt;&lt;/em&gt; instead. The colors are not customizable in its current version, but the whole program will be in dark mode. Of course, it's free! &lt;/p&gt;

&lt;p&gt;That's all for now, hope your SQL life will be smoother with these tips!&lt;/p&gt;

</description>
      <category>sql</category>
      <category>ssms</category>
      <category>database</category>
      <category>dbms</category>
    </item>
    <item>
      <title>13 years, and welcome to The Nerd Heap!</title>
      <dc:creator>Emmanuel Duchene</dc:creator>
      <pubDate>Mon, 02 Oct 2023 07:48:57 +0000</pubDate>
      <link>https://forem.com/dotnet_emmanuel/13-years-and-welcome-to-the-nerd-heap-1b1l</link>
      <guid>https://forem.com/dotnet_emmanuel/13-years-and-welcome-to-the-nerd-heap-1b1l</guid>
      <description>&lt;p&gt;13 years. One might even add thirteen &lt;strong&gt;long&lt;/strong&gt; years. This is what it took me, Emmanuel, 35, living in Eskilstuna, Sweden, to realize teaching middle school English and French was not for me anymore. The reasons are many and I won't elaborate on them but let's say teaching teenagers thirteen years ago was not the same as teaching them now. &lt;/p&gt;

&lt;p&gt;Well, actually, this is a lie. It took less than thirteen years to have this epiphany decide it was enough and time  had come to do something else with my life had come.&lt;/p&gt;

&lt;p&gt;What to do was pretty obvious, I like computers, always have, even though I got my first one quite late, at age 15, during the golden age of AIM and MSN messenger. I was pretty active on Myspace (RIP) too, convinced I was actually interacting with actual celebrities who'd spend their time talking to strangers and listening to my music. &lt;/p&gt;

&lt;p&gt;I have been hobby programming for a few years and it seems like something that suits me well. So, I found this .NET software engineer degree at a local university of applied science, Campus Nyköping. The timing was great as my parental leave was coming to an end, last winter. I applied, with high hopes of getting in. It's something I hade been thinking about for a few years but without really taking the jump. Now was the right time and I received support from my wife, who, let's be honest probably had enough, herself, of hearing me say how much I hated my job. I applied for many similar degrees but this one was the one I wanted. It is local, designed in partnership with local IT companies crying for .NET developers. Two internship periods during the two year studies, hopefully one foot in already at the end of it. The chances of landing a job are high. &lt;/p&gt;

&lt;p&gt;So I went back to work, for a few months because I had to, and in June, I received an e-mail: I was in!&lt;/p&gt;

&lt;p&gt;It's now been over a month and I cruise at full speed towards becoming a .NET developer. &lt;/p&gt;

&lt;p&gt;So, anyway. All this to say I'll be posting about my "journey" (don't you hate it when people talk about their life changes as journeys? I certainly do), the challenges of software development on my patience, my achievements (&lt;em&gt;"YES!! the console prints prime numbers!"&lt;/em&gt;), deceptions, doubts AND random nerd stuff no one ever told you about in school. &lt;/p&gt;

&lt;p&gt;Welcome to &lt;strong&gt;The Nerd Heap&lt;/strong&gt;!&lt;/p&gt;

</description>
      <category>fromteachertosoftwaredeveloper</category>
      <category>dotnet</category>
      <category>careerdevelopment</category>
      <category>nerdheap</category>
    </item>
  </channel>
</rss>
