[{"content":"Over the last year, I’ve been in consolidation mode at work with our SQL Server instances. The primary reason for the consolidation was driven by SQL Server 2008/2008R2 going out of support, but it was also a great exercise in reviewing all our SQL Server instances and asking the question “Does this instance need to live on its own?”. I was surprised by the number of instances that we could combine and databases that have lived on after an application was decommissioned. The great part about this project is it has bled into my personal life. Doing a review on life is a good way to trim the fat. I found junk around the house to send to Goodwill, extra credit cards that I didn’t need anymore and found a way to stick with my YNAB budget to reach some saving goals.\nTake a walk through your house/apartment and see if you can find things that are collecting dust. Donate those items and give them a new life for someone else. Take stock in your finances and see if there are any advantages in consolidating your debt. As I learned from YNAB, give every dollar a job. Review your expenses and decide if everything is in check. Do you have software subscriptions that you don’t use anymore? Do you have multiple cloud storage providers and you could consolidate and make managing your data easier?\nAs the 1st quarter of 2019 comes to and end, now is a great time to consolidate things in your life and set yourself up for success with your goals in 2019.\n","permalink":"https://sqlnikon.com/2019/03/25/consolidating-life/","summary":"\u003cp\u003eOver the last year, I’ve been in \u003ca href=\"/2019/03/18/sql-server-2008-2008r2-migration/\"\u003econsolidation mode\u003c/a\u003e at work with our SQL Server instances. The primary reason for the consolidation was driven by SQL Server 2008/2008R2 going out of support, but it was also a great exercise in reviewing all our SQL Server instances and asking the question “Does this instance need to live on its own?”. I was surprised by the number of instances that we could combine and databases that have lived on after an application was decommissioned. \u003c/p\u003e","title":"Consolidating Life"},{"content":" End of Life... As many of you know, mainstream support for SQL Server 2008 and 2008R2 ended back on July 9th of 2014. Extended support is active now and that is set to expire on July 9th of 2019. After July 9th, no security fixes will be made available. It is extremely important for you to move all your database off of and 2008/2008R2 instances to a supported instance of SQL Server.\nWe started our process back in 2017 to understand some of the application changes required for the database move. We have a mix of custom and vendor applications. The main goal of the migration was to update our documentation around the database \u0026amp; application relationships and bring all our custom databases up to SQL16 standards. We’re big fans of OneNote. It is a great way to document our databases and applications along with projects like our migration off of SQL Server 2008/2008R2. We created a template checklist that we could use for each custom database that we created. For the vendor databases, it was more of a manual process because each vendor had a different process for migrating databases.\nThe checklist consists of these pre-migration steps:\nCompare schema between prod and dev/test. We want to make sure we don’t overwrite new objects under dev/test if they have not been deployed to production. Our main gain was to try and use a copy of the production database as a fresh start for dev/test. Use Microsoft\u0026rsquo;s Data Migration Assistant to scan the SQL08/08R2 database for any objects that might cause issues under SQL16. Do a metadata search across other databases no the same instance. Because some of our databases cross-reference other databases, we wanted to search all objects and look for references to the current database that we are migrating. If there are references, we need to validate they are in use, and if so, migrate all databases together. Search through SSRS \u0026amp; SSIS for data sources that use the database that we are migrating. If we find a reference, we need to make sure and update all SSRS \u0026amp; SSIS projects with the new connection string. The above findings were discussed as a group to determine the best migration steps. Once the plan was approved by all members of the team, we moved forward with the dev/test migration so the developers had a platform to test against. Here are the high level steps for our migration script:\nRestore a copy of the production database under dev/test. Script out the permissions under the old instance so we can make sure and carry them over. Drop any production database users from the dev/test restored database. Create the server and database principals for the applications to authenticate with. Set the correct database owner. Update the compatibility level to 130. Create a SECONDARY file group and move all user objects to the new file group. Create database security roles and assign database principals. Enable query store Run SQL Vulnerability Assessment and baseline/correct any issues. Update any SSRS \u0026amp; SSIS projects under dev/test with new connection strings. Test Test Test Once we were happy with testing, we scheduled the production cut-over with our business partners and ran through the same steps as above. We are more than 75% of the way through our SQL08/08R2 databases and are on target to have everything migrated by June. This project would have not been possible without scripts posted by members of the SQL Server Community. Special shout outs to Aaron Bertrand for his script to move objects between file groups, Jason Strate for his script to index all FKs, and S. Kusen for his script to script out permissions within a database.\n","permalink":"https://sqlnikon.com/2019/03/18/sql-server-2008-2008r2-migration/","summary":"\u003cfigure class=\"alignleft is-resized\"\u003e\n\u003cimg src=\"/wp-content/uploads/2019/03/1286201062.jpeg\" class=\"wp-image-1012\" width=\"256\" height=\"161\" /\u003e\n\u003cfigcaption\u003eEnd of Life...\u003c/figcaption\u003e\n\u003c/figure\u003e\n\u003cp\u003eAs many of you know, \u003ca href=\"https://blogs.msdn.microsoft.com/sqlreleaseservices/end-of-mainstream-support-for-sql-server-2008-and-sql-server-2008-r2/\"\u003emainstream support\u003c/a\u003e for SQL Server 2008 and 2008R2 ended back on July 9th of 2014. \u003ca href=\"https://support.microsoft.com/en-us/lifecycle/search/1044\"\u003eExtended support\u003c/a\u003e is active now and that is set to expire on July 9th of 2019. After July 9th, no security fixes will be made available. It is extremely important for you to move all your database off of and 2008/2008R2 instances to a supported instance of SQL Server.\u003cbr\u003e\nWe started our process back in 2017 to understand some of the application changes required for the database move. We have a mix of custom and vendor applications. The main goal of the migration was to update our documentation around the database \u0026amp; application relationships and bring all our custom databases up to SQL16 standards. \u003c/p\u003e","title":"SQL Server 2008/2008R2 Migration"},{"content":" Shane O’Neill (b|t) is hosting this month’s edition of #TSQL2sDay. Shane’s charged to us is to think back when we had a difficult time with project/task and used our internal mojo (cookie jar) for energy to keep going.\nWe have custom applications written to support the faculty, staff, and students. Most of these have a SQL Server database to store the information. As with most shops, we have used various versions of SQL Server over the years to support our business partners. The old adage, “if it ain’t broke, don’t fix it” holds true for some of our older SQL Server instances. For those instances, we didn’t make an attempt to migrate off of them until it was required. Well, that time has come. We realized last year that SQL Server 2008 and 2008 R2 were losing their extended support and that would mean no more security updates. We didn’t want to increase our security risk to our data so we started the process of planning the migration to SQL Server 2016. After reviewing our database inventory, we found ~30 databases that needed to be migrated or decommissioned by July 9th, 2019. Having a hard deadline for a project is sometimes a nice way to back into the required tasks. But as we started looking through the databases, we realized that some of the apps that fronted the databases have not been touched in years. The first round of eliminations allowed us to ask questions like “Is this application still in use”. You would be surprised how many apps serve their purpose for a year or so and just fall off (similar to SSRS reports). We also started to realize that some of our applications had cross-references to other databases and that moving one database could break other applications. The review gave me a headache thinking about the dependencies and how we were going to approach the migrations. This is when it is time to dig deep and reach into my cookie jar for inspiration. I have found over the years that large problems can be easily solved by breaking them into smaller chunks. The quote that I use frequently is from a book written by Gary Keller and Jay Papasan titled “The ONE Thing: The Surprisingly Simple Truth Behind Extraordinary Results”:\n“What’s the ONE Thing you can do such that by doing it everything else will be easier or unnecessary?”\nThis sentence has helped me countless times starting on projects that seemed like monsters. It even helps me combat procrastination because by completing a simple step it helps me start down the path of project completion. I hope you can benefit from my cookie jar and keep it stored for your next monster project.\n","permalink":"https://sqlnikon.com/2019/03/12/t-sql-tuesday-112-cookie-monster/","summary":"\u003cfigure class=\"alignleft\"\u003e\n\u003cfigure\u003e\n\u003ca href=\"https://nocolumnname.blog/2019/03/05/t-sql-tuesday-112-dipping-into-your-cookie-jar/\"\u003e\u003cimg src=\"/wp-content/uploads/2017/12/sqltuesday.png\" class=\"wp-image-662\" /\u003e\u003c/a\u003e\n\u003c/figure\u003e\n\u003c/figure\u003e\n\u003cp\u003eShane O’Neill (\u003ca href=\"https://nocolumnname.blog\"\u003eb\u003c/a\u003e|\u003ca href=\"https://twitter.com/SOZDBA\"\u003et\u003c/a\u003e) is hosting this month’s edition of #TSQL2sDay. Shane’s charged to us is to think back when we had a difficult time with project/task and used our internal mojo (cookie jar) for energy to keep going.\u003c/p\u003e\n\u003cp\u003e\u003cbr\u003e\nWe have custom applications written to support the faculty, staff, and students. Most of these have a SQL Server database to store the information. As with most shops, we have used various versions of SQL Server over the years to support our business partners. The old adage, “if it ain’t broke, don’t fix it” holds true for some of our older SQL Server instances. For those instances, we didn’t make an attempt to migrate off of them until it was required. Well, that time has come. We realized last year that SQL Server 2008 and 2008 R2 were losing their \u003ca href=\"https://blogs.msdn.microsoft.com/sqlreleaseservices/end-of-mainstream-support-for-sql-server-2008-and-sql-server-2008-r2/\"\u003eextended support\u003c/a\u003e and that would mean no more security updates. We didn’t want to increase our security risk to our data so we started the process of planning the migration to SQL Server 2016. \u003c/p\u003e","title":"T-SQL Tuesday #112 Cookie Monster"},{"content":" This month’s #tsql2sday is being hosted by Any Leonard (b|t). He asks a simple question that gets at the heart of what motivates us, “Why do you do what you do?”.\nFor me, it is about helping and sharing with others. From the database administration point of view, I love helping others with solving business problems with data. I have a knack for data and enjoy understanding what the business issue is so that I can see how data can solve it. By getting involved in various projects, I get a better understanding of how the business operates and allows me to be proactive and start suggesting solutions.\nOutside of the office, photography and cooking are my passions. I love sharing both of these with others. I used to have a small photography business but found the money got in the way of the joy of photography. Now I just use photography as a service project and share the results and it brings me a ton of joy. On the cooking side, watching someone enjoy a few ribs is the best feeling in the world. I’m starting to think about catering but worry about how the money will take away from the joy of cooking. I’m hoping I can get some help on that side so I can just concentrate on the grill.\n","permalink":"https://sqlnikon.com/2019/02/12/t-sql-tuesday-111-why-do-you-do-what-you-do/","summary":"\u003cfigure class=\"alignleft\"\u003e\n\u003cfigure\u003e\n\u003ca href=\"https://andyleonard.blog/2019/02/t-sql-tuesday-111-what-is-your-why/\"\u003e\u003cimg src=\"/wp-content/uploads/2017/12/sqltuesday.png\" class=\"wp-image-662\" /\u003e\u003c/a\u003e\n\u003c/figure\u003e\n\u003c/figure\u003e\n\u003cp\u003eThis month’s #tsql2sday is being hosted by Any Leonard (\u003ca href=\"https://andyleonard.blog\"\u003eb\u003c/a\u003e|\u003ca href=\"https://twitter.com/andyleonard\"\u003et\u003c/a\u003e). He asks a simple question that gets at the heart of what motivates us, “Why do you do what you do?”.\u003c/p\u003e\n\u003cp\u003eFor me, it is about helping and sharing with others. From the database administration point of view, I love helping others with solving business problems with data. I have a knack for data and enjoy understanding what the business issue is so that I can see how data can solve it. By getting involved in various projects, I get a better understanding of how the business operates and allows me to be proactive and start suggesting solutions.\u003c/p\u003e","title":"T-SQL Tuesday #111 - Why do you do what you do?"},{"content":"I remember the days when my metabolism allowed me to eat anything in sight. I was staying busy playing outside without the draw of electronic devices. Jump ahead 30 years and life catches up with you. I’ve struggled over the past 30 years with the roller coaster ride of weight gain/loss. There are times when my head is straight and I can workout multiple times a week and eat healthy foods. Contrast that with loafing on the coach and downing a back of chips in one sitting; this is my struggle.\nThe good news is I have the foundation for change, I just need to make sure and utilized the correct pillars. There are folks in the SQL Server community that have written about there own journey and I’m using them as motivation. Thomas LaRock (b|t), Jason Hall (b|t), Brent Ozar (b|t), John Morehouse (b|t), and Andy Leonard (b|t) have written about what works for them and they have inspired me to create my own list of success factors.\nMy first pillar is making sure I bringing lunch into work. I’ve found that if I don’t bring something in from home I tend to head out at lunch and end up eating a heavy lunch. As you can imagine, the afternoon is harder to get through, and that causes me to go grab some soda (trying to limit) for a caffeine boost. Planning ahead when cooking dinner at home enables you to set aside a few portions for lunch later in the week or freezer bags for the following month.\nMy second pillar is getting the family on board. Without family support, you’ll find yourself coming home after a long day with takeout waiting for you. Eating healthier is easier when everyone in the house is doing the same thing. Instead of frying some chicken, spend the time and fire up the Weber and grill the chicken. Simple changes can pay dividends on the scale.\nMy third pillar is fitness. I’ve been a member of our local F3 workout group for almost 4 years. Even though fitness is not the main ingredient for weight-loss, it keeps me active. The men of F3 keep me motivated on a daily basis. There are different types of workouts each day that pushes me physically. I’m looking forward to getting back into running and using the fitness to help me drop some additional weight. The FIA organization is just like F3 but for women. I recommend both organizations for a different take on exercising and service to your community.\nMy first small win is bringing lunch into work each day this week and not having any soda for the last 24 hours. I’m working on keeping those going and treat each day as a new opportunity/challenge. I’ll keep you posted how this goes.\n","permalink":"https://sqlnikon.com/2019/02/06/healthy-living/","summary":"\u003cp\u003eI remember the days when my metabolism allowed me to eat anything in sight. I was staying busy playing outside without the draw of electronic devices. Jump ahead 30 years and life catches up with you. I’ve struggled over the past 30 years with the roller coaster ride of weight gain/loss. There are times when my head is straight and I can workout multiple times a week and eat healthy foods. Contrast that with loafing on the coach and downing a back of chips in one sitting; this is my struggle.\u003c/p\u003e","title":"Healthy Living"},{"content":"What a trip! I was able to attend an Elon Study Abroad trip across the pond to learn about some of the great composers. This was a three week trip with stops in Germany, Austria, and Hungary. We studied Bach, Mozart, Beethoven, Wagner, and Bartok. We attended a few operas, a chamber music concert, and listened to a 90 piece orchestra (outstanding). I attend as a staff member, one of the many perks working for Elon University and higher education.\nLondon Philharmonic Orchestra in Budapest The trip started back in the fall with a weekly course to get everyone introduced to the composers. The students were required to write a few papers during the course but luckily for me, I didn’t have to do all the course work. We had a few lessons on the German language and some of the cultural difference with the United States.\nMonument to the Battle of the Nations As the course started, I was known as Photographer Doug. My goal was to document the trip with photos of the group interacting with the guides and various locations we visited. This was the reason I hauled all my photography gear over with my laptop. This allowed me to process daily photos and get them posted to my photo site. The benefit of this was some of the students linked to my photos within some of the blog posts that were required during the trip. I received some great feedback on the photos and it motivated me to take more shots throughout the trip. By the third week though, I was definitely ready to take a break from the camera.\nWhen I wasn’t behind the camera, I was known as Student Doug. I attended all the events that the students were attending. The goal of Elon’s Study Abroad program is to create global leaders for our students. I wanted to immerse myself within the class and take advantage of what the class had to offer. It is not every day you get to sit through a 5 hour Richard Wagner opera in Vienna, Austria. The chance to walk through Beethoven’s living quarters and Mozart’s birth house gives you a different perspective on classical music and the history in Europe.\nThe part of the course I was not expecting was the interactions with the students and the professors. There were 23 students in the course along with two professors. I was happy that the course consisted of some classroom work before we all hopped on a plane together. This gave all of us a chance to get to know each other a bit. It was one thing to talk during class, but once you step on a plane, train, or bus with 26 other people for 3 weeks, you really get to know everyone.\nMatt Buckmaster and Andrea Sinn really made me feel comfortable during the class and trip. Because of my love of photography, I even did a little presentation on mobile phone photography tips and tricks for the students. Matt and Andrea approached the course from two different angles and it really worked great. Matt was the music side of the team and Andrea brought the history lessons.\nMatt, Andrea, and myself It took me a few days to get comfortable with the students. I’m an introvert at heart, but all it took was a dinner invite from a group of students and I was back in college again, can you say Old School! It was great exchanging stories with them outside of the traditional classroom. I graduated from App State in 1993 so college is not fresh in my mind. With my job at Elon, I don’t get the opportunity to interact with students, so this was an excellent opportunity to understand Elon students better. It was great being able to toast over beers and talk about what it is like to be a college student at Elon.\nIt took me a few days to get comfortable with the students. I’m an introvert at heart, but all it took was a dinner invite from a group of students and I was back in college again, can you say Old School! It was great exchanging stories with them outside of the traditional classroom. I graduated from App State in 1993 so college is not fresh in my mind. With my job at Elon, I don’t get the opportunity to interact with students, so this was an excellent opportunity to understand Elon students better. It was great being able to toast over beers and talk about what it is like to be a college student at Elon.\nProst! One of the highlights was learning about Darties, a.k.a. Day Parties, from the students. These are held on Saturday afternoon mostly at off-campus housing. I’ve been experimenting with BBQ catering and we talked about the plentiful opportunities to sell some BBQ during these parties. This is one of my goals for spring before some of the student on this trip graduate.\nI’m now a raving fan for the global learning opportunities for staff members at Elon. 6 staff members are selected each year to accompany classes around the world. The application is simple and the chances to be selected from a random drawing are very high. Here is a video produced to promote the program for staff members.\nI\u0026rsquo;ll never forgot this trip and the friendships made.\n","permalink":"https://sqlnikon.com/2019/01/30/elon-study-abroad/","summary":"\u003cp\u003eWhat a trip! I was able to attend an \u003ca href=\"https://www.elon.edu/u/academics/global-education-center/\"\u003eElon Study Abroad\u003c/a\u003e trip across the pond to learn about some of the great composers. This was a three week trip with stops in Germany, Austria, and Hungary. We studied Bach, Mozart, Beethoven, Wagner, and Bartok. We attended a few operas, a chamber music concert, and listened to a 90 piece orchestra (outstanding). I attend as a staff member, one of the many perks working for Elon University and higher education.\u003c/p\u003e","title":"Elon Study Abroad"},{"content":"Today we took a day trip to Dachau Concentration Camp. This was the 1st and model camp for all of the other concentration camps. The camp had prisoners from 1933 up till 1945. It is hard to explain how powerful it is to walk on the grounds of Dachau. Pictures don’t do it justice, but I believe I did a good job being respectful while capturing the horrors of Dachau.\nYou can see the rest of the photos under my photo site.\n","permalink":"https://sqlnikon.com/2019/01/08/somber-day/","summary":"\u003cp\u003eToday we took a day trip to \u003ca href=\"https://en.wikipedia.org/wiki/Dachau_concentration_camp\"\u003eDachau Concentration Camp\u003c/a\u003e. This was the 1st and model camp for all of the other concentration camps. The camp had prisoners from 1933 up till 1945. It is hard to explain how powerful it is to walk on the grounds of Dachau. Pictures don’t do it justice, but I believe I did a good job being respectful while capturing the horrors of Dachau.\u003c/p\u003e\n\u003cdiv class=\"gallery\"\u003e\n\u003ca href=\"/wp-content/uploads/2019/01/20190108-DSC_4527.jpg\"\u003e\u003cimg src=\"/wp-content/uploads/2019/01/20190108-DSC_4527.jpg\" alt=\"\" loading=\"lazy\"\u003e\u003c/a\u003e\n\u003ca href=\"/wp-content/uploads/2019/01/20190108-DSC_4578.jpg\"\u003e\u003cimg src=\"/wp-content/uploads/2019/01/20190108-DSC_4578.jpg\" alt=\"\" loading=\"lazy\"\u003e\u003c/a\u003e\n\u003ca href=\"/wp-content/uploads/2019/01/20190108-DSC_4596.jpg\"\u003e\u003cimg src=\"/wp-content/uploads/2019/01/20190108-DSC_4596.jpg\" alt=\"\" loading=\"lazy\"\u003e\u003c/a\u003e\n\u003ca href=\"/wp-content/uploads/2019/01/20190108-DSC_4664.jpg\"\u003e\u003cimg src=\"/wp-content/uploads/2019/01/20190108-DSC_4664.jpg\" alt=\"\" loading=\"lazy\"\u003e\u003c/a\u003e\n\u003c/div\u003e\n\u003cp\u003eYou can see the rest of the photos under my \u003ca href=\"https://sqlnikon.smugmug.com/2019/2019-01-08-Duchau/\"\u003ephoto site\u003c/a\u003e.\u003c/p\u003e","title":"Somber Day"},{"content":"Our first full day in Munich was spent at the Deutsches Museum and a walking tour of the inner city of Munich. The Deutsches Museum is the world’s largest science and technology museum. Our guide walked us through the highlights since we only had an hour and a half to walk through. Much like the Smithsonian Museum in Washington D.C., you would need at least 3 full days to take in all the exhibits. It was cool to see an Enigma machine from WWII and the first Z3 programmable calculator.\nThe walking tour through Munich was amazing. Most of the city was destroyed during the bombing runs by the Allies but the rebuild efforts have paid off. Munich is known for their beer houses and Oktoberfest. As we walked you could see beer houses tucked away in various alleyways. I stopped for lunch at Zum Spöckmeier close to St. Mary’s square and had some really nice dark beer from Paulaner Brewery.\nI have a free day on Wednesday and plan to go back through the town and take some photos.\nYou can see the rest of the photos from the museum and Munich on my photo site.\n","permalink":"https://sqlnikon.com/2019/01/08/inner-city-munich/","summary":"\u003cp\u003eOur first full day in Munich was spent at the \u003ca href=\"https://www.deutsches-museum.de/en/information/\"\u003eDeutsches Museum\u003c/a\u003e and a walking tour of the inner city of Munich. The Deutsches Museum is the world’s largest science and technology museum. Our guide walked us through the highlights since we only had an hour and a half to walk through. Much like the Smithsonian Museum in Washington D.C., you would need at least 3 full days to take in all the exhibits. It was cool to see an \u003ca href=\"https://en.wikipedia.org/wiki/Enigma_machine\"\u003eEnigma machine\u003c/a\u003e from WWII and the first \u003ca href=\"https://en.wikipedia.org/wiki/Z3_(computer)\"\u003eZ3 programmable calculator\u003c/a\u003e.\u003c/p\u003e","title":"Inner City Munich"},{"content":"We left Leipzig in the morning for a bus ride to Munich. On the way, we stopped in Bayreuth, home of the Bayreuth Festspielhaus and the Richard Wagner Museum. Bayreuth has the charm of a small German Town. Most of the Christmas decorations were still up, as with Leipzig, so it was nice to see the town decorated.\nRichard Wagner was born in Leipzig Germany but had his own opera house built in Bayreuth. This opera house has perfect acoustics and is still studied today on how that was accomplished. We were not allowed to take photos inside the opera house and within the museum, but I did have some time to walk about town and take photos outside of Wagner’s museum.\nMost people don’t know about Wagner’s effect but all you have to do is watch a few clips from movies and cartoons to see his impact. Bugs Bunny’s Kill The Rabbit Opera was made possible by Wagner’s composition. The “Ride of the Valkyries” from Apocalypse Now has Wagner’s music in the background.\nYou can see the rest of the photos from Bayreuth under my photo site.\n","permalink":"https://sqlnikon.com/2019/01/08/kill-the-rabit-opera/","summary":"\u003cp\u003eWe left Leipzig in the morning for a bus ride to Munich. On the way, we stopped in Bayreuth, home of the \u003ca href=\"https://en.wikipedia.org/wiki/Bayreuth_Festspielhaus\"\u003eBayreuth Festspielhaus\u003c/a\u003e and the \u003ca href=\"https://en.wikipedia.org/wiki/Richard_Wagner\"\u003eRichard Wagner\u003c/a\u003e Museum. Bayreuth has the charm of a small German Town. Most of the Christmas decorations were still up, as with Leipzig, so it was nice to see the town decorated.\u003c/p\u003e\n\u003cp\u003eRichard Wagner was born in Leipzig Germany but had his own opera house built in Bayreuth. This opera house has perfect acoustics and is still studied today on how that was accomplished. We were not allowed to take photos inside the opera house and within the museum, but I did have some time to walk about town and take photos outside of Wagner’s museum.\u003c/p\u003e","title":"Kill the Rabit Opera"},{"content":"After a nice lunch at Burgermeister (thanks Matt!) located at Höfe am Brühl (a local shopping mall) with Matt and Andrea, I ventured out towards the train station (Leipzig Hauptbahnhof). This is a huge train station with 25 corridors with 21 tracks that end within the station. The station was opened in 1915 and serves as a major hub within Germany.\nThe best part about the station was most of the Christmas decorations were still up. This made for some great shots with the lights erected around the station. I spend about 2 hours roaming around taking photos and ended up a local grocery store (similar to Aldi) to buy some snacks for the bus ride down to Munich the next day.\nBelow the main train terminal were two lower levels. Those levels were dedicated to shopping. There were traditional mall stores along with food vendors. Although the train station was relatively quiet, the shopping area was very busy.\nThe rest of the photos can be found under by photo site.\nguten Abend!\n","permalink":"https://sqlnikon.com/2019/01/06/choo-choo-leipzig/","summary":"\u003cp\u003eAfter a nice lunch at Burgermeister (thanks Matt!) located at Höfe am Brühl (a local shopping mall) with Matt and Andrea, I ventured out towards the train station (Leipzig Hauptbahnhof). This is a huge train station with 25 corridors with 21 tracks that end within the station. The station was opened in 1915 and serves as a major hub within Germany.\u003c/p\u003e\n\u003cp\u003eThe best part about the station was most of the Christmas decorations were still up. This made for some great shots with the lights erected around the station. I spend about 2 hours roaming around taking photos and ended up a local grocery store (similar to Aldi) to buy some snacks for the bus ride down to Munich the next day.\u003c/p\u003e","title":"Choo Choo Leipzig"},{"content":"On day 3 in Leipzig, the students had independent research so that enabled me to have a free day to do some photo walks around the city. The two faculty members on the trip, Matt Buckmaster and Andrea Sinn, accompanied me in the morning. I choose a monument erected in 1913 that commemorates Napoleon\u0026rsquo;s defeat at Leipzig in 1813. Völkerschlachtdenkmal (Monument to the Battle of the Nations) is a huge concrete structure with granite façade. The interesting part of the concrete foundation is no steel support was used. It is build entirely using compressed concrete pillars.\nThe walk to the top takes you through a crypt with 31-foot tall sculptures. There was a bit of light let in from stained glass windows which made for some great photography. There are about 500 total steps to the top but we decided to take the elevator up part way and walk down. The corridors for the stairs are very small a presented a problem in spots with my camera gear and 6’ 3” frame.\nAt the top, you get an amazing view of the entire town of Leipzig. The weather was a bit dreary but I was able to get a few pics of the surrounding town.\nYou can see the rest of the photos under my photo site.\nguten Abend!\\\n","permalink":"https://sqlnikon.com/2019/01/06/battle-of-leipzig-1813/","summary":"\u003cp\u003eOn day 3 in Leipzig, the students had independent research so that enabled me to have a free day to do some photo walks around the city. The two faculty members on the trip, Matt Buckmaster and Andrea Sinn, accompanied me in the morning. I choose a monument erected in 1913 that commemorates \u003ca href=\"https://en.wikipedia.org/wiki/Battle_of_Leipzig\"\u003eNapoleon\u0026rsquo;s defeat\u003c/a\u003e at Leipzig in 1813. \u003ca href=\"https://en.wikipedia.org/wiki/Monument_to_the_Battle_of_the_Nations\"\u003eVölkerschlachtdenkmal\u003c/a\u003e (Monument to the Battle of the Nations) is a huge concrete structure with granite façade. The interesting part of the concrete foundation is no steel support was used. It is build entirely using compressed concrete pillars.\u003c/p\u003e","title":"Battle of Leipzig 1813"},{"content":"Guten Nachmittag, from Germany! I work at Elon University and they are known for their Study Abroad programs. These programs are designed to help students become global leaders in their field. As a staff member at Elon, one of the benefits is to apply and accompany one of 6 global education classes. I was lucky enough to have my name pulled from the hat and attend the Lives of the Great Composers. This is a 3 week trip to Germany, Austria, and Hungary.\nLunch time... Our first stop is Leipzig, Germany. This is the resting place for Johann Sebastian Bach. We are on our second day in Leipzig and I love the feel of the inner city. All the streets have cobblestone and you are surrounded by buildings on all sides. In the main square of the inner city, they host a city market. It feels just like a farmer\u0026rsquo;s market but the food options are much more extravagant. I passed by rolling butcher shops and even someone with rotisserie meat.\nSt. Thoms Church We took a tour of St. Thomas Church today where Bach is buried. The church has some beautiful architecture and the old organs sound amazing with the acoustics of the church. Tonight we are going to attend a concert in the church and I’m looking forward to hearing what the organs can do.\nThe Bach organ You can see all my photos over on my SmugMug site. I’ll be keeping the site updated as we travel through other sites.\nGuten Tag\nDoug Purnell\n","permalink":"https://sqlnikon.com/2019/01/04/across-the-pond/","summary":"\u003cp\u003eGuten Nachmittag, from Germany! I work at Elon University and they are known for their \u003ca href=\"https://www.elon.edu/u/academics/global-education-center/global-engagement/\"\u003eStudy Abroad\u003c/a\u003e programs. These programs are designed to help students become global leaders in their field. As a staff member at Elon, one of the benefits is to apply and accompany one of 6 global education classes. I was lucky enough to have my name pulled from the hat and attend the \u003ca href=\"https://elon.studioabroad.com/index.cfm?FuseAction=Programs.ViewProgram\u0026amp;Program_ID=10301\"\u003eLives of the Great Composers\u003c/a\u003e. This is a 3 week trip to Germany, Austria, and Hungary.\u003c/p\u003e","title":"Across the pond"},{"content":"One of our vendor applications we host on-premises was moving from SQL Server to MySQL (don’t get me started). Our responsibility was to make sure the MySQL databases were being backed up on a daily basis. I didn’t know the first thing about supporting MySQL but was looking forward to learning a new RDBMS to see how things worked.\nMy first stop was Plural Sight, Pinal Dave had a few MySQL courses I wanted to review to start understanding what it takes to support MySQL. I watched the following courses:\nMySQL Fundamentals MySQL Backup and Recovery Fundamentals MySQL Workbench Guided Tour Pinal did a great job introducing me to MySQL and diving into all the areas I needed to understand how to support MySQL. Now that I had the basics, it was time to set up our MySQL backups. MySQL uses a command line tool to execute the backups, mysqldump.exe (insert joke here). MySQL backups are a bit different than SQL Server because the backup files are just text files with SQL statements to rebuild the database schema (DDL) and insert the data (DML).\nI knew I could just create a simple Windows Tasks to run each night but I wanted something with some smarts. We have other RDBMS systems send us nightly emails with the status of the backup so we can review it during our morning checklist. My goals were to have the backup file have the date/time stamp within the filename, remove backups older than 30 days, and send an email with success/failure message. Time to hit the Google…\nI found a great post with a sample Windows batch file that I started from. I forgot how powerful the Windows batch language was, you can do some pretty cool things (but PowerShell is much easier). I didn’t want to use ComMail from Microsoft, so I did another search for ways to send emails from Windows batch, and sure enough, PowerShell was the ticket. Looking back at this project, I should have started with PowerShell to build the backup script.\nMy next search was how to process return codes from the mysqldump.exe process. Now I had everything to build the process I needed. I took me a few hours of trial and error, but at the end of the day, we had a production-ready process. We have been running the scripts for a few weeks now and we have not had any issues. Remember, your backup is only as good as your restore.\nHere is our batch file to manage the backups:\n@echo off c: cd\\ cd \u0026#34;Program Files\\MySQL\\bin\u0026#34; For /f \u0026#34;tokens=2-4 delims=/ \u0026#34; %%a in (\u0026#39;date /t\u0026#39;) do (set dt=%%c-%%a-%%b) For /f \u0026#34;tokens=1-4 delims=:.\u0026#34; %%a in (\u0026#39;echo %time%\u0026#39;) do (set tm=%%a_%%b_%%c_%%d) set bkupfilename=%dt% %tm%.sql set logdir=E:\\MySQLBackups For /f \u0026#34;tokens=2-4 delims=/ \u0026#34; %%a in (\u0026#39;date /t\u0026#39;) do (set dt=%%c-%%a-%%b) For /f \u0026#34;tokens=1-4 delims=:.\u0026#34; %%a in (\u0026#39;echo %time%\u0026#39;) do (set tm=%%a:%%b:%%c:%%d) set logtime=%dt% %tm% echo Beginning MySQLDump Process \u0026gt; %logdir%\\MySQLBackupLog.txt echo Start Time = %logtime% \u0026gt;\u0026gt; %logdir%\\MySQLBackupLog.txt echo --------------------------- \u0026gt;\u0026gt; %logdir%\\MySQLBackupLog.txt echo Backing up to file: %bkupfilename% \u0026gt;\u0026gt; %logdir%\\MySQLBackupLog.txt mysqldump.exe --user=backup --password=backup --all-databases --single-transaction --flush-privileges \u0026gt;e:\\mysqlbackups\\\u0026#34;%bkupfilename%\u0026#34; 2\u0026gt;e:\\mysqlbackups\\DatabaseError.txt if %errorlevel%==0 echo Backup success! \u0026gt;\u0026gt; %logdir%\\MySQLBackupLog.txt if %errorlevel%==0 del e:\\mysqlbackups\\DatabaseError.txt \u0026gt;\u0026gt; %logdir%\\MySQLBackupLog.txt if %errorlevel%==1 echo Backup warning, check DatabaseError.txt \u0026gt;\u0026gt; %logdir%\\MySQLBackupLog.txt if %errorlevel%==2 echo Backup error, check DatabaseError.txt \u0026gt;\u0026gt; %logdir%\\MySQLBackupLog.txt if %errorlevel%==3 echo Backup error, check DatabaseError.txt \u0026gt;\u0026gt; %logdir%\\MySQLBackupLog.txt if %errorlevel%==4 echo Backup error, check DatabaseError.txt \u0026gt;\u0026gt; %logdir%\\MySQLBackupLog.txt if %errorlevel%==5 echo Backup error, check DatabaseError.txt \u0026gt;\u0026gt; %logdir%\\MySQLBackupLog.txt if %errorlevel%==6 echo Backup error, check DatabaseError.txt \u0026gt;\u0026gt; %logdir%\\MySQLBackupLog.txt echo Errorlevel returned by mysqldump.exe %errorlevel% \u0026gt;\u0026gt; %logdir%\\MySQLBackupLog.txt For /f \u0026#34;tokens=2-4 delims=/ \u0026#34; %%a in (\u0026#39;date /t\u0026#39;) do (set dt=%%c-%%a-%%b) For /f \u0026#34;tokens=1-4 delims=:.\u0026#34; %%a in (\u0026#39;echo %time%\u0026#39;) do (set tm=%%a:%%b:%%c:%%d) set logtime=%dt% %tm% echo Done with MySQLDump \u0026gt;\u0026gt; %logdir%\\MySQLBackupLog.txt echo --------------------------- \u0026gt;\u0026gt; %logdir%\\MySQLBackupLog.txt echo MySQLDump Process Finished \u0026gt;\u0026gt; %logdir%\\MySQLBackupLog.txt echo End Time = %logtime% \u0026gt;\u0026gt; %logdir%\\MySQLBackupLog.txt echo --------------------------- \u0026gt;\u0026gt; %logdir%\\MySQLBackupLog.txt echo Deleting old backups \u0026gt;\u0026gt; %logdir%\\MySQLBackupLog.txt forfiles /p e:\\mysqlbackups /s /m *.* /d -30 /c \u0026#34;cmd /c del @file : date \u0026gt;= 30days\u0026#34; \u0026gt;\u0026gt; %logdir%\\MySQLBackupLog.txt echo --------------------------- \u0026gt;\u0026gt; %logdir%\\MySQLBackupLog.txt dir %logdir%\\*.* \u0026gt;\u0026gt; %logdir%\\MySQLBackupLog.txt echo Send email via PowerShell \u0026gt;\u0026gt; %logdir%\\MySQLBackupLog.txt powershell -executionpolicy Unrestricted -File \u0026#34;c:\\software\\SendEmail.ps1\u0026#34; Here is our PowerShell file to send an email:\n$smtp = “smtp.mysql.com\u0026#34; $to = “dbasupport@mysql.com\u0026#34; $from = “mysql@mysql.com\u0026#34; $attachment1=\u0026#34;e:\\mysqlbackups\\mysqlbackuplog.txt\u0026#34; $attachment2=\u0026#34;e:\\mysqlbackups\\DatabaseError.txt\u0026#34; if (Test-Path -path $attachment2) { $subject = \u0026#34;MySQL Backup FAILED!!!!\u0026#34; $body = \u0026#34;MySQL Backup failed, see attached logs for errors \u0026#34; send-MailMessage -SmtpServer $smtp -To $to -From $from -Subject $subject -Body $body -BodyAsHtml -Attachments $attachment1, $attachment2 } else { $subject = \u0026#34;MySQL Backup Successful\u0026#34; $body = \u0026#34;MySQL Backup Succedded \u0026#34; send-MailMessage -SmtpServer $smtp -To $to -From $from -Subject $subject -Body $body -BodyAsHtml -Attachments $attachment1 } If you run into any MySQL DBA responsibilities, I hope this gives you a starting point for managing your backups.\n","permalink":"https://sqlnikon.com/2018/08/31/backup-automation-with-mysql/","summary":"\u003cp\u003eOne of our vendor applications we host on-premises was moving from SQL Server to MySQL (don’t get me started). Our responsibility was to make sure the MySQL databases were being backed up on a daily basis. I didn’t know the first thing about supporting MySQL but was looking forward to learning a new RDBMS to see how things worked.\u003c/p\u003e\n\u003cp\u003eMy first stop was Plural Sight, Pinal Dave had a few MySQL courses I wanted to review to start understanding what it takes to support MySQL. I watched the following courses:\u003c/p\u003e","title":"Backup automation with MySQL"},{"content":"One of my goals this year is to stay more focused on my active projects without losing focus of my yearly goals. During 2017, I found myself getting caught up in the day to day requirements of being a Database Administrator rather than planning my day/week/month around my goals. Come review time for 2017, I realized I had not paid enough attention to my goals throughout the year, just the daily operational tasks. This was the catalyst for purchasing Shawn Blanc’s (t|b) Focus Course. I heard about Shawn\u0026rsquo;s work through a few different podcasts and decided to give it a try.\nThe course was laid out in 8 easy sessions. Each session was a single page to read through or you could use the accompanying video if you wanted to sit back and listen to Shawn talk through the topics. Each video average around 6 minutes, so it didn’t take long to get through the course. Here are sections of the course and the key points that stood out to me:\nWhy We Need a Focused Life\nChange your mind about life vision. A focused life is a vision for your life (your “why”), life goals (your “what”), action plan (your “how”), daily schedule (your “when”), lifestyle practices (your safety net).\nMeaningful Productivity\nConsistently giving our time and attention to the things that are most important\nPersonal Integrity\nAre there little things you can do today to improve your day tomorrow?\nThe Note\nLeave a note out for yourself that is the first thing you’re going to do tomorrow when you begin your workday. Let your mind think about it overnight.\nSchedule Your Most Important Tasks\nBudgeting time is similar to budgeting money, big rocks first.\nThe Echo Chamber\nTurn off notifications. Use downtime to be creative: take a walk or listen to a podcast.\nUnderstanding Overwhelm\nRecharge your brain by reading (30 minutes) and get enough rest.\nThe Jolt\nWhat event in your life caused you to reflect on things?\nI really enjoyed the course and am still using some of the topics in my daily and weekly routines. The first thing I did was turn off notifications for all my social media accounts. I still look through them, but during a time I choose, not the notifications dictating it to me. During my weekly review, I review a list of keys areas of my life and decided “Are there little things you can do today to improve your day tomorrow?”. This helps set the stage for a focused week. Trying to schedule the “big rocks” during the first part of my day helps me schedule time for those projects that I don’t have time to solve in one day, but rather pick away at the project, week over week, til the solution is in sight.\nIf you are having problems staying focused, give Shawn’s course a try, it helped me.\n","permalink":"https://sqlnikon.com/2018/07/24/staying-focused/","summary":"\u003cp\u003eOne of my goals this year is to stay more focused on my active projects without losing focus of my yearly goals. During 2017, I found myself getting caught up in the day to day requirements of being a Database Administrator rather than planning my day/week/month around my goals. Come review time for 2017, I realized I had not paid enough attention to my goals throughout the year, just the daily operational tasks. This was the catalyst for purchasing Shawn Blanc’s (\u003ca href=\"https://twitter.com/shawnblanc\"\u003et\u003c/a\u003e|\u003ca href=\"https://thefocuscourse.com/blog/\"\u003eb\u003c/a\u003e) \u003ca href=\"https://thefocuscourse.com\"\u003eFocus Course\u003c/a\u003e. I heard about Shawn\u0026rsquo;s work through a few different podcasts and decided to give it a try.\u003c/p\u003e","title":"Staying Focused"},{"content":"This month’s #tsql2sday is being hosted by Bert Wagner (b|t). His topic is about code we have written that we would hate to live without.\nWe have a pretty good handle on change control here and one of the steps we perform before any change is made to a database is to take a database snapshot. Database Snapshots used to be an Enterprise only feature, but with the release of 2016 SP1, it is now available under Standard, Web, and Express editions. If you have been using Standard Edition for a while, you may not have realized this feature is available to you.\nDatabase snapshots are read-only versions of the database at the time the snapshot was taken. Database snapshots start off at almost a zero byte databases. It is only when changes occur to the original database that the original pages are copied to the database snapshot. Let’s say you took a database snapshot at 2:00 pm, after that point, before any pages are modified in the original database, the unaltered pages are copied to the snapshot database. This process enables you to keep an ‘as-of view’ of the database, in this example as of 2:00 pm. The snapshot database is visible under SSMS and you can see the schema/data just like it was a live database. The big difference is the snapshot database is read-only and only grows as data pages are modified in the original database.\nWhen you create a database snapshot before a schema or data change request, you are enabling yourself to have visibility into the database just before the change. Just imagine if you had an UPDATE or DELETE change go south, with the database snapshot in your back pocket, you can pull the original data from the snapshot database or restore the database from the database snapshot.\nBecause of the number of databases and changes we manage, we keep up with a shared script that has all the scripts for the last database snapshots. This makes it easy to create a new database snapshot without having to re-create the T-SQL each time. Here is an example of what a create database snapshot statement looks like.\nCREATE DATABASE DBA_ss_20180703_0858 ON (NAME=DBA,FILENAME= \u0026#39;D:\\SQLData\\DBA_20180703_0858.ss\u0026#39;), (NAME=DBA_data1,FILENAME= \u0026#39;D:\\SQLData\\DBA_data1_20180703_0858.ss\u0026#39;), (NAME=DBA_data2,FILENAME= \u0026#39;D:\\SQLData\\DBA_data2_20180703_0858.ss\u0026#39;), (NAME=DBA_data3,FILENAME= \u0026#39;D:\\SQLData\\DBA_data3_20180703_0858.ss\u0026#39;), (NAME=DBA_data4,FILENAME= \u0026#39;D:\\SQLData\\DBA_data4_20180703_0858.ss\u0026#39;) AS SNAPSHOT OF DBA; If you need help with understanding where your database files are located, you can use EXEC sp_helpfile under the context of your database. This will return the necessary information to build your CREATE DATABASE AS SNAPSHOT statement. We chose to key the snapshot files in the same folder structure as the MDF/LDF files.\nWe generally keep our snapshots for 3 business days. To keep track of all the database snapshots across our instances, we run a query against one of our Central Management Server folders on a weekly basis and delete the older database snapshots.\nSELECT name FROM sys.databases d WHERE d.source_database_id IS NOT NULL; I hope you can see the advantage of database snapshots and keeping a history of the T-SQL used to create all your database snapshots. One of the main goals of a Database Administrator is keeping the data safe and database snapshots do the job for us.\n","permalink":"https://sqlnikon.com/2018/07/10/t-sql-tuesday-104-managing-databases-snapshots/","summary":"\u003cp\u003e\u003ca href=\"https://bertwagner.com/2018/07/03/code-youd-hate-to-live-without-t-sql-tuesday-104-invitation/\"\u003e\u003cimg src=\"/wp-content/uploads/2017/12/sqltuesday.png\" class=\"alignleft wp-image-662 size-full\" width=\"129\" height=\"130\" /\u003e\u003c/a\u003eThis month’s #tsql2sday is being hosted by Bert Wagner (\u003ca href=\"https://bertwagner.com\"\u003eb\u003c/a\u003e|\u003ca href=\"https://twitter.com/bertwagner\"\u003et\u003c/a\u003e). His topic is about code we have written that we would hate to live without.\u003c/p\u003e\n\u003cp\u003eWe have a pretty good handle on change control here and one of the steps we perform before any change is made to a database is to take a \u003ca href=\"https://docs.microsoft.com/en-us/sql/relational-databases/databases/database-snapshots-sql-server?view=sql-server-2017\"\u003edatabase snapshot\u003c/a\u003e. Database Snapshots used to be an Enterprise only feature, but with the release of 2016 SP1, it is now available under Standard, Web, and Express editions. If you have been using Standard Edition for a while, you may not have realized this feature is available to you.\u003c/p\u003e","title":"T-SQL Tuesday #104 - Managing Databases Snapshots"},{"content":"This month’s #tsql2sday is being hosted by Riley Major (b|t). He ask us to \u0026ldquo;Pick some way you can help our community”. I realized my improvement with time management this year is how I can help the community.\nAdapting my time management processes around David Allen’s (b|t) Getting Things Done (GTD) has been very beneficial for me this year. I’ve been a GTD practitioner for a couple of years but lost focus in 2017. When Mala Mahadevan (b|t) ask us to write down our learning goals for 2018 I knew this was the opportunity to reevaluate my GTD process. I believe this is what I can do to help our community, help others with time management. We all are being asked to do more with what seems like less time in the day. How many of you have a hard time keeping track of projects at work and home? GTD is the answer.\nI\u0026rsquo;ve already written about my daily and weekly routines under GTD, but I believe it is time to provide a series of blog posts introducing you to GTD and how to get started. It took me a while to understand how to implement GTD and I hope I can provide you with the steps necessary to get rolling without the bumps that I had. Having the ability to know exactly what to work on without having to worry about all other active projects/tasks is what true time management means to me. This is the place I want to get you to, worry-free time management.\n","permalink":"https://sqlnikon.com/2018/05/09/t-sql-tuesday-102-giving-back-with-gtd/","summary":"\u003cp\u003e\u003ca href=\"https://scribnasium.com/2018/05/giving-back-t-sql-tuesday-102-invite/\"\u003e\u003cimg src=\"/wp-content/uploads/2014/01/t-sql-tuesday.png\" class=\"alignleft wp-image-630 size-full\" width=\"150\" height=\"150\" /\u003e\u003c/a\u003eThis month’s #tsql2sday is being hosted by Riley Major (\u003ca href=\"https://scribnasium.com\"\u003eb\u003c/a\u003e|\u003ca href=\"https://twitter.com/rileymajor\"\u003et\u003c/a\u003e). He ask us to \u0026ldquo;\u003ca href=\"https://scribnasium.com/2018/05/giving-back-t-sql-tuesday-102-invite/\"\u003ePick some way you can help our community\u003c/a\u003e”. I realized my improvement with time management this year is how I can help the community.\u003c/p\u003e\n\u003cp\u003eAdapting my time management processes around David Allen’s (\u003ca href=\"https://gettingthingsdone.com/gtd-times/\"\u003eb\u003c/a\u003e|\u003ca href=\"http://twitter.com/gtdtimes\"\u003et\u003c/a\u003e) \u003ca href=\"https://www.amazon.com/Getting-Things-Done-Stress-Free-Productivity/dp/0143126563\"\u003eGetting Things Done\u003c/a\u003e (GTD) has been very beneficial for me this year. I’ve been a GTD practitioner for a couple of years but lost focus in 2017. When Mala Mahadevan (\u003ca href=\"https://curiousaboutdata.com\"\u003eb\u003c/a\u003e|\u003ca href=\"https://twitter.com/sqlmal\"\u003et\u003c/a\u003e) ask us to \u003ca href=\"https://curiousaboutdata.com/2017/12/18/t-sql-tuesday-97-roundup-learning-goals-for-2018/\"\u003ewrite down our learning goals for 2018\u003c/a\u003e I knew this was the opportunity to reevaluate my GTD process. I believe this is what I can do to help our community, help others with time management. We all are being asked to do more with what seems like less time in the day. How many of you have a hard time keeping track of projects at work and home? GTD is the answer.\u003c/p\u003e","title":"T-SQL Tuesday #102 - Giving Back with GTD"},{"content":"We hired a Director of Information Security a while back. One of the things that excited me the most about this new position was the ability to exchange ideas around security under SQL Server. Our initial discussion was over lunch at a local Indian restaurant, Taaza Bistro (w|t), and I found it very beneficial. We talked about our best practices and from that we agreed that there wasn\u0026rsquo;t any immediate need for us to alter our course (that was good news).\nFrom that initial conversation, we continue to get together at the same restaurant every other month or so to talk about new ideas, active and future projects, or changes in the industry. The nice part about these lunches is the ability to bounce around ideas from a pure security standpoint. I leave each lunch with a better take on how to architect more secure solutions with SQL Server.\nOur latest project is using a proxy server for all of our SSIS SFTP transmissions to vendors. The advantage of using proxies is they can lower your risk footprint by not have egress connections directly from your secure network. This allows you to place the proxy box under the DMZ for outbound connections.\nThe one thing I wanted to relay from this experience is how these lunches can be helpful for other databases administrators. It may not be with your Security Director, but it could be with the service desk, SAN/Domain admins, or any other department in your organization that you don\u0026rsquo;t normally speak to daily basis. It\u0026rsquo;s a great way to bounce ideas and understand pain points from other co-workers.\nHere’s to plenty more SQL Curry lunches!\n","permalink":"https://sqlnikon.com/2018/05/03/a-little-sql-curry-goes-a-long-way/","summary":"\u003cp\u003e\u003cimg src=\"/wp-content/uploads/2018/05/istock_000019639558_medium-300x200.jpg\" class=\"size-medium wp-image-819 alignleft\" width=\"300\" height=\"200\" /\u003eWe hired a Director of Information Security a while back. One of the things that excited me the most about this new position was the ability to exchange ideas around security under SQL Server. Our initial discussion was over lunch at a local Indian restaurant, Taaza Bistro (\u003ca href=\"https://taazabistro.com\"\u003ew\u003c/a\u003e|\u003ca href=\"https://twitter.com/taazabistro\"\u003et\u003c/a\u003e), and I found it very beneficial. We talked about our best practices and from that we agreed that there wasn\u0026rsquo;t any immediate need for us to alter our course (that was good news).\u003c/p\u003e","title":"A little SQL Curry goes a long way"},{"content":"The #tsql2sday topic in December 2017 was around goal setting. I wrote about my trouble with keeping some of the goals I set. There were some really good posts if you want to look through the roundup for some inspiration. The issue I have with goals is I’m an obliger, always helping others before myself. The best outcome of the blog post was having Glenda Gable (b|t) reach out to me about being an accountability partner.\nThis has been the best thing for my goals this year. We talk every few weeks about how our goals are going and accomplishments since the last time we talked. Knowing there is going to be someone to hold me accountable for my goals is the type of motivation I need.\nBlogging was one of our shared goals for 2018. Glenda had the great idea of reaching out to MVPs in the SQL Server Community each quarter for guidance. For the 1st quarter, we enlisted Tim Michell (b|t). We scheduled a call to talk about how he approaches blogging and some of the goals we were working on. This had two benefits, because of his consistent blogging we wanted to get some tips and tricks and it also served as someone else to hold us accountable.\nThe 1st quarter of 2018 was a success. I reached my blogging goals and am working on making it a habit as I move on to other goals for the year. I’m excited about the 2nd quarter and keeping my momentum going strong.\n","permalink":"https://sqlnikon.com/2018/04/20/accountability-partner/","summary":"\u003cp\u003e\u003cimg src=\"/wp-content/uploads/2018/01/Goal-300x199.jpg\" class=\"size-medium wp-image-744 alignleft\" width=\"300\" height=\"199\" /\u003eThe \u003ca href=\"http://tsqltuesday.com\"\u003e#tsql2sday\u003c/a\u003e topic in December 2017 was around goal setting. I wrote about my trouble with keeping some of the \u003ca href=\"/2017/12/12/i-am-an-obliger/\"\u003egoals\u003c/a\u003e I set. There were some really good posts if you want to look through the \u003ca href=\"https://curiousaboutdata.com/2017/12/18/t-sql-tuesday-97-roundup-learning-goals-for-2018/\"\u003eroundup\u003c/a\u003e for some inspiration. The issue I have with goals is I’m an \u003ca href=\"https://gretchenrubin.com/podcast-episode/podcast-37-obliger/\"\u003eobliger\u003c/a\u003e, always helping others before myself. The best outcome of the blog post was having Glenda Gable (\u003ca href=\"http://sql313.com\"\u003eb\u003c/a\u003e|\u003ca href=\"https://twitter.com/ggable313\"\u003et\u003c/a\u003e) reach out to me about being an accountability partner.\u003c/p\u003e","title":"Accountability Partner"},{"content":"The key part to keeping my Getting Things Done (GTD) methodology up to date is the weekly review. Having all your projects and tasks under a single trusted system has its advantages, but you need to make sure and view everything so nothing slips through the cracks. The weekly review is a time where you give your projects a tune-up. This is a more in-depth exercise than the daily routine. At a high level, you review each project and make sure they each have a next action to keep them moving forward.\nReviewing the projects is just a single step in the weekly review. As you work through your tasks during the day it is often best to get out of the weeds and review everything from a higher level. This is the key thing for me as I try to manage operations, projects, and my yearly goals. In 2017 I spend most of my time in the weeds and lost track of the key goals for the year. Here are the items I perform during my weekly review:\nCollect loose papers and materials Get inbox to zero Empty your head Review previous calendar Review upcoming calendar Review waiting for list Review agenda list Review quarterly/monthly goals Review projects for next action Review someday maybe lists Update The ONE thing Let’s review each one in more detail:\nCollect loose papers and materials\nThis is the heart of GTD, getting everything under your trusted system. Look around your desk, home, and anywhere else that you might have papers lying around. Now is the time to get them put into your trusted system.\nGet inbox to zero\nReview all your ‘inboxes’ for items that need to be brought into your trusted system. Inboxes might include post-it notes on your desk, your email inbox(es), or the pile of bills that need to be paid at home. As you review your inboxes, if the item is going to take less than 2-minutes to complete, go ahead and complete it.\nEmpty your head\nHas there been anything on your mind taking your attention away from your priority tasks, if so now is the time to get that item into your trusted system as a project or task? Quick note, my definition of a project is two or more tasks related to each other. I have a generic bucket/project for all one-off tasks that don’t belong under an official project.\nReview previous calendar\nThis is the time to review your previous week and decide if there are any items that need to be followed up on. This is your chance to play catch-up on any tasks that didn’t make it to your trusted system.\nReview upcoming calendar\nLooking forward to the week ahead, are there any events (business or personal) that require some preparation? Add a project/task so it can be accounted for as a priority for the week.\nReview waiting for list\nDo you have any tasks that are waiting for someone else? By keeping track of items that you are waiting for someone else to complete, this allows you to address them during a meeting or a hallway conversation. You may be responsible for the project as a whole, so it is a good idea to keep tabs on delegated tasks so they don’t get lost.\nReview agenda list\nI like to keep up with agenda items that need be addressed in project and department meetings. I use this list to keep them organized so the next time we meet together I have agenda items ready so I don’t forget them. Make sure each all the items are still relevant or take the time to add a few more things stuck in your head.\nReview quarterly/monthly goals\nBefore we dive into each project on your list, do you have any quarterly or monthly goals that need to be accounted for during the upcoming week? This was my major fault in 2017, I spend most of the year in the weeds (operations) and didn’t take time to look at my goals and plan time around them. I like to take the yearly goals and plan our quarter and month goals to keep the yearly goals on track.\nReview projects for next action\nThis the heart of the weekly review. This is where you review all projects on your plate. Whether they are on hold or almost complete, you need to spend time reviewing each action and decide if you need to plan for time in the upcoming week or add the next action if the project is stalled.\nReview someday maybe lists\nWe all have projects that we would love to work on but are not a priority at this point in time. This is a great place to store all those projects and each week, decide if this is a good time to start working on them.\nUpdate The ONE thing\nThe ONE Thing is a book written by Gary Keller and Jay Papasan. The main point of the book can be summed up by this quote, \u0026ldquo;What’s the ONE Thing you can do such that by doing it everything else will be easier or unnecessary?”. This is a powerful statement. Think through all the projects you just reviewed and decide if there is one thing that would make things easier. Create a task for this ‘one thing’ and act on it during the week.\nAs you can see there are quite a few steps to perform for a weekly review. Having a trusted system helps you track all these items. Whether you follow GTD or not, this is a great way to stay on top of your projects and manage your time effectively. I generally plan around 1 hour to perform my weekly review. If I have the time, Friday afternoon is my preferred time to complete my weekly view. This allows me to make a plan for the weekend and know that on Monday morning I can hit the ground running.\n","permalink":"https://sqlnikon.com/2018/04/18/weekly-routines/","summary":"\u003cp\u003eThe key part to keeping my \u003ca href=\"https://www.amazon.com/Getting-Things-Done-Stress-Free-Productivity/dp/0143126563/\"\u003eGetting Things Done\u003c/a\u003e (GTD) methodology up to date is the weekly review. Having all your projects and tasks under a single trusted system has its advantages, but you need to make sure and view everything so nothing slips through the cracks. The weekly review is a time where you give your projects a tune-up. This is a more in-depth exercise than the \u003ca href=\"/2018/02/20/daily-routines/\"\u003edaily routine\u003c/a\u003e. At a high level, you review each project and make sure they each have a next action to keep them moving forward.\u003c/p\u003e","title":"Weekly Routines"},{"content":"This month’s #tsql2sday is being hosted by Jens Vestergaard (b|t). His topic is about the essential SQL Server tools in my stack. I’m looking forward to reading the summary post to find out what tools I’m missing out on.\nOne of the foundation tools we put on all our instances is Ola Hallengrens’s maintenance scripts. It makes backups, indexes, and integrity checks very easy. This is hands down a much better tool to use over the built-in Maintenance Plans under SSMS.\nRestore the database now! One of the best practices around backups is having restore scripts within arms reach. This functionality is not built into Ola’s solution but Jared Zagelbaum (b|t) has written an extension\nthat handles this for you. The idea is when the call comes in a 3:00 am about corruption or another reason that requires a restore, you have the scripts ready without having to slap your brain out of a sleeping fog.\nJared’s extension works by adding an additional step to Ola’s backups jobs to create and text file with restore statements for all database with the latest full, diff, and/or transaction log backup files in the backup chain.\nYou can find his blog post that talks about his solution here and a link the GitHub files here. Thanks to Jared for sharing and allowing me to sleep better at night.\n","permalink":"https://sqlnikon.com/2018/04/10/t-sql-tuesday-101-essential-sql-server-tools/","summary":"\u003cp\u003e\u003ca href=\"http://t-sql.dk/?p=1947\"\u003e\u003cimg src=\"/wp-content/uploads/2017/12/sqltuesday.png\" class=\"alignleft wp-image-662 size-full\" width=\"129\" height=\"130\" /\u003e\u003c/a\u003eThis month’s #tsql2sday is being hosted by Jens Vestergaard (\u003ca href=\"http://t-sql.dk\"\u003eb\u003c/a\u003e|\u003ca href=\"https://twitter.com/vestergaardj\"\u003et\u003c/a\u003e). His topic is about the \u003ca href=\"http://t-sql.dk/?p=1947\"\u003eessential SQL Server tools in my stack\u003c/a\u003e. I’m looking forward to reading the summary post to find out what tools I’m missing out on.\u003c/p\u003e\n\u003cp\u003eOne of the foundation tools we put on all our instances is \u003ca href=\"https://ola.hallengren.com\"\u003eOla Hallengrens’s maintenance scripts\u003c/a\u003e. It makes backups, indexes, and integrity checks very easy. This is hands down a much better tool to use over the built-in Maintenance Plans under SSMS.\u003c/p\u003e","title":"T-SQL Tuesday #101 - Essential SQL Server Tools"},{"content":" Back in February one of my blog posts was highlighted on Brent Ozar Unlimited\u0026rsquo;s Weekly Links. Wow, what a bump in traffic! I usually receive a hand full of views a week, but on February 26th it reached 1,212. The cool part was it was actually the #2 link on Brent Ozar Unlimited\u0026rsquo;s newsletter for the day. If you don’t currently subscribe, here is a link to start.\nThis particular blog post was about my daily routines under the Getting Things Done (GTD) time management methodology. Based on the hit count and activity on Brent’s newsletter, I realized that time management \u0026amp; personal productivity are topics I need to spend more time on with my writing. Like other DBAs, I wear multiple hats and trying to keep all projects moving forward along with daily DBA operations can be difficult. I’m guessing there are few other DBAs with the same issues so I’m hoping I can help.\nIf you’re looking for other #sqlfamily that have posted about time management and personal productivity, check out K. Brian Keely (b|t) and Marlon Ribunal (b|t). They each have their own technical blogging sites but head over to their other sites focusing on personal productivity. Brian is also known as the Goal Keeping DBA and Marlon has posted around improving the life of knowledge workers. I would suggest following both of them and reading back through the archives.\n","permalink":"https://sqlnikon.com/2018/04/09/the-ozar-effect/","summary":"\u003cp\u003e\u003cimg src=\"/wp-content/uploads/2018/04/Screen-Shot-2018-03-02-at-5.45.59-AM-300x192.png\" class=\"size-medium wp-image-794 alignleft\" width=\"300\" height=\"192\" /\u003e Back in February one of my blog posts was highlighted on Brent Ozar Unlimited\u0026rsquo;s \u003ca href=\"https://mailchi.mp/brentozar/ffwu8288fq-1363485?e=02e101d2c2\"\u003eWeekly Links\u003c/a\u003e. Wow, what a bump in traffic! I usually receive a hand full of views a week, but on February 26th it reached 1,212. The cool part was it was actually the #2 link on Brent Ozar Unlimited\u0026rsquo;s newsletter for the day. If you don’t currently subscribe, here is a \u003ca href=\"https://www.brentozar.com/subscribe/\"\u003elink to start\u003c/a\u003e.\u003c/p\u003e","title":"The Ozar Effect"},{"content":"This month’s #tsql2sday is being hosted by Adam Machanic (t|b):\nYour mission for month #100 is to put on your speculative shades and forecast the bright future ahead. Tell us what the world will be like when T-SQL Tuesday #200 comes to pass. If you’d like to describe your vision and back it up with points, trends, data, or whatever, that’s fine. If you’d like to have a bit more fun and maybe go slightly more science fiction than science, come up with a potential topic for the month and create a technical post that describes an exciting new feature or technology to your audience of June 2026. (Did I do the math properly there?)\nHere is my vision\u0026hellip;\nAs I step into my home office and close the door, the walls and ceiling automatically bring up a live landscape of Grand Teton National Park. My priority tasks are displayed and see today is the day we migrate our entire production environment over to the latest update of SQL Server to take advantage of the latest AI engine built on top of Azure Machine Learning.\nThe AI engine is going to be our DBA in the back pocket. We will no longer have to deal with monitoring and performance tuning. Ever since the initial automation database tuning release back in 2017, Microsoft has been freeing up DBA resources with each update. Notifications for transactions, indexing, backups, DR/HA, and security tuning are displayed under the integrated PowerBI console on one of the walls of my office. I remember the day I had multiple screens on my desk, now I just move around the room to the various virtual workspaces around the office depending on the project I’m working on.\nThe migration has already been done by the older AI engine countless times under our dev and test instances. With dbatools having been integrated into the SQL engine years ago and expanded to over 3,000 commands, PowerShell is now my primary interface to SQL Server. The developers are still coding in T-SQL when the ORM tool doesn’t behave properly, but for me, PowerShell is where I’m comfortable.\nAs I start the production migration, open transactions are frozen, databases are moved between memory spaces, and then the transactions are brought back online. Users never even noticed the tiniest of hiccups within their applications. The new SQL AI is already online and bringing up the status of the new instances on my wall, all is well.\nThe update cycle of SQL Server is still bringing value to us. The AI engine takes cares of the weekly cumulative updates and leaves the monthly feature releases for me to approve. Automatic DR/HA with Azure makes the older AG’s seem like the stone age. Our database, application, and web servers still reside under the control of our data centers, but DR/HA is handled for us.\nNow that the migration is done, it’s time for a break. Catch you on the next #tsq2sday!\n","permalink":"https://sqlnikon.com/2018/03/13/sql-life-2026/","summary":"\u003cp\u003e\u003ca href=\"http://dataeducation.com/invitation-t-sql-tuesday-100-looking-forward-100-months\"\u003e\u003cimg src=\"/wp-content/uploads/2017/12/sqltuesday.png\" class=\"alignleft wp-image-662 size-full\" width=\"129\" height=\"130\" /\u003e\u003c/a\u003eThis month’s #tsql2sday is being hosted by Adam Machanic (\u003ca href=\"https://twitter.com/AdamMachanic\"\u003et\u003c/a\u003e|\u003ca href=\"http://dataeducation.com/blog/\"\u003eb\u003c/a\u003e):\u003c/p\u003e\n\u003cp\u003e\u003cem\u003eYour mission for month #100 is to put on your speculative shades and forecast the bright future ahead. Tell us what the world will be like when T-SQL Tuesday #200 comes to pass. If you’d like to describe your vision and back it up with points, trends, data, or whatever, that’s fine. If you’d like to have a bit more fun and maybe go slightly more science fiction than science, come up with a potential topic for the month and create a technical post that describes an exciting new feature or technology to your audience of June 2026. (Did I do the math properly there?)\u003c/em\u003e\u003c/p\u003e","title":"SQL Life 2026"},{"content":"I’m honored to have been selected to speak at SQL Saturday Raleigh #721 on April 14th. I’m speaking about choosing the right high availability (HA) and/or disaster recovery (DR) solution for SQL Server. I’m given this talk just once before at the Companero Conference back in the fall of 2017. With the release of SQL Server 2017, there are few more HA/DR options that we have available to us. There are plenty of other great sessions being offered that day so it is not too late to sign up!\nFor those of you not familiar with SQL Saturday events, they are organized by SQL Server professionals with help with sponsors and volunteers within the SQL Server community. Lunch is generally 10-15 dollars or you can choose to bring your own for an entire day of free training. There are multiple events every Saturday so find one near you!\nI also signed up for Kalen Delaney’s (b|t) pre-con on SQL Server internals. I’ve always enjoyed digging into the internals of SQL Server. If you have a better understanding of what is under the covers it will help you build and support better solutions.\nYou’ll see me roaming the event with my camera so be sure and say hello and I hope to see you there!\n","permalink":"https://sqlnikon.com/2018/03/02/im-speaking-at-sql-saturday-raleigh/","summary":"\u003cp\u003e\u003cimg src=\"/wp-content/uploads/2018/03/SQLSat721_Speaking_250x250_01.png\" class=\"size-full wp-image-775 alignleft\" width=\"250\" height=\"250\" /\u003eI’m honored to have been selected to speak at \u003ca href=\"http://www.sqlsaturday.com/721/eventhome.aspx\"\u003eSQL Saturday Raleigh #721 on April 14th\u003c/a\u003e. I’m speaking about choosing the right high availability (HA) and/or disaster recovery (DR) solution for SQL Server. I’m given this talk just once before at the \u003ca href=\"http://companeroconference.com\"\u003eCompanero Conference\u003c/a\u003e back in the fall of 2017. With the release of SQL Server 2017, there are few more HA/DR options that we have available to us. There are plenty of other \u003ca href=\"http://www.sqlsaturday.com/721/Sessions/Schedule.aspx\"\u003egreat sessions\u003c/a\u003e being offered that day so it is not too late to sign up!\u003c/p\u003e","title":"I'm Speaking at SQL Saturday Raleigh"},{"content":"I’m a big fan of Getting Things Done (GTD) by David Allen (t|b). I follow the GTD principals both at work and personal life. The key part of making GTD successful are routines. In this post, I’m going to review my daily routine that keeps my GTD system running like a well-oiled machine.\nFor the daily routine, the morning fits my personality the best. I love getting up early and setting a goal for the day. You have to find the best time that works for you. Others like the evening to reflect on the day and set goals for the next, it is entirely up to you. Regardless of the time of day, the daily routine needs to hit on a few key areas: inbox zero, your calendar, and tasks for the day.\nInbox Zero\nI’ve been a fan of this approach for over a year. I used to keep ‘to-do’ items in my email inbox that were usually just read emails that require some additional action. It got to be overwhelming and I found myself with hundreds of emails that required my time. By using Inbox Zero, I treat my email inbox as just another entry point into my trusted system (OmniFocus). I have multiple inboxes in my life, mail from home, drive by tasks at work, meetings, and blog posts or websites that I want to read. Once you realize that there are virtual inboxes everywhere in your life, you quickly understand that you need one system to organize them all.\nCalendar\nEach day your time is being demanded by multiple sources. 8am-5pm is usually your work commitments and after 5 pm is family/personal time. By reviewing your calendar ahead of the day you are able to better estimate what you can accomplish that day. If you have a big block of time available, that might be a perfect place to work on your big project or start working on one of your goals for month/quarter/year. Smaller blocks of time might be best for quick tasks or phone calls that need to be returned.\nTasks\nNow that you have an understanding of what time you have available, you can decide which tasks you can work on for the day. Most people have hundreds of little tasks that need to be completed, but which ones are the key tasks that keep you moving in the direction of your goals? Those are the tasks that you want to prioritize first. By reviewing your tasks each day, you stay current on your most important tasks.\nIf you would like to know more about GTD, start with David’s book. He did a second revision a few years ago and this will give you the foundation of GTD and the advantages it gives you in your life. The key advantage of GTD for me is clearing my head of those ‘things’ that I can’t forget to do that will keep me up at night or cause me to go into firefighting mode when those ’things\u0026rsquo; are due. GTD gives me the freedom to be creative with my brain instead of using it as a storage device that it wasn’t meant to be used for.\n","permalink":"https://sqlnikon.com/2018/02/20/daily-routines/","summary":"\u003cp\u003eI’m a big fan of Getting Things Done (GTD) by David Allen (\u003ca href=\"http://twitter.com/gtdtimes\"\u003et\u003c/a\u003e|\u003ca href=\"https://gettingthingsdone.com/gtd-times/\"\u003eb\u003c/a\u003e). I follow the GTD principals both at work and personal life. The key part of making GTD successful are routines. In this post, I’m going to review my daily routine that keeps my GTD system running like a well-oiled machine.\u003c/p\u003e\n\u003cp\u003eFor the daily routine, the morning fits my personality the best. I love getting up early and setting a goal for the day. You have to find the best time that works for you. Others like the evening to reflect on the day and set goals for the next, it is entirely up to you. Regardless of the time of day, the daily routine needs to hit on a few key areas: inbox zero, your calendar, and tasks for the day.\u003c/p\u003e","title":"Daily Routines"},{"content":"\nThis month’s #tsql2sday is being hosted by Aaron Bertrand (t|b). Aaron gives us a choice this month to talk about our passions outside of the SQL Server community or our T-SQL bad habits. I don’t have enough time to bore you with all my T-SQL bad habits so I’ll try to inspire you with my #SQLBBQ \u0026amp; #SQLPhoto passions.\nWhen I not architecting SQL Server solutions at Elon University, I’m usually behind a camera or BBQ cooker. Both of these passions allow me to exercise the creative part of my brain when I’m away from the office.\nI got the photography bug right before my son was born. I started with a point-and-shoot Sony Cybershot but was so frustrated with the delay in taking a picture. I love the digital photos when they turned out, but getting a consistent focus was difficult. My next purchased a Nikon D70 DSLR. This camera was a life changer for me. Having the ability to shoot 3 frames per second was eye-opening. I no longer had to deal with missed shots or not knowing where the focus point was set. I used the D70 for another 6 years before upgrading to my current setup, the Nikon D300s.\nI continued taking photos over the years but with the onset of smartphones I don’t pull out my Nikon as much. The iPhone has been an asset to my photography just because it is always with me. What I really enjoy doing is taking photos at PASS events. Back in 2012, before my first PASS Conference, I reached out to Pat Wright (b|t) about joining the photo walk during the conference. What ended up happening was a full day “pre-con” of photography on the Sunday before the conference. We ended up at Snoqualmie Falls and the surrounding area and I had blast taking photos with Pat. We continue to have our photo “pre-cons” before PASS and other SQL Saturday events. This is a great time to talk shop about photography and SQL Server. I’m looking forward to PASS 2018 in Seattle and future photo walks.\nPhoto Albums:\n2012 PASS Summit\nhttps://www.flickr.com/photos/purnellphotography/albums/72157632003357227\n2014 PASS Summit\nhttps://sqlnikon.smugmug.com/2014/2014-11-02-SQL-Photo-Walk/\nhttps://sqlnikon.smugmug.com/2014/2014-11-05-Denny-SQL-Karaoke/\nhttps://sqlnikon.smugmug.com/2014/2014-11-06-SQL-PASS-Karaoke/\n2016 PASS Summit\nhttps://sqlnikon.smugmug.com/2016/2016-10-23-SQL-PASS-Photo-Walk/\nhttps://sqlnikon.smugmug.com/2016/2016-10-25-SQL-Photo-Walk/\nhttps://sqlnikon.smugmug.com/2016/2016-10-27-SQL-Summit-SQL-Dinner/\n2017 SQL Sat Charlotte\nhttps://sqlnikon.smugmug.com/2017/2017-10-14-SQL-Sat-Charlotte/\nMy other passion is cooking, specifically BBQ. I own a few grills but my favorite is a cooker that has a 3x6 foot cooking surface. It is fueled by propane but has a shelf for a piece of wood like hickory or oak. I bought the cooker from a friend about 15 years ago and have loved experimenting with different cuts of meat. My go-to meal is whole chickens, baby back ribs, and mac \u0026amp; cheese. The best part about the mac \u0026amp; cheese is it is just store bought Stouffer’s, but when it is left on the cooker for a few hours, it comes out with an amazing smokey flavor. During last year’s #sqlvacation, Kevin Kline made a stop at our user group in Greensboro, NC and I brought in the cooker for the meeting. I love sharing the food and wish I had a bigger cooking surface to cook for an entire SQL Saturday event.\nHope to see you on a photo walk or cookout very soon!\n","permalink":"https://sqlnikon.com/2018/02/13/taking-a-photo-walk-to-a-bbq/","summary":"\u003cp\u003e\u003ca href=\"https://sqlblog.org/2018/02/06/t-sql-tuesday-99\"\u003e\u003cimg src=\"/wp-content/uploads/2017/12/sqltuesday.png\" class=\"alignleft wp-image-662 size-full\" width=\"129\" height=\"130\" /\u003e\u003c/a\u003e\u003c/p\u003e\n\u003cp\u003eThis month’s #tsql2sday is being hosted by Aaron Bertrand (\u003ca href=\"https://twitter.com/AaronBertrand\"\u003et\u003c/a\u003e|\u003ca href=\"https://sqlblog.org\"\u003eb\u003c/a\u003e). Aaron gives us a choice this month to talk about our passions outside of the SQL Server community or our T-SQL bad habits. I don’t have enough time to bore you with all my T-SQL bad habits so I’ll try to inspire you with my #SQLBBQ \u0026amp; #SQLPhoto passions.\u003c/p\u003e\n\u003cp\u003eWhen I not architecting SQL Server solutions at Elon University, I’m usually behind a camera or BBQ cooker. Both of these passions allow me to exercise the creative part of my brain when I’m away from the office.\u003c/p\u003e","title":"Taking a photo walk to a BBQ"},{"content":"Regular blogging is one of my goals this year. One of the areas I struggle with is what content to blog about. While I was listening to SQL Server Radio (Episode 84) with Guy Glantser (t) and Matan Yungman (t), they mentioned a new blog post series they are starting titled “Something Cool Learned Today”. These are meant for sort 1-2 paragraph blog posts about things you learned. This is the spark I needed to build some additional content for my blog.\nWe have a door access system that uses MySQL. We interact with the data via a SQL Server linked server so we can join MySQL tables with other SQL Server tables. Because of a bug in the vendor application, I needed a way to update some records, every few minutes, based on some records having specific column values. I knew I wanted to build a Stored Procedure (SP) similar to SQL Server but didn’t know the specific syntax for doing so. Then there was the ability to execute the MySQL SP from SQL Server, didn’t know the syntax for this either.\nOff to \u0026lsquo;The Google\u0026rsquo;. My first stop was the MySQL documentation for CREATE STORED PROCEDURE. I didn’t know the exact MySQL version but I wasn’t trying to do anything complicated so I figured it would suffice. MySQL enforces the semicolon delimiter for all commands, something SQL Server says it will enforce in future releases (start using them now). The issue with trying to create a new SP under MySQL is the SP needs a delimiter as well as the statements inside of the SP. In order for MySQL to recognize the new SP, you need to change the delimiter temporarily to something like //, create the SP, and change the delimiter back to a semicolon. I wonder how this will pan out with SQL Server?\nNow that my SP is built and execution rights were set I needed to figure out how to call the MySQL SP from a SQL Server Linked Server. Most of the time we interact with the MySQL via the OPENQUERY call. This allows us to build the statements in native MySQL so they execute faster. I found that you execute MySQL SPs with ‘call’ instead of ‘exec’ as with SQL Server but when I tried to use the CALL syntax, the query threw an error.\nMsg 7357, Level 16, State 2, Line 13\nCannot process the object \u0026ldquo;CALL BugFix();\u0026rdquo;. The OLE DB provider \u0026ldquo;MSDASQL\u0026rdquo; for linked server “MySQL\u0026quot; indicates that either the object has no columns or the current user does not have permissions on that object.\nOff to \u0026lsquo;The Google\u0026rsquo;. Searching for \u0026ldquo;executing MySQL stored procedures from SQL Server linked servers\u0026rdquo; landed me on a sqlservercentral.com thread with the exact issue (score!). Buried in the replies was the syntax I was looking for, EXEC(\u0026lsquo;CALL BugFix\u0026rsquo;) AT MySQL. I was not familiar with using EXEC this way. Looking through Books On Line for EXECUTE, there it was, you are able to Execute a pass-through command against a linked server. Feeling good I headed over to SQL Server to run the command and bam, error:\nMsg 7411, Level 16, State 1, Line 7\nServer ‘MySQL\u0026rsquo; is not configured for RPC.\nI remembered that linked servers have lots of options under the hood. I headed over to the linked server definition and found a few RPC settings but which ones should I enable? A quick search took me to a blog post that answered the exact question. I ran the following statement:EXEC master.dbo.sp_serveroption @server=N\u0026rsquo;MYSERVER\u0026rsquo;, @optname=N\u0026rsquo;rpc out\u0026rsquo;, @optvalue=N’true’;\nI re-ran my EXEC statement (no restart required) and it returned the results I was looking for: (2 rows affected).\nGoing into this problem I was a little hesitant to get started, procrastination set in because of the fear of the unknown. I’ve identified this problem before and the best way to get over it is to just start a small task like doing a quick Google search. Most times, the momentum of small tasks will help me get over the fear and get excited about the task at hand.\nThe other part of this exercise was the various error messages along the way. You can’t just give up and think it can’t be solved, someone has usually gone through the same issue before. Because of search engines, product documentation, and community bloggers, solutions are out there waiting for you to find them.\n","permalink":"https://sqlnikon.com/2018/01/19/mysql-rpc/","summary":"\u003cp\u003e\u003cimg src=\"/wp-content/uploads/2018/01/Goal-300x199.jpg\" class=\"size-medium wp-image-744 alignleft\" width=\"300\" height=\"199\" /\u003eRegular blogging is one of my goals this year. One of the areas I struggle with is what content to blog about. While I was listening to SQL Server Radio (\u003ca href=\"http://www.sqlserverradio.com/show84/\"\u003eEpisode 84\u003c/a\u003e) with Guy Glantser (\u003ca href=\"https://twitter.com/guy_glantser\"\u003et\u003c/a\u003e) and Matan Yungman (\u003ca href=\"https://twitter.com/MatanYungman\"\u003et\u003c/a\u003e), they mentioned a new blog post series they are starting titled “\u003ca href=\"http://www.madeiradata.com/something-cool-learned-today/\"\u003eSomething Cool Learned Today\u003c/a\u003e”. These are meant for sort 1-2 paragraph blog posts about things you learned. This is the spark I needed to build some additional content for my blog.\u003c/p\u003e","title":"MySQL RPC with Linked Server"},{"content":"This month’s #tsql2sday is being hosted by Arun Sirpal (b|t). The topic this month is how we conquered a technical challenge. The area I’ve been spending the most time in recently is baselining for the Spectre/Meltdown patches that are coming. We have a monitoring tool from Idera, SQL Diagnostic Manager, on our key production boxes but I wanted something consistent across all boxes that we could use for tracking and baselining wait types.\nThe Spectre/Meltdown can have a significant performance impact on servers running Windows Server OS that have intensive IO-intensive applications. SQL Server falls right into this area. We need a way to identify CPU changes across all our instances (dev/test/prod) while we apply the patches\nThere are plenty of queries to help identify wait types but I was looking for something that could be put into place quickly as patches from VMware and Microsoft are being released this week. I found the perfect one, sp_BlitzFirst from Brent Ozar Unlimited.\nTheir solution gives you the wait stat breakdown and reporting to help you identify baseline changes. When you have limited time to put something in place, these types of solutions from community partners are a great place to start. Having baseline wait stats has been on my list for years. There was always another project that was pushed to the front of the list, but now Spectre/Meltdown is at the top of my list!\nI used the following blog post to get me started. We have all of our instance registered and organized under a Central Management Server. This feature allows us to run a query across multiple instances at once. I pulled down the latest First Responder Kit which includes the script to schedule and a Power BI report to analyze the results.\nThe next phase was how to identify a process to baseline. We don’t have any automated tools to regression test our apps (something else to work on) so I needed something to stress our SQL Server instances and record the wait types throughout the patching process. Once again the fine folks at Brent Ozar Unlimited had a blog post for this problem as well. Using SQLQueryStress, we can simulate a load on our SQL Server Instances and record the wait types. After each patch, we can execute the same load and compare the results using Power BI.\nWhen faced with a technical challenge like Spectre/Meltdown, having a process in place to baseline your SQL Server Instances is important to show how changes to your environment can have lasting effects on performance.\n","permalink":"https://sqlnikon.com/2018/01/10/spectre-meltdown-baselining/","summary":"\u003cp\u003e\u003ca href=\"https://blobeater.blog/2018/01/02/t-sql-tuesday-98-your-technical-challenges-conquered/\"\u003e\u003cimg src=\"/wp-content/uploads/2014/01/t-sql-tuesday.png\" class=\"alignleft wp-image-630 size-full\" width=\"150\" height=\"150\" /\u003e\u003c/a\u003eThis month’s #tsql2sday is being hosted by Arun Sirpal (\u003ca href=\"https://blobeater.blog\"\u003eb\u003c/a\u003e|\u003ca href=\"https://twitter.com/blobeater1\"\u003et\u003c/a\u003e). The topic this month is how we conquered a technical challenge. The area I’ve been spending the most time in recently is baselining for the Spectre/Meltdown patches that are coming. We have a monitoring tool from \u003ca href=\"https://www.idera.com/productssolutions/sqlserver/sqldiagnosticmanager\"\u003eIdera\u003c/a\u003e, SQL Diagnostic Manager, on our key production boxes but I wanted something consistent across all boxes that we could use for tracking and baselining wait types.\u003c/p\u003e","title":"Spectre/Meltdown Baselining"},{"content":" Goal Setting This month\u0026rsquo;s T-SQL Tuesday (#tsql2sday) host is Malathi Mahadevan (b|t).\nGoal setting has always been a difficult process for me. I always do a great job of researching/organizing my goals for the upcoming year but fall short in the execution phase. I tend to help others with their projects \u0026amp; tasks before mine; I have a hard time holding my self-accountable. For this reason, I decided to take advantage of a professional development program at work that allows us to talk with a career/life coach for a few sessions.\nThe timing of Malathi’s T-SQL Tuesday post was perfect. I had my coaching session scheduled and it\u0026rsquo;s review time at work so all these things coincided to make this a perfect time to understand why I have a hard time setting goals before I started building another list of for 2018.\nDuring my coaching session with Barbara Demarest (http://www.barbarademarest.com) she mentioned a book by Gretchen Rubin (b|t) “The Four Tendencies”. Each of us can be grouped into four categories when it comes to completing goals; I’m an Obliger. You can take a 5-minute quiz and see which category you fall in. Go ahead, I’ll wait…\nAny surprises? Now that you have an understanding of your tendencies (Upholder, Obliger, Questioner, \u0026amp; Rebel), will you change your strategy for setting/completing your goals for 2018? I know I’m going to. I need external accountability to complete my goals. Because of my tendencies, I now know that I just can\u0026rsquo;t build a list of goals and hope to complete them. For 2018 I’m working on finding others to help me be accountable. It may be my supervisor, friend, or relative. By having external accountability I’ll be more successful in completing my goals. How about you?\n","permalink":"https://sqlnikon.com/2017/12/12/i-am-an-obliger/","summary":"\u003cfigure\u003e\n\u003ca href=\"https://curiousaboutdata.com/2017/12/11/t-sql-tuesday-97-my-learning-plan/\"\u003e\u003cimg src=\"/wp-content/uploads/2017/12/sqltuesday.png\" class=\"wp-image-662 size-full\" width=\"129\" height=\"130\" /\u003e\u003c/a\u003e\n\u003cfigcaption\u003eGoal Setting\u003c/figcaption\u003e\n\u003c/figure\u003e\n\u003cp\u003eThis month\u0026rsquo;s T-SQL Tuesday (#tsql2sday) host is Malathi Mahadevan (\u003ca href=\"https://curiousaboutdata.com\"\u003eb\u003c/a\u003e|\u003ca href=\"https://twitter.com/sqlmal\"\u003et\u003c/a\u003e).\u003c/p\u003e\n\u003cp\u003eGoal setting has always been a difficult process for me. I always do a great job of researching/organizing my goals for the upcoming year but fall short in the execution phase. I tend to help others with their projects \u0026amp; tasks before mine; I have a hard time holding my self-accountable. For this reason, I decided to take advantage of a professional development program at work that allows us to talk with a career/life coach for a few sessions.\u003c/p\u003e","title":"T-SQL Tuesday #97 – I am an Obliger"},{"content":"This month\u0026rsquo;s T-SQL Tuesday is being hosted by Jason Brimhall (blog | Twitter). Jason\u0026rsquo;s theme is about gambling with SQL Server. What areas have you gambled with? Are there tasks that you should be doing that you are betting won\u0026rsquo;t be needed? One came to mind for me, CHECKSUM. I\u0026rsquo;ve always been a fan of Maintenance Plans. They are an easy way to get basic maintenance tasks established on an instance of SQL Server. The major down side of the built-in maintenance plans is no support for the CHECKSUM media option for BACKUP DATABASE. If you are performing backups without this option enabled, you run the risk of the pages in the backup media not matching the pages stored in the database. This is because without the CHECKSUM option, SQL Server doesn\u0026rsquo;t know if the page written to the backup media was written out correctly. The CHECKSUM option ensures that every page written out to your backup media has a checksum that matches the checksum of the page in the database. The CHECKSUM option also goes as far as doing a checksum on the entire backup that the RESTORE statement can take advantage of. There is a performance impact for using the CHECKSUM option but as everyone says, your backup is only as good as your restore. If you bet against your restore, your odds of a resume updating event just increased.\nNow that you understand the benefits of CHECKSUM for your backups, how do you integrate it into your backup process? It\u0026rsquo;s time to graduate from the built-in Maintenance Plans and move to Ola Hallengren\u0026rsquo;s SQL Server Maintenance Solution. The is by far the best maintenance scripts available within the SQL Server community. Do yourself a favor and pull the scripts down to a test instance and give it a try. I made the move a few months ago and have never looked back.\nDon\u0026rsquo;t bet against CHECKSUM when performing your backups!\n","permalink":"https://sqlnikon.com/2014/02/11/t-sql-tuesday-51-dont-bet-against-checksum-when-performing-backups/","summary":"\u003cp\u003e\u003ca href=\"http://jasonbrimhall.info/2014/02/04/t-sql-tuesday-051-place-your-bets/\"\u003e\u003cimg src=\"/wp-content/uploads/2014/01/t-sql-tuesday.png\" class=\"size-full wp-image-630 alignnone\" width=\"150\" height=\"150\" alt=\"Automating repetitive tasks\" /\u003e\u003c/a\u003eThis month\u0026rsquo;s T-SQL Tuesday is being hosted by Jason Brimhall (\u003ca href=\"http://jasonbrimhall.info/\"\u003eblog\u003c/a\u003e | \u003ca href=\"https://twitter.com/sqlrnnr\"\u003eTwitter\u003c/a\u003e).  Jason\u0026rsquo;s theme is about gambling with SQL Server.  What areas have you gambled with?  Are there tasks that you should be doing that you are betting won\u0026rsquo;t be needed?  One came to mind for me, CHECKSUM.  I\u0026rsquo;ve always been a fan of Maintenance Plans.  They are an easy way to get basic maintenance tasks established on an instance of SQL Server.  The major down side of the built-in maintenance plans is no support for the CHECKSUM media option for \u003ca href=\"http://technet.microsoft.com/en-us/library/ms186865.aspx\"\u003eBACKUP DATABASE\u003c/a\u003e.  If you are performing backups without this option enabled, you run the risk of the pages in the backup media not matching the pages stored in the database.  This is because without the CHECKSUM option, SQL Server doesn\u0026rsquo;t know if the page written to the backup media was written out correctly.  The CHECKSUM option ensures that every page written out to your backup media has a checksum that matches the checksum of the page in the database.  The CHECKSUM option also goes as far as doing a checksum on the entire backup that the \u003ca href=\"http://technet.microsoft.com/en-us/library/ms186858.aspx\"\u003eRESTORE\u003c/a\u003e statement can take advantage of.  There is a performance impact for using the CHECKSUM option but as everyone says, your backup is only as good as your restore.  If you bet against your restore, your odds of a resume updating event just increased.\u003c/p\u003e","title":"T-SQL Tuesday #51 - Don't bet against CHECKSUM when performing backups"},{"content":"\nThis month\u0026rsquo;s T-SQL Tuesday topic is the reason I love being a DBA, automating repetitive tasks. Hemanth Damecharla (b|t) picked a timely topic, as you start the new year, are there certain tasks that you need to automate that tend to sit on the corner of your desk yelling at you?\nThis topic also reminds me of a chart I came across in the past describing the time savings associated with automating repetitive tasks. As at most places, we are all asked to do more with fewer resources. This often leads to additional workloads without the time in the day to complete them. How many of these can you automate?\nAutomate some tasks! As I approach each task or even large projects, I like to start with a manual approach. This gives me time to understand the business problem I\u0026rsquo;m solving and plan my attack for automation. Some tasks don\u0026rsquo;t need to be automated, they may be solved by using simple T-SQL statement can be built to solve the problem. As soon as I run across tasks that contain multiple data sources, SSIS is my go to tool. SSIS allows me to build modular packages that can be reused and organized for automation.\nBack in 2012 when PASS was in Seattle, WA, I attend a pre-con for SSIS Design Patters hosted by Andy Leonard, Tim Mitchell, Matt Mason, Michelle Ufford, and Jessica Moss. This really opened my mind to what\u0026rsquo;s possible with SSIS. I recommend the book that sparked the pre-con if you\u0026rsquo;re interested in learning more.\nAs you start your automation effort, realize the upfront time spent may seem counter productive. But the time invested now will pay benefits down the road. Instead of having to manually run scripts (and having to be reminded to do so), your automated process will be running in the background making you look like a rock star!\nHappy Automating\n","permalink":"https://sqlnikon.com/2014/01/14/t-sql-tuesday-50-automating-tasks/","summary":"\u003cp\u003e\u003ca href=\"https://sqlchow.wordpress.com/2014/01/07/t-sql-tuesday-050-automation-how-much-of-it-is-the-same/\"\u003e\u003cimg src=\"https://sqlchow.files.wordpress.com/2013/01/tsql2sday.png\" class=\"alignleft\" width=\"150\" height=\"150\" /\u003e\u003c/a\u003e\u003c/p\u003e\n\u003cp\u003eThis month\u0026rsquo;s T-SQL Tuesday topic is the reason I love being a DBA, automating repetitive tasks.  Hemanth Damecharla (\u003ca href=\"http://sqlchow.wordpress.com\"\u003eb\u003c/a\u003e|\u003ca href=\"https://twitter.com/sqlchow\"\u003et\u003c/a\u003e) picked a timely topic, as you start the new year, are there certain tasks that you need to automate that tend to sit on the corner of your desk yelling at you?\u003c/p\u003e\n\u003cp\u003eThis topic also reminds me of a chart I came across in the past describing the time savings associated with \u003ca href=\"http://chartporn.org/2012/05/10/repetitive-tasks/\"\u003eautomating repetitive tasks\u003c/a\u003e.  As at most places, we are all asked to do more with fewer resources.  This often leads to additional workloads without the time in the day to complete them.  How many of these can you automate?\u003c/p\u003e","title":"T-SQL Tuesday #50 - Automating Tasks"},{"content":"\nEveryone loves reading a good book, especially about SQL Server. I\u0026rsquo;ve been on a training kick lately and the timing of this book club was perfect. Denis Gobo (b|t) has experience starting a book club where he works and decided to bring it to the SQL Server community. The goal of the club is to read a chapter each week and discuss things you learned, liked and disliked. You can ready Denis\u0026rsquo;s original post here. The first book chosen was written by Grant Fritchey (b|t) and is titled \u0026ldquo;SQL Server Execution Plans, Second Edition\u0026rdquo;. You can get a free electronic copy or purchase a print copy from simple-talk.com.\nContinuing with my review of Chapter 4, here are my thoughts on Chapter 5. The optimizer is very good at what it does, but no one is perfect. There may be rare cases where the optimizer needs a hint to force a certain type of behavior. Although this may bring immediate gains in query performance, over time, the new plan generated may cease to function better than the what the optimizer can compile on the fly. The reason for this is data change. As the data changes, statistics are updated and the selectivity of the data changes which causes indexes to become more or less useful. This is why using hints is dangerous and should be used sparingly.\nThings I learned Besides using the occasional evil hint \u0026lsquo;WITH (NO LOCK)\u0026rsquo;, I don\u0026rsquo;t use hints. Partly because I didn\u0026rsquo;t understand the query plans that well before reading this book and I had lots of respect for the optimizer. Now that I understand how execution plans are generated, I can see a useful need for hints, testing. To be able to change the behavior of the optimizer by using a Query, Join or Table hint is a powerful learning tool. You can start from the optimizer\u0026rsquo;s auto generated plan and start poking it with hints to see how the I/O and query time changs.\nIf I were to start using hints, I would definitely see a need for a tracking document or metadata query to reevaluate the execution plans. If the tables involved are static in nature, you may not need to bother with reworking the query plan hints but once a year. On the flip side though, a monthly review may be necessary if the query is pulling data from volatile tables.\nLikes Even though controlling execution plans with hints is frowned upon, Grant did a great job going through examples of each hint and how you can use them to better understand the optimizer. Grant may it very clear throughout the chapter to use hints at your own risk, but if you find a select operator has timed out looking for the best plan you may have an opportunity to use hints.\nDislikes As with most chapters thus far, no complaints on the material presented.\nOn to chapter 6!\n","permalink":"https://sqlnikon.com/2013/10/10/virtual-book-club-sql-server-execution-plans-chapter-5/","summary":"\u003cp\u003e\u003ca href=\"/wp-content/uploads/2013/09/sql-server-execution-plans.jpg\"\u003e\u003cimg src=\"/wp-content/uploads/2013/09/sql-server-execution-plans.jpg\" class=\"alignright size-medium wp-image-185\" width=\"243\" height=\"300\" alt=\"SQL Server Execution Plans\" /\u003e\u003c/a\u003e\u003c/p\u003e\n\u003cp\u003eEveryone loves reading a good book, especially about SQL Server.  I\u0026rsquo;ve been on a training kick lately and the timing of this book club was perfect.  Denis Gobo (\u003ca href=\"http://denis-gobo.squarespace.com/\"\u003eb\u003c/a\u003e|\u003ca href=\"https://twitter.com/DenisGobo\"\u003et\u003c/a\u003e) has experience starting a book club where he works and decided to bring it to the SQL Server community.  The goal of the club is to read a chapter each week and discuss things you learned, liked and disliked.  You can ready Denis\u0026rsquo;s original post \u003ca href=\"http://denis-gobo.squarespace.com/denisgobo/2013/9/3/virtual-book-club-who-is-in\"\u003ehere\u003c/a\u003e.  The first book chosen was written by Grant Fritchey (\u003ca href=\"http://www.scarydba.com/\"\u003eb\u003c/a\u003e|\u003ca href=\"https://twitter.com/gfritchey\"\u003et\u003c/a\u003e) and is titled \u0026ldquo;SQL Server Execution Plans, Second Edition\u0026rdquo;.  You can get a free electronic copy or purchase a print copy from \u003ca href=\"https://www.simple-talk.com/books/sql-books/sql-server-execution-plans,-second-edition,-by-grant-fritchey/\"\u003esimple-talk.com\u003c/a\u003e.\u003c/p\u003e","title":"Virtual Book Club: SQL Server Execution Plans, Chapter 5"},{"content":"\nEveryone loves reading a good book, especially about SQL Server. I\u0026rsquo;ve been on a training kick lately and the timing of this book club was perfect. Denis Gobo (b|t) has experience starting a book club where he works and decided to bring it to the SQL Server community. The goal of the club is to read a chapter each week and discuss things you learned, liked and disliked. You can ready Denis\u0026rsquo;s original post here. The first book chosen was written by Grant Fritchey (b|t) and is titled \u0026ldquo;SQL Server Execution Plans, Second Edition\u0026rdquo;. You can get a free electronic copy or purchase a print copy from simple-talk.com.\nContinuing with my review of Chapter 3, here are my thoughts on Chapter 4. This chapter was a deeper dive into some of the more complex plans that can be generated from T-SQL statements like APPLY, CTEs, MERGE, views, as well as how indexes are chosen.\nThings I learned Writing queries is an art form, you need to understand all the T-SQL statements and how they affect the query plan. Don\u0026rsquo;t get stuck on always using one technique over another. For example, adding a WHERE clause to a sub-select may out perform an APPLY statement (based on the data set). The point here is by understanding how each T-SQL statement will interact with your data, you can try different approaches to solving your problem and reach the results in the most efficient way.\nUsing ROLLBACK can be a useful approach when needing to view the actual execution plan for UPDATE, INSERT, DELETE, or MERGE statements. This allows the actual query plan to be generated but the DML is not committed to the database allowing you to repeatedly change the query to generate the best quality plan.\nLikes Grant did a great job of teaching how to dissect large query plans. Just like when you are trying to each an elephant, you need to approach large query plans one operator at a time. I also thought the way Grant explained views and indexes was very thorough. I now have a better understand of when a view might be expanded to the table level or when an index might be passed over because of bad statistics.\nThe other thing I noticed is how Grant was able to sharpen our understanding of T-SQL and database fundamentals in the process of this chapter. Being able to learn how the query optimizer generates plans while learning better uses of sub-queries, APPLY, CTEs, MERGE, views, and indexes is a great thing.\nDislikes As with most chapters thus far, no complaints on the material presented. Just a minor typo on the T-SQL Listing 4.7. The parameter being passed to the SP should be @BusinessEntityID and not @EmployeeID.\nOn to chapter 5!\n","permalink":"https://sqlnikon.com/2013/10/01/virtual-book-club-sql-server-execution-plans-chapter-4/","summary":"\u003cp\u003e\u003ca href=\"/wp-content/uploads/2013/09/sql-server-execution-plans.jpg\"\u003e\u003cimg src=\"/wp-content/uploads/2013/09/sql-server-execution-plans.jpg\" class=\"alignright size-medium wp-image-185\" width=\"243\" height=\"300\" alt=\"SQL Server Execution Plans\" /\u003e\u003c/a\u003e\u003c/p\u003e\n\u003cp\u003eEveryone loves reading a good book, especially about SQL Server.  I\u0026rsquo;ve been on a training kick lately and the timing of this book club was perfect.  Denis Gobo (\u003ca href=\"http://denis-gobo.squarespace.com/\"\u003eb\u003c/a\u003e|\u003ca href=\"https://twitter.com/DenisGobo\"\u003et\u003c/a\u003e) has experience starting a book club where he works and decided to bring it to the SQL Server community.  The goal of the club is to read a chapter each week and discuss things you learned, liked and disliked.  You can ready Denis\u0026rsquo;s original post \u003ca href=\"http://denis-gobo.squarespace.com/denisgobo/2013/9/3/virtual-book-club-who-is-in\"\u003ehere\u003c/a\u003e.  The first book chosen was written by Grant Fritchey (\u003ca href=\"http://www.scarydba.com/\"\u003eb\u003c/a\u003e|\u003ca href=\"https://twitter.com/gfritchey\"\u003et\u003c/a\u003e) and is titled \u0026ldquo;SQL Server Execution Plans, Second Edition\u0026rdquo;.  You can get a free electronic copy or purchase a print copy from \u003ca href=\"https://www.simple-talk.com/books/sql-books/sql-server-execution-plans,-second-edition,-by-grant-fritchey/\"\u003esimple-talk.com\u003c/a\u003e.\u003c/p\u003e","title":"Virtual Book Club: SQL Server Execution Plans, Chapter 4"},{"content":"\nEveryone loves reading a good book, especially about SQL Server. I\u0026rsquo;ve been on a training kick lately and the timing of this book club was perfect. Denis Gobo (b|t) has experience starting a book club where he works and decided to bring it to the SQL Server community. The goal of the club is to read a chapter each week and discuss things you learned, liked and disliked. You can ready Denis\u0026rsquo;s original post here. The first book chosen was written by Grant Fritchey (b|t) and is titled \u0026ldquo;SQL Server Execution Plans, Second Edition\u0026rdquo;. You can get a free electronic copy or purchase a print copy from simple-talk.com.\nContinuing with my review of Chapter 2, here are my thoughts on Chapter 3. This chapter was short and sweet. XML plans were the main focus and this chapter gave me some great ideas on how to use XQuery to make reading the XML based plans easier.\nThings I learned I\u0026rsquo;ve always stayed away from XML. In my many years working in the database world I have not had the need to interact with XML data. Querying XML based query plans with XQuery is first time I\u0026rsquo;ve seen a benefit of using XML as a DBA. For larger plans it will be easier to query the XML data instead of trying to hunt down operations with in the graphical view.\nYou can use XQuery to query .sqlplan files, XML data stored in columns or directly from the plan cache. Caution needs to be used when querying directly against the plan cache as this can have performance side effects.\nLikes I liked how Grant told us upfront in the first part of chapter that if you\u0026rsquo;re not dealing with SQL Server instances before version 2005 that text-based query plans may not be something you need to understand. Besides being a deprecated feature, XML offers plenty of advantages over text-based plans.\nDislikes Nothing to dislike in this chapter. There was just a minor typo in the supplied script for chapter 3. The book references Listing 3.18 but in the script file it is listed as 3.19\nOn to chapter 4!\n","permalink":"https://sqlnikon.com/2013/09/19/virtual-book-club-sql-server-execution-plans-chapter-3/","summary":"\u003cp\u003e\u003ca href=\"/wp-content/uploads/2013/09/sql-server-execution-plans.jpg\"\u003e\u003cimg src=\"/wp-content/uploads/2013/09/sql-server-execution-plans.jpg\" class=\"alignright size-medium wp-image-185\" width=\"243\" height=\"300\" alt=\"SQL Server Execution Plans\" /\u003e\u003c/a\u003e\u003c/p\u003e\n\u003cp\u003eEveryone loves reading a good book, especially about SQL Server.  I\u0026rsquo;ve been on a training kick lately and the timing of this book club was perfect.  Denis Gobo (\u003ca href=\"http://denis-gobo.squarespace.com/\"\u003eb\u003c/a\u003e|\u003ca href=\"https://twitter.com/DenisGobo\"\u003et\u003c/a\u003e) has experience starting a book club where he works and decided to bring it to the SQL Server community.  The goal of the club is to read a chapter each week and discuss things you learned, liked and disliked.  You can ready Denis\u0026rsquo;s original post \u003ca href=\"http://denis-gobo.squarespace.com/denisgobo/2013/9/3/virtual-book-club-who-is-in\"\u003ehere\u003c/a\u003e.  The first book chosen was written by Grant Fritchey (\u003ca href=\"http://www.scarydba.com/\"\u003eb\u003c/a\u003e|\u003ca href=\"https://twitter.com/gfritchey\"\u003et\u003c/a\u003e) and is titled \u0026ldquo;SQL Server Execution Plans, Second Edition\u0026rdquo;.  You can get a free electronic copy or purchase a print copy from \u003ca href=\"https://www.simple-talk.com/books/sql-books/sql-server-execution-plans,-second-edition,-by-grant-fritchey/\"\u003esimple-talk.com\u003c/a\u003e.\u003c/p\u003e","title":"Virtual Book Club: SQL Server Execution Plans, Chapter 3"},{"content":"\nEveryone loves reading a good book, especially about SQL Server. I\u0026rsquo;ve been on a training kick lately and the timing of this book club was perfect. Denis Gobo (b|t) has experience starting a book club where he works and decided to bring it to the SQL Server community. The goal of the club is to read a chapter each week and discuss things you learned, liked and disliked. You can ready Denis\u0026rsquo;s original post here. The first book chosen was written by Grant Fritchey (b|t) and is titled \u0026ldquo;SQL Server Execution Plans, Second Edition\u0026rdquo;. You can get a free electronic copy or purchase a print copy from simple-talk.com.\nContinuing with my review of Chapter 1, here are my thoughts on Chapter 2. You could think of Chapter 1 as walking into the shallow end of the pool and Chapter 2, swimming into the deep end, but in a good way. I never felt like I was drowning in the material, all the topics were presented in a way that made it easy to comprehend.\nThings I learned Blocking/Non-Blocking determines when an operator can begin processing data. Blocking operators need to wait for all the data before they can begin outputting data (Hash-Join is an example of a blocking operation). Non-Blocking, on the other hand, can begin processing as soon as the data starts arriving (Merge-Join is an example of a non-blocking operation). This subtle idea can help you better understand how data flows between your operators.\nSorting is something I always used as a presentation technique but in the world of query plans and table joins it can have a big impact on the optimizer\u0026rsquo;s plan generation. For example, a merger-join will only be used on sorted data, period. But if you have two non-sorted lists, hash-join may be a better option. Because hash-joins builds temporary table with in tempdb, too many of them can cause tempdb performance issues.\nDepending on the data sets, hash-join may be a good fit (think small data sets). They should also be warning sign. Pay attention to missing indexes, a missing WHERE clause, or calculations in the WHERE clause that can make it non-sargable (unable to use an index).\nWhen using SET STATISTICS IO ON to better understand logical and physical page reads, scan count was something that I was aware of but didn\u0026rsquo;t fully understand. There is a great blog post on MSDN that explains when you will see scan count 0, 1 or N. Just think of it as how many times a scan is started looking for data in a data set.\nWhen generating a query plan for an UPDATE statement, the optimizer has to first determine what rows need to be updated. This is accomplished by first doing scan/seek operation. Pay attention to the WHERE clause of your UPDATE statement as this will determine how efficient the select portion of the UPDATE statement will be.\nLikes Even though there was plenty more information presented in chapter 2 over chapter 1, everything was clear and concise. Following along with the scripts on my local instance of SQL Server made the query plans easier to follow and I was spend more time understanding how the optimizer behaves.\nDislikes There were only a few things that I would have liked to see presented better. Under the Nested Loops Join section, the tool top defines it as \u0026ldquo;For each row in the top (outer) input, scan the bottom (inner) input, and output matching rows. But Grant explained it as \u0026ldquo;\u0026hellip; scanning the outer data set (the bottom operator in a graphical execution plan) once for each row in the inner set\u0026rdquo;. Grants explanation seemed on contradict the tool tip so I had to spend extra time reading through this section to understand what was actually happening within the nested loops join.\nScan count was referenced under the Filtering Data section but no time was given to explain if a low/high scan count was a sign of possible problems. But, as I do with other blog posts, when I hit a term and I don\u0026rsquo;t understand I search for it. I was able to find a blog post under MSDN that did a great job of explaining how it works as well as samples to show what would cause 0, 1, and N scan counts.\nOn to chapter 3!\n","permalink":"https://sqlnikon.com/2013/09/17/virtual-book-club-sql-server-execution-plans-chapter-2/","summary":"\u003cp\u003e\u003ca href=\"/wp-content/uploads/2013/09/sql-server-execution-plans.jpg\"\u003e\u003cimg src=\"/wp-content/uploads/2013/09/sql-server-execution-plans.jpg\" class=\"alignright size-medium wp-image-185\" width=\"243\" height=\"300\" alt=\"SQL Server Execution Plans\" /\u003e\u003c/a\u003e\u003c/p\u003e\n\u003cp\u003eEveryone loves reading a good book, especially about SQL Server.  I\u0026rsquo;ve been on a training kick lately and the timing of this book club was perfect.  Denis Gobo (\u003ca href=\"http://denis-gobo.squarespace.com/\"\u003eb\u003c/a\u003e|\u003ca href=\"https://twitter.com/DenisGobo\"\u003et\u003c/a\u003e) has experience starting a book club where he works and decided to bring it to the SQL Server community.  The goal of the club is to read a chapter each week and discuss things you learned, liked and disliked.  You can ready Denis\u0026rsquo;s original post \u003ca href=\"http://denis-gobo.squarespace.com/denisgobo/2013/9/3/virtual-book-club-who-is-in\"\u003ehere\u003c/a\u003e.  The first book chosen was written by Grant Fritchey (\u003ca href=\"http://www.scarydba.com/\"\u003eb\u003c/a\u003e|\u003ca href=\"https://twitter.com/gfritchey\"\u003et\u003c/a\u003e) and is titled \u0026ldquo;SQL Server Execution Plans, Second Edition\u0026rdquo;.  You can get a free electronic copy or purchase a print copy from \u003ca href=\"https://www.simple-talk.com/books/sql-books/sql-server-execution-plans,-second-edition,-by-grant-fritchey/\"\u003esimple-talk.com\u003c/a\u003e.\u003c/p\u003e","title":"Virtual Book Club: SQL Server Execution Plans, Chapter 2"},{"content":"\nEveryone loves reading a good book, especially about SQL Server. I\u0026rsquo;ve been on a training kick lately and the timing of this book club was perfect. Denis Gobo (b|t) has experience starting a book club where he works and decided to bring it to the SQL Server community. The goal of the club is to read a chapter each week and discuss things you learned, liked and disliked. You can ready Denis\u0026rsquo;s original post here. The first book chosen was written by Grant Fritchey (b|t) and is titled \u0026ldquo;SQL Server Execution Plans, Second Edition\u0026rdquo;. You can get a free electronic copy or purchase a print copy from simple-talk.com.\nThis is actually my first book review. Following Denis\u0026rsquo;s lead, I\u0026rsquo;m going to discuss what things I learned, what I liked about the chapter and areas I disliked. As with speakers, feedback is important for authors. Hopefully our discussion of the book will help Grant on his third edition.\nThings I learned Did you know that you can save a XML version of the execution plan and share them with others? Well, neither did I. This would be a great way to get feedback on better ways to build queries. In fact SQLPerformance.com offers the ability to upload your plan directly from SQL Sentry\u0026rsquo;s Plan Explorer to their Q\u0026amp;A site. The SQL Server community has a wealth of information and there are always folks available to help you with your questions.\nI\u0026rsquo;m a big fan of Idera\u0026rsquo;s SQL Diagnostic Manager. This tool makes it easy to see trouble areas within my SQL Server instances. The only down side is that I\u0026rsquo;m not using the DMO statements on a daily basis. With DMOs you\u0026rsquo;re able to pull a specific plan from the plan cache. This is useful when you\u0026rsquo;re developing queries and need to view a plan that may have been saved from a previous execution of your query. To interact with some DMOs, you need to use the APPLY operator because the DMOs are table-valued functions. I\u0026rsquo;ve known about APPLY but have not had the need to use it in my daily work.\nLikes Grant did a great job introducing the query engine and how a plan is ultimately built and saved for later use. Having a strong understanding of how the execution plan is built will help me write better queries. Grant didn\u0026rsquo;t throw too much material at me during the first chapter. This allowed me to comprehend the material better without feeling overwhelmed.\nDislikes I didn\u0026rsquo;t find anything in this chapter that came across as a dislike and I\u0026rsquo;m guessing this trend will continue for the remainder of the book.\nI\u0026rsquo;m looking forward the chapter 2 next week and the rest of the book. My goal is to be able to read execution plans better than seeing how thick the lines are between operators.\n","permalink":"https://sqlnikon.com/2013/09/05/virtual-book-club-sql-server-execution-plans-chapter-1/","summary":"\u003cp\u003e\u003ca href=\"/wp-content/uploads/2013/09/sql-server-execution-plans.jpg\"\u003e\u003cimg src=\"/wp-content/uploads/2013/09/sql-server-execution-plans.jpg\" class=\"alignright size-medium wp-image-185\" width=\"243\" height=\"300\" alt=\"SQL Server Execution Plans\" /\u003e\u003c/a\u003e\u003c/p\u003e\n\u003cp\u003eEveryone loves reading a good book, especially about SQL Server.  I\u0026rsquo;ve been on a training kick lately and the timing of this book club was perfect.  Denis Gobo (\u003ca href=\"http://denis-gobo.squarespace.com/\"\u003eb\u003c/a\u003e|\u003ca href=\"https://twitter.com/DenisGobo\"\u003et\u003c/a\u003e) has experience starting a book club where he works and decided to bring it to the SQL Server community.  The goal of the club is to read a chapter each week and discuss things you learned, liked and disliked.  You can ready Denis\u0026rsquo;s original post \u003ca href=\"http://blogs.lessthandot.com/index.php/DataMgmt/DBAdmin/MSSQLServerAdmin/virtual-book-club-who-is\"\u003ehere\u003c/a\u003e.  The first book chosen was written by Grant Fritchey (\u003ca href=\"http://www.scarydba.com/\"\u003eb\u003c/a\u003e|\u003ca href=\"https://twitter.com/gfritchey\"\u003et\u003c/a\u003e) and is titled \u0026ldquo;SQL Server Execution Plans, Second Edition\u0026rdquo;.  You can get a free electronic copy or purchase a print copy from \u003ca href=\"https://www.simple-talk.com/books/sql-books/sql-server-execution-plans,-second-edition,-by-grant-fritchey/\"\u003esimple-talk.com\u003c/a\u003e.\u003c/p\u003e","title":"Virtual Book Club: SQL Server Execution Plans, Chapter 1"},{"content":"As the calendar reminder comes up with the dreaded 15 minute warning for another work stoppage event, it occurred to me how import it is to prepare for meetings to make them as productive as possible. I like to use Evernote to document all meetings and projects. Each morning I take a look at the scheduled meetings and start a new note for each of them by creating three sections:\nItems to Discuss Notes To Do Based on the meeting, I go through my master to do list and create bullets under \u0026lsquo;Items to Discuss\u0026rsquo; to update the status of each item. I also comb through my inbox and add any issues that might be relevant to the meeting. It is important to spend time updating this section of meeting preparation, this can ultimately serve as a personal agenda so you can get all you points across to the rest of the attendees.\nDuring the meeting I use the \u0026lsquo;Notes\u0026rsquo; section to record items that pertain to my responsibilities and if actionable, they are recorded under the \u0026lsquo;To Do\u0026rsquo; section. Once I have time to review my notes from the meeting, I\u0026rsquo;ll create new tasks in my master to do list from the \u0026lsquo;To Do\u0026rsquo; section and give each item a priority based on the other tasks. I like to follow Brian Tracy\u0026rsquo;s (b|t) approach to prioritizing tasks based on his book Eat That Frog.\nFrogs taste like chicken! This is a great book that talks to procrastination and how to prioritize your biggest tasks (frogs) first instead of the smaller and easier tasks. By using his system, I\u0026rsquo;m able to knock out my big frogs and feel the weight being lifted off my shoulders. Before using his system, I would go through the day completing lots of smaller tasks, feeling great, but always knowing that the \u0026lsquo;big frog\u0026rsquo; was always going to be sitting on my desk staring at me.\nOn a weekly basis I sit down with my manager for a one on one status meeting to talk through my priorities. I would suggest this for everyone to make sure your priorities line up with what is expected of you. Before each status meeting I\u0026rsquo;ll prepare the same way as any other meeting by creating a meeting template with in Evernote. For my one on one meetings, I like to review completed tasks for the week and set priorities for the upcoming week. Going over completed tasks is a great way to start the meeting off. It will give your manager an update of items you\u0026rsquo;ve accomplished for the week and set the tone for the upcoming week. Starting off on a good note leads to much more productive meeting in my opinion.\nWhile I\u0026rsquo;m not in meetings and keeping my instances of SQL Server running their best, I like to use Thomas A. Limoncelli\u0026rsquo;s (b|t) recommendations in his book Time Management for System Administrators. This is a great book for those just getting started or the seasoned veterans looking for ways to maximize their day. One of his points in the book is to how to handle interruptions. Interruptions can be handled in three ways:\nDelegate It Record It Do it Everyone dreads that simple question, \u0026ldquo;You got a minute?\u0026rdquo;, that rarely lasts under a minute. You get two or more of these questions a day, and you can throw a wrench into any plans you had for completing your priority tasks. When someone asks you for help, they just want to be acknowledged. This is where Tom\u0026rsquo;s process helps, first you acknowledge the question, then determine where it lies with your other priorities.\nMonkeys don't make good co-workers If you have the opportunity to delegate it, this is always your best option, get the monkey off your back! If it needs your attention and can wait, record it as a tasks, give the person asking the question an estimate to complete and go back to doing your higher priority items. The last option, and the most damaging, is doing the task at that instance. This is the best outcome for the person asking the question because they receive instant gratification, but requires you to break your concentration on your current task and shift your focus to something new. Don\u0026rsquo;t forget to record this as a completed item in your master to do list. These \u0026rsquo;little\u0026rsquo; interruptions can push other tasks out, so make sure your manager is updated on interruptions during your one on one.\nI hope these tips and two book recommendations help you prioritize your day and take control of interruptions!\n","permalink":"https://sqlnikon.com/2012/06/19/work-stoppage-event/","summary":"\u003cp\u003eAs the calendar reminder comes up with the dreaded 15 minute warning for another work stoppage event, it occurred to me how import it is to prepare for meetings to make them as productive as possible.  I like to use \u003ca href=\"http://www.evernote.com\" target=\"_blank\" rel=\"noopener\" title=\"Evernote\"\u003eEvernote\u003c/a\u003e to document all meetings and projects.  Each morning I take a look at the scheduled meetings and start a new note for each of them by creating three sections:\u003c/p\u003e\n\u003col\u003e\n\u003cli\u003eItems to Discuss\u003c/li\u003e\n\u003cli\u003eNotes\u003c/li\u003e\n\u003cli\u003eTo Do\u003c/li\u003e\n\u003c/ol\u003e\n\u003cp\u003eBased on the meeting, I go through my master to do list and create bullets under \u0026lsquo;Items to Discuss\u0026rsquo; to update the status of each item.  I also comb through my inbox and add any issues that might be relevant to the meeting.  It is important to spend time updating this section of meeting preparation, this can ultimately serve as a personal agenda so you can get all you points across to the rest of the attendees.\u003c/p\u003e","title":"Work Stoppage Events (Meetings)"},{"content":"The butterflies were flying! This was my first presentation for Triad SQL PASS user group, and any group for that matter. I started attended our local SQL PASS chapter back in the fall of 2011 while I was between jobs. Kevin Goode was the one who got me thinking about doing a presentation, and after I had a few months under my current position as DBA, I came up with a topic: how to work smarter as a DBA. I found that starting a new DBA position requires working on understanding your environment quickly without disrupting the day-to-day business. This presentation gives you insight into tools that keep our servers running smooth and the training that keeps me up to date of the latest trends.\nNote: the files below were shared from Dropbox\u0026rsquo;s Public folder, which Dropbox retired in 2017, so they are no longer available.\nHere is the link (no longer available) to the PowerPoint slides.\nHere is the link (no longer available) to the DBA Standards Document.\nHere is the link (no longer available) to the server specific install settings and configuration.\nHere is the link (no longer available) to the backup script I use each night.\nHere is the link (no longer available) to the server side security audit script.\nHere is the link (no longer available) to the database side security audit script.\nHere are the links to the setup scripts that are used after the install of SQL Server 2008 R2. Just edit the files based on your environment:\nDatabase Mail Configuration (no longer available) Fill Factor (no longer available) Linked Server (no longer available) Memory MIN MAX (no longer available) Security Disable SA (no longer available) Security Logins (no longer available) SQL Server Agent Operators (no longer available) SQL Server Agent Alerts (no longer available) Tempdb (no longer available) ","permalink":"https://sqlnikon.com/2012/06/11/working-smarter-not-harder-as-a-dba/","summary":"\u003cp\u003eThe butterflies were flying!  This was my first presentation for Triad SQL PASS user group, and any group for that matter.  I started attended our local SQL PASS chapter back in the fall of 2011 while I was between jobs. \u003ca href=\"/wp-content/uploads/2012/06/propellerhead.jpg\"\u003e\u003cimg src=\"/wp-content/uploads/2012/06/propellerhead.jpg\" title=\"Chief Propellerhead\" class=\"wp-image-142 alignright\" width=\"300\" height=\"300\" /\u003e\u003c/a\u003e Kevin Goode was the one who got me thinking about doing a presentation, and after I had a few months under my current position as DBA, I came up with a topic: how to work smarter as a DBA.  I found that starting a new DBA position requires working on understanding your environment quickly without disrupting the day-to-day business.  This presentation gives you insight into tools that keep our servers running smooth and the training that keeps me up to date of the latest trends.\u003c/p\u003e","title":"Working smarter, not harder, as a DBA"},{"content":"As most of you know, the Database Mail feature in SQL Server 2008 is the life blood of any notification system for your instances. If Database Mail fails to send notifications, you may not be warned if a job fails, or worst, a backup job. We had a server last week that was exhibiting a weird behavior within Database Mail. I was receiving mail from all parts of the Database Mail environment except for Agent Job Notifications. I was able to send test emails from Database Mail, able to receive maintenance plan summary reports and even receive emails from within maintenance plans using the notification task. Why was Agent Job Notifications the only area that was mis-behaving? As I started diagnosing the issue I checked the main areas that usually stumped me in the past:\nVerified database mail profile was enabled under SQL Server agent (Alert System Page) Verified profile security was public and default Restarted SQL Server Agent The above three items usually resolved any issue I have with Database Mail. Did some more testing with my Agent Job and sure enough, still not working. Then I started digging into the logs, under SQL Server 2008 you can see logs from SQL Server, SQL Server Agent, Database Mail, and Windows all under the same screen. I dove into the Database Mail Log and there was an error for \u0026ldquo;[264] An attempt was made to send an email when no email session has been established\u0026rdquo;. Never seen this before. I started searching Google and found similar issues but none seemed to fit my situation or solve my problem. Because we have a simple setup for Database Mail, one account and one profile, I decided to rebuilt the configuration.\nI deleted the profile and account, and then went back in and went through a complete rebuilt of the configuration. I used the same account and same profile settings as before. After I had the Database Mail configuration complete, I needed to make sure the profile was enabled under SQL Server Agent. Right click on SQL Server Agent and click Properties. Under the Alert System page, make sure Enable Database Mail is enabled and that your mail system is selected along with the correct profile name. With that done, I need to restart the SQL Server Agent. Upon restart the 264 error did not appear and I was able to receive emails from my Agent Job Notifications. Don\u0026rsquo;t know what caused the issue in the first place, but the rebuild seemed to clear things up.\n","permalink":"https://sqlnikon.com/2012/01/22/database-mail-configuration-error-264/","summary":"\u003cp\u003eAs most of you know, the Database Mail feature in SQL Server 2008 is the life blood of any notification system for your instances.  If Database Mail fails to send notifications, you may not be warned if a job fails, or worst, a backup job.  We had a server last week that was exhibiting a weird behavior within Database Mail.  I was receiving mail from all parts of the Database Mail environment except for Agent Job Notifications.  I was able to send test emails from Database Mail, able to receive maintenance plan summary reports and even receive emails from within maintenance plans using the notification task.  Why was Agent Job Notifications the only area that was mis-behaving?  As I started diagnosing the issue I checked the main areas that usually stumped me in the past:\u003c/p\u003e","title":"Database Mail Configuration Error 264"},{"content":"Jason Strate (blog|Twitter) has started a new meme project about social networking for SQL Server professionals. This month\u0026rsquo;s theme is all about Twitter. We have been asked to answer the following two questions:\nWhy should the average Jane or Joe professional consider using Twitter? What benefit have you seen in your career because of Twitter? I consider myself an average Joe SQL Server professional. I\u0026rsquo;m a DBA for a private University and enjoy solving business problems with data. Up until June of 2010, I did not have a Twitter account and was not involved in the #SQLFamily. When I was getting back into the DBA field after going to the dark side (management) for a few years, I found Twitter as the catalysts for learning. I was able to follow a few big hitters in the #SQLFamily and with in the first day, started reading tweets for webcasts and blog posts.\nThis is the key for me using Twitter, there is so much good information posted everyday to keep you informed about SQL Server topics. The beauty of Twitter is most of the #SQLFamily don\u0026rsquo;t post the same as your friends do on Facebook. Twitter has become a medium for disseminating information. Now, there are plenty of tweets from celebrities and even your friends that are just plain noise, this is where the #SQLFamily stands out. Most of the people I follow tweet about topics related to SQL Server. I enjoy reading new blogs and being notified of webcasts where I can learn new things.\nAs I stated earlier, I found Twitter as my means of getting back into the DBA world. I started with Brent Ozar\u0026rsquo;s Twitter Book and created an account. From there it was as easy as following Brent Ozar (blog|Twitter), Glenn Berry (blog|Twitter), Thomas Larock (blog|Twitter) and Aaron Bertrand (blog|Twitter). From just those four people, I was introduced to so many more and started following them. Each time I started following someone new, I was introduced to few other people and the Twitter snowball kept growing. As of Jan 2012, I\u0026rsquo;m following ~150 people and it\u0026rsquo;s hard to keep up during the day and usually spend nights catching up on all the tweets for the day.\nThe benefits of Twitter helped me land a great DBA job in higher education. I had plenty of experience under SQL Server 2000 \u0026amp; 2005 but only limited direct interaction with SQL Server 2008 \u0026amp; 2008 R2. This is where the webcasts and blogs that I was notified about on Twitter helped me fill the gaps and use that knowledge to practice in my home lab. Without Twitter, I would have not had the #SQLFamily behind me and would have struggled getting back in the game.\n","permalink":"https://sqlnikon.com/2012/01/16/meme15-for-twitter/","summary":"\u003cp\u003e\u003ca href=\"/wp-content/uploads/2012/01/meme151.png\"\u003e\u003cimg src=\"/wp-content/uploads/2012/01/meme151.png\" class=\"alignright size-full wp-image-120\" width=\"150\" height=\"150\" /\u003e\u003c/a\u003eJason Strate (\u003ca href=\"http://www.jasonstrate.com/\"\u003eblog\u003c/a\u003e|\u003ca href=\"https://twitter.com/#!/stratesql\"\u003eTwitter\u003c/a\u003e) has started a new meme project about social networking for SQL Server professionals.  This month\u0026rsquo;s \u003ca href=\"http://www.jasonstrate.com/2012/01/january-meme15-assignment/\"\u003etheme\u003c/a\u003e is all about Twitter.  We have been asked to answer the following two questions:\u003c/p\u003e\n\u003col\u003e\n\u003cli\u003eWhy should the average Jane or Joe professional consider using Twitter?\u003c/li\u003e\n\u003cli\u003eWhat benefit have you seen in your career because of Twitter?\u003c/li\u003e\n\u003c/ol\u003e\n\u003cp\u003eI consider myself an average Joe SQL Server professional.  I\u0026rsquo;m a DBA for a private University and enjoy solving business problems with data.  Up until June of 2010, I did not have a Twitter account and was not involved in the \u003ca href=\"https://twitter.com/#!/search?q=%23sqlfamily\"\u003e#SQLFamily\u003c/a\u003e.  When I was getting back into the DBA field after going to the dark side (management) for a few years, I found Twitter as the catalysts for learning.  I was able to follow a few big hitters in the #SQLFamily and with in the first day, started reading tweets for webcasts and blog posts.\u003c/p\u003e","title":"#meme15 for Twitter"},{"content":"As I sat down and wrote out my goals for 2012 for my job, they didn\u0026rsquo;t take into account my blogging, user groups and #SQLFamily. This is why this is a perfect #mememonday project. You can read more about #mememonday here from Thomas Larock (Blog, Twitter).\nI\u0026rsquo;m fairly new to the #SQLFamily. I didn\u0026rsquo;t start getting involved till June 2011 and up to now, didn\u0026rsquo;t participate in monthly blogging like #mememonday or #tsql2sday. For the past 8 months have just been digesting information like I was eating at Golden Corral. Twitter, webcasts and RSS feeds can take hours a day to stay updated. I still find it hard to get through all the Twitter feeds a day and finally had to limit the number of RSS subscriptions under Google Reader so those didn\u0026rsquo;t get behind as well. As I write this, I can see TweetDeck notifications going off every few minutes.\nSo here are my personal goals list for #SQLFamily in 2012:\nContinue to attend Triad PASS and Triad BI PASS. The part that I\u0026rsquo;m going to work on this month is to blogging about my experiences. I\u0026rsquo;ve seen a few other posts related to this item and thought it was a great idea. This will help others that have not started, to attend their local PASS chapters to see the topics discussed how much fun they are. Start attending the virtual PASS chapters. There are some great virtual chapters held every week that discuss topics that you may not otherwise receive at your local events. Here to, I aim to blog about each one to keep my writing skills fresh. Present at Triad PASS in June 2012. Our local Triad PASS chapter leader, Kevin Goode, asked me to present and I decided to jump in. This will be my first time ever presenting anything outside of lunch and learns through work. I have not picked a topic yet, but because I started a new job in November 2011, I\u0026rsquo;m thinking about walking though my management processes for my new SQL Server instances. Stay involved in #mememonday events. This was started by Thomas Larock (Blog, Twitter) and I\u0026rsquo;m looking forward to these monthly blogs. This is a great way to blog about something that you otherwise may not write about. I feel too many times and get in my comfort zone of daily DBA tasks and don\u0026rsquo;t stretch my boundaries to learn new things with in SQL Server. Start blogging for #tsql2sday. This was started by Adam Machanic (blog, Twitter) and just like with #mememonday, will give me the opportunity to participate in blogs about items I\u0026rsquo;m unfamiliar with. This will require researching a topic and writing about it. I\u0026rsquo;m looking forward to this one. Midnight DBA. Sean (blog, Twitter) and Jen (blog, Twitter) make this live broadcast a blast. I\u0026rsquo;m guilty of falling asleep before the show starts but my goal this year is to catch at least 2 shows a month live. The pre and post shows are just as fun as the main show. They cover technical topics with a fun twist and their sense of humor keeps me laughing through the entire show. This will be another event that I plan to blog about. Brent Ozar PLF\u0026rsquo;s Tech Triage Tuesday. This is a great half hour weekly webcast that covers all aspects of SQL Server. Brent Ozar (blog, Twitter) and his team, cover topics from performance tuning to SANs, each week is a must see. As you can guess, I\u0026rsquo;m going to blog about these as well. My goals this year for #SQLFamily are all around bringing awareness to the training opportunities that are available to everyone. Whether you are able to attend these events live or watch them from the comfort of your home, my goal is to spark interest in all the events. This is how I was introduced to #SQLFamily back in June 2011 and I hope I can do the same for other SQL Server DBAs and developers out there.\nHave a great year #SQLFamily,\n","permalink":"https://sqlnikon.com/2012/01/09/2012-to-dos-for-sqlfamily/","summary":"\u003cp\u003eAs I sat down and wrote out my goals for 2012 for my job, they didn\u0026rsquo;t take into account my blogging, user groups and \u003ca href=\"https://twitter.com/#!/search/%23sqlfamily\"\u003e#SQLFamily\u003c/a\u003e.  This is why this is a perfect \u003ca href=\"https://twitter.com/#!/search/%23mememonday\"\u003e#mememonday\u003c/a\u003e project.  You can read more about #mememonday \u003ca href=\"http://thomaslarock.com/2012/01/mememonday-for-january/\"\u003ehere\u003c/a\u003e from Thomas Larock (\u003ca href=\"http://thomaslarock.com/\"\u003eBlog\u003c/a\u003e, \u003ca href=\"https://twitter.com/#!/SQLRockstar\"\u003eTwitter\u003c/a\u003e).\u003c/p\u003e\n\u003cp\u003eI\u0026rsquo;m fairly new to the #SQLFamily.  I didn\u0026rsquo;t start getting involved till June 2011 and up to now, didn\u0026rsquo;t participate in monthly blogging like \u003ca href=\"https://twitter.com/#!/search/%23mememonday\"\u003e#mememonday\u003c/a\u003e or \u003ca href=\"https://twitter.com/#!/search/%23tsql2sday\"\u003e#tsql2sday\u003c/a\u003e.  For the past 8 months have just been digesting information like I was eating at Golden Corral.  Twitter, webcasts and RSS feeds can take hours a day to stay updated.  I still find it hard to get through all the Twitter feeds a day and finally had to limit the number of RSS subscriptions under Google Reader so those didn\u0026rsquo;t get behind as well.  As I write this, I can see TweetDeck notifications going off every few minutes.\u003c/p\u003e","title":"2012 To Do's for #SQLFamily"},{"content":"As the name suggests, SQL Family feels like family. There is no other professional organization in the world that supports a product line as well as #SQLFamily. My introduction to #SQLFamily was in the summer of 2011 when I decided to get back into SQL Server full-time after going to the dark side, management, for the two previous years. I had a strong background in SQL Server 2000 \u0026amp; 2005 but not the full-time experience under 2008 \u0026amp; 2008 R2.\nAs I started searching for training opportunities for SQL Server, I came across Pragmatic Works. Every Tuesday and Thursday throughout the year, they have a one hour web cast on all areas of SQL Server. This allowed me to catch up on what was new under 2008 and brush up on the daily DBA tasks that I was accustomed to. Each of the presenters had a personal blog and twitter address that had even more content over the session that was offered. This got me interested in blogging for myself and starting to use twitter. As I started searching for ways to get started in blogging and using twitter, I came across Brent Ozar (blog, twitter). He built a great guide to help understand what twitter was all about. I wasn\u0026rsquo;t interested in following celebrities or sports figures, I just wanted to use it for SQL Server. It just so happened that Brent was a DBA and a photographer. This one-two punch was just the right mix to start me on my way into WordPress and Twitter.\nAs I started following Brent, I started reading posts from him and other SQL Server professionals about the passion the SQL Server community had for helping others. This was perfect for me as I started on my way to becoming a full-time DBA. Each new blog entry or twitter post gave me a new understand of SQL Server and how strong the community was. This also introduced me to PASS and the local user groups that were offered in my area. As I started attending the local events, that same passion within the on-line community was equally as strong at the local level. This allowed me to network with other SQL Server DBAs and get their input on ways to get back into the field full-time.\nThe local PASS events lead me to SQL Saturday. I was able to attend the Atlanta #89 event in the fall of 2011. This was very eye-opening for me. There were over 400 people gathered for a full day of free training on a Saturday. I was finally able to meet a few folks that I had only meet via twitter. The highlight for me was hearing Bob Ward from Microsoft talk about wait types. His session was level 500 and then some. It was cool to see the inter-workings of SQL Server from one of the people who has access to the source code.\nBy the fall of 2011, I was already talking to a few companies about DBA positions and felt confident about finding the perfect DBA job. As I accepted my current DBA role, I thought back to the family that got me there. With out #SQLFamily, this would have not been possible. This has given me the drive to give back to the community so others out there can find their perfect DBA role like I did. My first step is our local PASS chapter and presenting during the summer of 2012. I\u0026rsquo;m also working on blogging more regularly throughout the month, so others can learn from my view of being a SQL Server DBA.\nI love being a part of the #SQLFamily. Looking forward to a great year in 2012!\n","permalink":"https://sqlnikon.com/2011/12/31/2011-was-the-year-of-sqlfamily/","summary":"\u003cp\u003eAs the name suggests, SQL Family feels like family.  There is no other professional organization in the world that supports a product line as well as #SQLFamily.  My introduction to #SQLFamily was in the summer of 2011 when I decided to get back into SQL Server full-time after going to the dark side, management, for the two previous years.  I had a strong background in SQL Server 2000 \u0026amp; 2005 but not the full-time experience under 2008 \u0026amp; 2008 R2.\u003c/p\u003e","title":"2011 was the year of #SQLFamily"},{"content":"I was excited to see the iOS 5 update was available yesterday (10/12/11) so I did what any normal person would do and quickly connected my iPhone 4 via iTunes and clicked the Check for Update button. The download was about 740MB and didn\u0026rsquo;t take too long to pull down from Apple\u0026rsquo;s site. The install appeared to be going well until it started the restore process and bombed out with an error code 3004/3014. Did some research via Google and didn\u0026rsquo;t find an exact fix but found plenty of other people experiencing the same problem. I was able to get past the verification stage with Apple, but the restore was failing every time I tried update the phone. I was stuck in an infinite loop. The phone would have the factory default \u0026ldquo;Connect to iTunes\u0026rdquo; message, but every time it went to restore the iOS 5 image it failed. I finally ran across a few articles taking about pulling the iOS 5 image down directory from Apple and applying that image instead of the one that was pulled down from iTunes. You can find the iOS 5 image links to all the Apple devices compatible with iOS 5 here.\nOnce I had the iPhone3,1_5.0_9A334_Restore.ipsw file (specific to my at\u0026amp;t iPhone 4) I connected the phone back to the USB cable and this time, held down the Option key and clicked Restore within iTunes under my device. This brought up a finder window that enabled me to select my own iOS 5 image to use. This restored the phone to the original factory defaults (with iOS 5) and got my phone back up and running. Once iTunes discovered the same phone had been previously backed up on the same machine, it let me select the backup image to apply. This process took a while. All the settings, apps, music, and videos had to be copied back to the iPhone. Once that completed (~1.5 hours) I was back in shape!\nI miss Steve\u0026hellip;\n","permalink":"https://sqlnikon.com/2011/10/13/iphone-4-ios-5-upgrade-error-3004-3014/","summary":"\u003cp\u003eI was excited to see the iOS 5 update was available yesterday (10/12/11) so I did what any normal person would do and quickly connected my iPhone 4 via iTunes and clicked the Check for Update button.  The download was about 740MB and didn\u0026rsquo;t take too long to pull down from Apple\u0026rsquo;s site.  The install appeared to be going well until it started the restore process and bombed out with an error code 3004/3014.  Did some research via Google and didn\u0026rsquo;t find an exact fix but found plenty of other people experiencing the same problem.  I was able to get past the verification stage with Apple, but the restore was failing every time I tried update the phone.  I was stuck in an infinite loop.  The phone would have the factory default \u0026ldquo;Connect to iTunes\u0026rdquo; message, but every time it went to restore the iOS 5 image it failed.  I finally ran across a few articles taking about pulling the iOS 5 image down directory from Apple and applying that image instead of the one that was pulled down from iTunes.  You can find the iOS 5 image links to all the Apple devices compatible with iOS 5 \u003ca href=\"http://techie-buzz.com/mobile-news/ios5-ipsw-direct-download-links.html\"\u003ehere\u003c/a\u003e.\u003c/p\u003e","title":"iPhone 4 IOS 5 Upgrade Error 3004 \u0026 3014"},{"content":"I attended the inaugural Triad SQL BI PASS User Group last week hosted by Inmar in Winston-Salem NC. DataMasters provided the pizza before the meeting and Wayne Snyder [twitter] from Mariner USA was the guest speaker that talked about the top 10 reasons to upgrade to SQL Server Denali. Melissa Wittner [triadsqlbi@gmail.com] is the Chapter Leader for the new group and did a wonderful job getting the group start and the meeting organized. You can visit the chapter\u0026rsquo;s website here.\nFuture meetings:\nOctober 23rd Performance Point November 29th Dashboards December 8th Social @ Foothills Brewing Company Top 10 Reasons to Upgrade List:\nSSIS Enhancements Master Data Services Enhancements Data Quality Services Column Indexes SSRS w/ SharePoint SSRS Data Alerts PowerPivot Enhancements DAX (Data Analysis Expression) Language SSAS Tabular Model Project Crescent Wayne spent the next hour doing a deep dive demo for some of the items in the top 10 list. Wayne has spent the last 9-12 months working in Denali and it shows. He was able to show the group all aspects of SSIS, column store indexes, and PowerPivot. This has energized my interest in Denali and trying a few of these new features in my lab. I\u0026rsquo;m looking forward to attending this user group on a regular basis.\n","permalink":"https://sqlnikon.com/2011/10/04/septembers-inaugural-triad-sql-bi-pass-user-group/","summary":"\u003cp\u003eI attended the inaugural Triad SQL BI PASS User Group last week hosted by \u003ca href=\"http://www.inmar.com\" title=\"Inmar\"\u003eInmar\u003c/a\u003e in Winston-Salem NC.  \u003ca href=\"http://www.datamasters.com\" title=\"DataMasters\"\u003eDataMasters\u003c/a\u003e provided the pizza before the meeting and Wayne Snyder [\u003ca href=\"http://www.twitter.com/sqlwayne\" title=\"SQLWayne\"\u003etwitter\u003c/a\u003e] from \u003ca href=\"http://www.mariner-usa.com\" title=\"Mariner USA\"\u003eMariner USA\u003c/a\u003e was the guest speaker that talked about the top 10 reasons to upgrade to SQL Server Denali.  Melissa Wittner [\u003ca href=\"mailto:triadsqlbi@gmail.com\"\u003etriadsqlbi@gmail.com\u003c/a\u003e] is the Chapter Leader for the new group and did a wonderful job getting the group start and the meeting organized.  You can visit the chapter\u0026rsquo;s website \u003ca href=\"http://www.winston-salem.sqlpass.org/\" title=\"Triad SQL BI User Group\"\u003ehere\u003c/a\u003e.\u003c/p\u003e","title":"September's Inaugural Triad SQL BI PASS User Group"},{"content":"As I was installing ESXi v5 in my lab I came across a prompt to press F11 to accept the license agreement, that I fully read :). On my Mac I was using iDRAC v6 Enterprise via the browser to install the ISO image. When I went to press F11, my Mac\u0026rsquo;s desktop was shown. I have the full Apple USB keyboard so I tried using the fn key with F11 and without, each time with no success. I thought I\u0026rsquo;d start in the System Preferences section under Keyboard. Under the Mission Control section there was a short-cut for F11 and F12 that was grabbing the keystroke before it was sent through the browser.\nOnce I un-checked the \u0026ldquo;Show Desktop\u0026rdquo; and \u0026ldquo;Show Dashboard\u0026rdquo; I was able to reply to the license agreement prompt with F11.\n","permalink":"https://sqlnikon.com/2011/10/04/f11-and-vmware-esxi-5-on-my-mac/","summary":"\u003cp\u003eAs I was installing ESXi v5 in my lab I came across a prompt to press F11 to accept the license agreement, that I fully read :).  On my Mac I was using iDRAC v6 Enterprise via the browser to install the ISO image.  When I went to press F11, my Mac\u0026rsquo;s desktop was shown.  I have the full Apple USB keyboard so I tried using the fn key with F11 and without, each time with no success.  I thought I\u0026rsquo;d start in the System Preferences section under Keyboard.  Under the Mission Control section there was a short-cut for F11 and F12 that was grabbing the keystroke before it was sent through the browser.\u003c/p\u003e","title":"F11 and VMware ESXi 5 on my Mac"},{"content":"I attended a great session September 15th 2011 at the Triad SQL PASS User Group with Jason Hall from SQL Sentry demonstrating the advantages of SQL Sentry\u0026rsquo;s Plan Explorer over the built-in SSMS plan explorer. You can find Jason under @SQLSaurus on Twitter. The meeting was hosted by Dynamic Quest, and everyone\u0026rsquo;s favorite pizza and soda was served before the meeting started at 6:30pm.\nJason went through 7 example queries to show how the SQL Sentry Plan Explorer reporting results compared to SSMS. Sentry\u0026rsquo;s product is free and integrates directly into SSMS. Here are some other advantages with Sentry\u0026rsquo;s Plan Explorer:\nFeatures color scaling from yellow to red so you can easily identify problem areas. Features separate I/O and CPU costs to identify disk vs processor intense queries. The plan viewer is must more condensed than SSMS\u0026rsquo;s view. This enables you to see the whole plan much easier. You can download Plan Explorer for yourself here and test things out.\n","permalink":"https://sqlnikon.com/2011/09/30/septembers-triad-sql-pass-user-group/","summary":"\u003cp\u003eI attended a great session September 15th 2011 at the Triad SQL PASS User Group with Jason Hall from SQL Sentry demonstrating the advantages of SQL Sentry\u0026rsquo;s Plan Explorer over the built-in SSMS plan explorer.  You can find Jason under \u003ca href=\"http://www.twitter.com/sqlsaurus\"\u003e@SQLSaurus\u003c/a\u003e on Twitter. The meeting was hosted by \u003ca href=\"http://www.dynamicquest.com/\"\u003eDynamic Quest\u003c/a\u003e, and everyone\u0026rsquo;s favorite pizza and soda was served before the meeting started at 6:30pm.\u003c/p\u003e\n\u003cp\u003eJason went through 7 example queries to show how the SQL Sentry Plan Explorer reporting results compared to SSMS.  Sentry\u0026rsquo;s product is free and integrates directly into SSMS.  Here are some other advantages with Sentry\u0026rsquo;s Plan Explorer:\u003c/p\u003e","title":"September's Triad SQL PASS User Group"},{"content":"Being raised within SQL Server 6.5 \u0026amp; 7.0, SQL Server instances were not available in those versions. I never fully understood the advantage of having multiple instances on the same server so I never embraced it. I always had a single, default instance per physical server. Once I got involved with virtualization a few years ago, having multiple instances of an OS running on a single physical server finally got me thinking about multiple instances of SQL Server.\nMy lab at home has been the perfect place to install, configure and understand multiple SQL Server instances. I have two servers running ESXi 4.1 U1 and VM\u0026rsquo;s to support a small Windows Domain.\nI started with a copy of Windows Server 2008 R2 64bit as the guest OS. I installed my first copy of SQL Server 2005 Standard under a named instance of SQL03\\SQL2005Standard (I currently don\u0026rsquo;t have a standard instance of SQL Server installed on this VM). I then proceeded to install SQL Server 2005 Enterprise, SQL Server 2008 Standard \u0026amp; SQL Server 2008 Enterprise all as named instances on the same VM as SQL03\\SQL2005Ent, SQL03\\SQL2008Standard, SQL03\\SQL2008Ent, respectively.\nHere is what I learned about supporting multiple instances of SQL Server from a DBA point of view:\nThe default instance of SQL Server, known as MSSQLSERVER, runs under TCP port 1433 Under Windows Server 2008, the firewall is enabled by default so you need to create inbound rules to allow outside connections to be able to reach SQL Server. SQL Server Browser service is responsible for taking requests for named instances and forwarding them to the correct port, whether it\u0026rsquo;s dynamic or statically configured. If there are no named instances of SQL Server, the Browser service is not required. The SQL Server Browser service runs under UDP port number 1434. This will need to be opened under the firewall. With out the SQL Server Browser service running, you would need to provide the IP and Port number (xxx.xxx.xxx.xxx:yyyy) in order to connect to a SQL Server instance. To connect to a SQL Server instance by name, you use the \u0026lt;computer name\u0026gt;\\\u0026lt;instance name\u0026gt; syntax. By default, named instances are set to dynamic ports. This causes an issue trying to open ports on the Windows firewall because each time SQL Server is restarted a new port can be set. With the firewall enabled, it\u0026rsquo;s best to switch to static ports for all named instances and then create inbound rules for those TCP ports. If you prefer to use dynamic ports, you can also exclude the sqlserver.exe process from the firewall. This would allow inbound connections for just the SQL Server process and thus all clients to connect to dynamic or static ports without having to create individual rules for each TCP port number. To set an instance to a static port, open SQL Server Configuration Manager (SSCM) and drill through SQL Server Network Configuration and expand the Protocols tree for your named instance. Right click on TCP/IP and select Properties. Click on the IP Address tab and scroll all the way to the bottom of the list until you see \u0026lsquo;All IP\u0026rsquo;. Clear out the TCP Dynamic box and under TCP Port, provide the desired TCP port number. To switch back to dynamic port allocation, just clear out the TCP Port box and place a zero in the TCP Dynamic box. Any time you make a change to the Protocol settings, you will need to restart the SQL Server service for the named instance. TCP and UDP ports are registered with a national directory. You can reference them by using this Wikipedia article. I chose to use TCp ports 1435 through 1438 for my instances. Well known ports are from 0 - 1023, Registered ports are from 1024 - 49151, and Dynamic ports are from 49152 - 65535. To see a list of ports the server is using, run \u0026rsquo;netstat -an\u0026rsquo; from the command prompt. Use this data along with available ports from Wikipedia to determine what ports are available on your system. I hope you find this useful when you try to install SQL Server with multiple instances when the Windows Firewall service is enabled.\n","permalink":"https://sqlnikon.com/2011/09/16/understanding-sql-server-instances/","summary":"\u003cp\u003eBeing raised within SQL Server 6.5 \u0026amp; 7.0, SQL Server instances were not available in those versions.  I never fully understood the advantage of having multiple instances on the same server so I never embraced it.  I always had a single, default instance per physical server.  Once I got involved with virtualization a few years ago, having multiple instances of an OS running on a single physical server finally got me thinking about multiple instances of SQL Server.\u003c/p\u003e","title":"Understanding SQL Server Instances"},{"content":"Welcome to my blog. My name is Doug Purnell and I live in Greensboro, NC. I\u0026rsquo;ve been in the technology world for the last 20 years ever since graduating from Appalachian State University with a Computer Science degree. I started in the Visual Basic 4.0 \u0026amp; SQL Server 6.5 world back in the early 90\u0026rsquo;s and have loved IT ever since.\nMy goal is to try to convey my experiences in the IT world from SQL Server, VMware, and the data center. I\u0026rsquo;ll even try to throw in a few thoughts on Apple products, Nikon Photography and my weekend cookouts on the smoker.\n","permalink":"https://sqlnikon.com/2011/06/06/hello-world/","summary":"\u003cp\u003eWelcome to my blog.  My name is Doug Purnell and I live in Greensboro, NC.  I\u0026rsquo;ve been in the technology world for the last 20 years ever since graduating from Appalachian State University with a Computer Science degree.  I started in the Visual Basic 4.0 \u0026amp; SQL Server 6.5 world back in the early 90\u0026rsquo;s and have loved IT ever since.\u003c/p\u003e\n\u003cp\u003eMy goal is to try to convey my experiences in the IT world from SQL Server, VMware, and the data center.  I\u0026rsquo;ll even try to throw in a few thoughts on Apple products, Nikon Photography and my weekend cookouts on the smoker.\u003c/p\u003e","title":"The Wonderful World of Blogging!"},{"content":"Hello, my name is Doug Purnell. I’ve been in the IT industry since 1994 starting from a VB developer, SQL Server DBA, and designing and supporting data centers. My goal is to use this site to convey by thoughts on SQL Server, photography, and my joy for the backyard BBQ.\nDoug Purnell\nsqlnikon@gmail.com\nhttps://sqlnikon.com\n@sqlnikon\\\n","permalink":"https://sqlnikon.com/about/","summary":"\u003cp\u003eHello, my name is Doug Purnell.  I’ve been in the IT industry since 1994 starting from a VB developer, SQL Server DBA, and designing and supporting data centers.  My goal is to use this site to convey by thoughts on SQL Server, photography, and my joy for the backyard BBQ.\u003c/p\u003e\n\u003cp\u003eDoug Purnell\u003cbr\u003e\n\u003ca href=\"mailto:sqlnikon@gmail.com\"\u003esqlnikon@gmail.com\u003c/a\u003e\u003cbr\u003e\n\u003ca href=\"https://sqlnikon.com\"\u003ehttps://sqlnikon.com\u003c/a\u003e\u003cbr\u003e\n\u003ca href=\"http://twitter.com/sqlnikon\"\u003e@sqlnikon\u003c/a\u003e\\\u003c/p\u003e","title":"About"}]