Access and Nonproduction Data Practices

Operational access, production-data handling, and safe nonproduction practices.

22 associated posts19 primary posts

What’s In Your Development Database? The Answer: Production Data.

Are your developers working with live production data, completely made-up synthetic data, or something in between? I posted a poll here on the blog and on a few of my social media feeds, and here were the results:

Note that the numbers can add up to more than 100% because folks could mark multiple choices if they had multiple teams with different approaches.

Read more about What’s In Your Development Database? The Answer: Production Data. 11 comments — Join the discussion
Production DBA

Why Generative AI Scares the Hell Out of DBAs

I was chatting with a client's DBA about this thought-provoking blog post about data governance in the age of generative AI. The DBA's concern was, "What if we hook up generative AI tools to the production database, and someone asks for, say, recommended salary ranges for our next CEO based on the current CEO's salary? Will the AI tool basically bypass our row-level security and give the querying person information that they shouldn't be allowed to see?"

Read more about Why Generative AI Scares the Hell Out of DBAs 9 comments — Join the discussion
Production DBA

Most DBAs Say They’re Encrypting Personally Identifiable Data. Most.

Despite the continuous stream of data breaches, ransomware, and GDPR violations, some companies still aren't encrypting personally identifiable information (PII) inside our databases or backups.

I see this all the time when working with clients, but I can't exactly talk about that or give numbers, so I decided to take a highly unscientific poll on Twitter. I figure if DBAs are sitting around on social media, they're probably done with all the important parts of their job. The 147 votes came in:

Read more about Most DBAs Say They’re Encrypting Personally Identifiable Data. Most. 13 comments — Join the discussion
T-SQL & Development

Poll Results: Yep, Developers are Using Unmasked Production Data.

Earlier this week, I asked where your developers are getting their development databases from. The poll results are in:

9% of development happens on the production database server
57% are copying the production data to another server, and using it as-is
31% are copying the production data, but then masking/scrambling private data before developers get access to it
25% are using made-up data for development

Read more about Poll Results: Yep, Developers are Using Unmasked Production Data. 14 comments — Join the discussion

DBAs Need a Jump Box or Jump Server.

Every now and then, you're going to need to run a query that takes a long time. You're going to want to make sure that it succeeds and that you can see the full output - even if your workstation disconnects - or maybe you want to check the status from home later.

You're going to be tempted to remote desktop directly into the SQL Server itself and run the query there.

Read more about DBAs Need a Jump Box or Jump Server. 8 comments — Join the discussion

How Personally Identifiable Information Gets Around

Let's say someone - not you, dear reader, because you would surely never be this sloppy - is building a personal web site or a diary or a company or whatever:
[crayon-6a6eb88bb751f465013981/]
Yes, they should be encrypting passwords, and not storing ages, and certainly never storing identifying information like social security numbers. Unfortunately, that's just often not how it goes in the real world, as any recent headline will tell you.

Read more about How Personally Identifiable Information Gets Around 23 comments — Join the discussion

Generating test data without complicated T-SQL

Sometimes you need garbage
Not because DBAs are the IT equivalent of Oscar the Grouch, but maybe you want to post a question on a forum, and you don't want to use your own data. At least, you probably shouldn't just post your own data without masking it. But masking data is annoying, and by the time you get everything in order, someone's breathing down your neck for an answer.

Read more about Generating test data without complicated T-SQL 7 comments — Join the discussion

How to Talk People Out of the SA Account, Option 1

So you've got a bunch of people using the SA account all over the place. It's hard-coded into connection strings, embedded in linked servers, and the password is on post-it notes throughout the data center.
Step 1: Create an alternative SA account.
In a perfect world, you'd create a minimally-privileged AD login that only has limited access to specific databases.

Read more about How to Talk People Out of the SA Account, Option 1 29 comments — Join the discussion
T-SQL & Development

Replication Won’t Refresh Your Dev and Pre-Production Environments

At first glance, SQL Server's transactional replication seems like it's useful for moving data around in all sorts of situations: it works in Standard Edition, it's not synchronous, and you can have multiple subscribers.

Why People Want Replication to Test and Pre-Production Environments

Read more about Replication Won’t Refresh Your Dev and Pre-Production Environments 20 comments — Join the discussion

Reporting in Production: SQL Server (video)

Everyone wants reports but nobody wants to build out a separate reporting server. What options do you have short of throwing up your hands in defeat? Join Jeremiah to learn about four SQL Server technologies that help with reporting in production. This session is for DBAs and developers looking for a place to get started with reporting against SQL Server.

Read more about Reporting in Production: SQL Server (video) 1 comment — Join the discussion

Getting Started with SQL Server Sample Databases

The best way to improve your skills as a database professional is to practice. If you’re like me, you might even take that practice outside of the workplace and do a bit of homework on the side. You can’t take a copy of your production database home with you, so what can you do? Thankfully, the fine people Microsoft have put together a set of databases that you can download and play with.

Read more about Getting Started with SQL Server Sample Databases 11 comments — Join the discussion

How Do You Mask Data for Secure Testing?

Data masking, data scrambling, and just plain old obfuscation: these are ways to get developers access to production-quality data for testing purposes without actually giving them real production data.  It's much harder than it looks, though. The Easy Part: Obfuscating Data Developers love working with production data.  Today's privacy-concerned companies aren't quite so keen on…

Read more about How Do You Mask Data for Secure Testing? 23 comments — Join the discussion