SQLUG-möte med Rob Sewell och Kevin Kline

Corona-pandemin fortsätter och därför fortsätter vi med online-möten tills vidare.

När: Tisdag 2 juni, 18:00, cirka två timmar
Var: Onlinemöte, länk skickas ut i bekräftelsen efter anmälan
Anmälan: https://www.eventbrite.com/e/sql-server-usergroup-sweden-with-rob-sewell-and-kevin-kline-tickets-105940990354

Rob Sewell – dbackechs, SQL Server configuration validation

Be-Whiskered PowerShell Ninja

Rob was a SQL Server DBA with a passion for Powershell, Azure, Automation, and SQL (PaaS geddit?). Now he just helps people. He is a Cloud and Data Center MVP, an officer for the PASS DevOps Virtual Chapter, co-leader of Data South West and PSConfEU organiser and has spoken at and volunteered at many Data and PowerShell events all over the world. He is a proud supporter of the Data and Powershell communities.

He relishes sharing and learning and can be found doing both via Twitter and his blog. He spends most of his time looking at a screen and loves to solve problems. He knows that looking at a screen so much is bad for him because his wife tells him so. Thus, you can find him on the cricket field in the summer and flying a drone in the winter.

He has a fabulous beard

Abstract: As a SQL DBA you want to know that your SQL Server Estate is compliant with the rules that you have set up. Now there is a simple method using PowerShell and you can get the results in PowerBi or embedded into your CI/CD solution

Details such as:

  • How long since your last backup?
  • How long since your last DBCC Check?
  • Are your Agent Operators Correct?
  • Is AutoClose, AutoShrink, Auto Update Stats set up correctly?
  • Is DAC Allowed?
  • Are your file growth settings correct, what about the number of VLFs?
  • Is your latency, TCP Port, PS remoting as you expect?
  • Is Page Verify, Data Purity, Compression correctly set up?

And many more checks (even your own) can be achieved using the dbachecks PowerShell module and all configurable so that you can validate YOUR settings

We are adding a new PowerBi dashboard, the ability to easily store the results into any format that you want including a database, come and take a walk though the new dbachecks

Kevin Kline – Query Tuning internals for the advanced SQL Developer

Kevin Kline is a noted database expert and software industry veteran. A long-time Microsoft Data Platform MVP and noted community leader in the IT industry, Kevin is a founder and former president of the Professional Association for SQL Server, as well as the author of popular IT books like SQL in a Nutshell.

Kevin is a top-rated speaker at industry trade shows worldwide and has a monthly column at Database Trends magazine. He tweets at @kekline and blogs regularly. Kevin is a Principal Program Manager at SentryOne, a leading vendor of database tools.

Abstract: Skilled SQL developers know that the SQL Server query optimizer uses a multi-step process to produce execution plans. But what about deeper components like the parser, the binder, the algebrizer, as well as the optimizer itself? This session will teach you advanced techniques for query tuning as well as surprising behaviors of the query optimization process that can have a dramatic impact on performance, with special attention paid to the processes controlled by the algebrizer, including associative, commutative, and transitive transformations. We will examine a variety of everyday queries whose performance can be greatly improved by apply a deeper understanding of these internal behaviors. Lots of examples and demos!

  • Goal 1: Learn advanced and undocumented methods to see the steps of parsing, binding, algebrizing, and query optimization.
  • Goal 2: Explore the SQL Server internal memo structure to see how SQL Server uses the heuristics of the algebrizer and query optimizer.
  • Goal 3: Walk through several examples of SQL queries whose behavior can be greatly improved when you apply what you’ve learned about the algebrizer and query optimizer.

SQLUG-möte med Markus Ehrenmüller-Jensen och Koen Verbeeck

Corona-pandemin fortsätter och därför fortsätter vi i SQLUG med online-möten en tid framöver. Den 19 maj gästas vi av Markus Ehrenmüller-Jensen och Koen Verbeeck. 

Tid: 19 maj, 18:00 – 20:30
Plats: Online, länken finns i bekräftelsen när du anmält dig på Eventbrite. Vi kommer att använda Teams den här gången.
Anmälan: https://www.eventbrite.com/e/sqlug-mote-med-markus-ehrenmuller-och-koen-verbeeck-tickets-104688863208

Markus Ehrenmüller-Jensen presenterar ”A Game of Hierarchies: Introduction to Graph Processing with SQL Server 2019”

Hierarchies and graphs are the bread and butter of most business applications and you find them almost everywhere:
* Product Categories
* Sales Territories
* Bill of Material
* Networks
Even when there is a big need from a business perspective, the solutions in relational databases are mostly sort of awkward. The most flexible hierarchies are usually modeled as self-referenced tables. If you want to successfully query such self-referenced hierarchies, you will need either loops or recursive Common Table Expressions. SQL Server 2017 came with a different approach: Graph Database, which are further improved in SQL 2019.
Join this session for a journey through best practices to transform your hierarchies and graphs into useful information. We will have fun playing around with a sample database based on G. R. R. Martin’s famous ”Game of Thrones”.

Koen Verbeeck presenterar ”SQL Server Integration Services Best Practices and Tuning Tips”

Did you ever inherited a slow running un-maintainable mess of an SSIS package? Or do you want to knock up your SSIS developing skills to the next level? In this session we will guide you through common SSIS best practices and performance pitfalls. We will make packages easier to read, maintain and more efficient. You will learn some practical tips to make your life – and that of your successor – easier. Topics covered in this session: * How to quickly layout your SSIS packages and how to add documentation
* A few hidden tricks of SSIS
* Best practices for SSIS development
* A couple of quick performance boosters Join us to learn how to be a top notch SSIS developer.

SQLUG, Local community edition med Daniel Hutmacher och Magnus Ahlkvist

Det har blivit dags för SQLUG Local community edition igen. Det var några år sen sist. Talare den här gången är Daniel Hutmacher och Magnus Ahlkvist.
Daniel och Magnus kommer att vara i Stockholm, i B3s lokaler. Som vanligt streamar vi till några andra orter också. Den här gången Göteborg, Malmö och Helsingborg.

Getting your ducks in a row – understanding ordered data flows, with Daniel Hutmacher
There’s a lot of information out there to overwhelm you when it comes to performance tuning your queries. It’s very easy to feel like you’re drinking from a fire hose when you’re reading long blog posts or listening to technical conference sessions. Operators, metrics, wait statistics, page life expectancy, parallellism and fragmentation.
But let’s take a step back and understand the one fundamental principle of querying data – ordering. This session is all about interactively and visually explaining the flow of data in terms of ordering, and how that affects the performance of your queries and server.
Once you get these basics right, tuning will feel so much easier and execution plans may even start to appear quite intuitive.

RBAR bad. Sets good, with Magnus Ahlkvist
In this session, I will go over some way too common uses of RBAR (Row by Agonizing Row) processing and show different examples of how they can be replaced with a set based approach. We will look at performance comparisons and talk about code maintainability.
Most of the examples are war stories from my 20 years working with databases. Unfortunately, many of the bad examples come from my own code. Fortunately, many of the good examples also comes from my own code, fixing the bad code.


Stockholm
När / When: Torsdag den 24 oktober, från 17:00, presentationerna börjar 18:00 / Thursday October 24th, from 17:00, Presentations start at 18:00.
Var / Where: B3 DBAce, Kungsbron 2, Stockholm.
Anmälan / Registration: https://www.eventbrite.com/e/sqlug-meeting-with-daniel-hutmacher-and-magnus-ahlkvist-tickets-73556530563

Göteborg
När / When: Torsdag den 24 oktober, från 17:30, Streamen till presentationen i Stockholm startar 18:00 / Thursday October 24th from 17:30. Stream with presentations from Stockholm starts at 18:00.
Var / Where: Advectas, Packhusplatsen 3, Göteborg
Anmälan / Registration: https://www.eventbrite.com/e/sqlug-meeting-with-daniel-hutmacher-and-magnus-ahlkvist-goteborg-streaming-tickets-73781060137

Helsingborg
När / When:
Torsdag den 24 oktober, från 17:00. Streamen till presentationen i Stockholm startar 18:00 / Thursday October 24th from 17:00. Stream with presentations from Stockholm starts at 18:00.
Var / Where: Hbg Works, Drottninggatan 14, Helsingborg
Anmälan / Registration: https://www.eventbrite.com/e/sqlug-meeting-with-daniel-hutmacher-and-magnus-ahlkvist-tickets-73678314823

Malmö
När / When: Torsdag den 24 oktober, från 17:00. Streamen till presentationen i Stockholm startar 18:00 / Thursday October 24th from 17:00. Stream with presentations from Stockholm starts at 18:00.
Var / Where: SolidQ, Skomakaregatan 6, Malmö
Anmälan / Registration: https://www.eventbrite.com/e/sqlug-meeting-with-daniel-hutmacher-and-magnus-ahlkvist-malmo-streaming-tickets-74024636681

SQLUG:s talarskola

Nu har du möjlighet att anmäla ditt intresse till SQLUG:s talarskola, där du kan lära dig hålla tekniska presentationer framför grupp.

Det kan t.ex. vara en presentation för en användargrupp eller på en SQL Saturday, men kunskapen kommer du troligen ha nytta av även på jobbet eller din fritid.

Styrelsen håller i skrivande stund på att sätta ihop en kurs om två heldagstillfällen med hjälp av professionella utbildare och föreläsare. Första tillfället blir troligen den 1:a december någonstans i mellansverige, beroende på var deltagarna bor. Ett preliminärt schema för första dagen ser ut såhär:

09:00-10:30 Grundläggande retorik, introduktion
10:45-12:30 Kroppsspråk och framträdande
12:30-13:30 Lunch
13:30-14:45 Powerpoint
15:00-16:30 Röstskola

Låter det som något du vill vara med på? Skicka ett mail till info@sqlug.se!

Vinn biljetter till SQLSaturday-precon!

Styrelsen i SQLUG har köpt in ett mindre antal biljetter till SQL Saturday-precon i Göteborg den 14 september som du kan tävla om!

Tävlingen går ut på att returnera ett korrekt värde från en tabell som liknar bilden nedan.

Här finns ett skript som visar grunderna i uppgiften
http://events.sqltopia.com/Small%20sample.sql

Här finns ett annat setup-skript som gör det möjligt för er att testa era lösningar på olika storlekar av testdata.
http://events.sqltopia.com/Setup.sql

Vinnare kommer att dras för:

  1. Lösning som är snabbast på ett mindre testdata
  2. Lösning som är snabbast på ett större testdata
  3. Lösning som är mest skalbar
  4. Lösning som är enklast
  5. ”Honorable mention”

Ni har till lördag den 8 september klockan 21:00 på er att lämna in er lösning. Maila den till info@sqlug.se. Lösningen ska vara en T-SQL procedur som levererar ett resultatset bestående av två kolumner, RowID och Value.

OBS! Max en lösning per deltagare, eftersom ni har samma skript som vi för att generera testdata.

Peter testar lösningarna på söndagen den 9:e september och presenterar vinnarna samma kväll! Lösningarna kommer testas på en on-premises SQL Server 2017 CU10 med fyra kärnor och 8GB dedikerat minne samt SSD disk.

Material från Itziks presentation

Idag, den 21:a maj, hade vi förmånen att se Itzik Ben-Gan presentera sin session Ordering Woes. Här kan du kan ladda ner materialet från presentationen. Av rättighetsskäl kan vi tyvärr inte lägga upp någon video från presentationen.

Mer av Itzik

Om du vill ha mer av samma sak så kommer Itzik tillbaka till Stockholm den 26:e november och håller då återigen sin Masterclass på Addskills-Cornerstone i Stockholm.

Fler sessioner i maj!

Glöm inte att anmäla dig till Ronen Arielys session, kvällen den 31:a där han pratar om Azure SQL Database Elastic Pools. Det eventet hålls i Malmö och streamas till Stockholm och Växjö. Läsa mer och anmäla dig kan du göra på följande länkar: