A Quick PartitionBy Switch for Delta Files

Sometimes you need to make a change to how things are partitioned. And that's okay! You should have the flexibility to change what your delta is partitioned by just like you can change how a table is indexed. So, here's the code you need! A couple of notes on why we are overwriting to the … Continue reading A Quick PartitionBy Switch for Delta Files

Add Your AAD Group to Dedicated or Serverless SQL Pool

It can be confusing that we can create Synapse, see that it comes with Serverless SQL Pool, setup a Dedicated SQL Pool, and then not be able to access it. SQL Server Databases - even serverless ones - still need logins, users, and roles to be able to work. Here is a quick rundown to … Continue reading Add Your AAD Group to Dedicated or Serverless SQL Pool

Synapse Permissions from a Different Perspective

Ever want to compare the different permissions between the Synapse roles side by side or determine quickly which permissions are shared by what roles? Looking at these in the table format below will help. All of the roles listed below are the built in RBAC roles that currently exist in the Synapse Access Control found … Continue reading Synapse Permissions from a Different Perspective

Python Automated NSLOOKUP with socket.gethostbyname()

Sometimes you need to look up a list of hosts to get their IP addresses. Maybe you need to create a quick list for a hosts file, as was my case. This example also includes examples for using a list in python, creating a for loop in python, and a print statement using a custom … Continue reading Python Automated NSLOOKUP with socket.gethostbyname()

FIND-AND-REPLACE SHORTCUTS AND REGULAR EXPRESSIONS

If you are going to work efficiently as a programmer, then your search skills have got to be on point. You need to be able to Ctrl+F and Ctrl+H yourself out of trouble, and quick! When find-and-replace work gets tricky, that’s when you pull out Regular Expressions, the power tool of searching. You can use … Continue reading FIND-AND-REPLACE SHORTCUTS AND REGULAR EXPRESSIONS

SQL Server Set Operators: UNION, INTERSECT, and EXCEPT

Did you know you can do set-based math with SQL Server? With the UNION, INTERSECT, and EXCEPT set operators, you can compare one result set to another and add or subtract results, called a compound query. This can be a handy tool for your toolbox. This is very similar to Oracle Set Operators: UNION, INTERSECT and MINUS … Continue reading SQL Server Set Operators: UNION, INTERSECT, and EXCEPT