10 Database administration and development

 

This chapter covers

  • Utilizing AI in DBA tasks
  • Basics of query and object creation
  • Techniques in query optimization
  • Managing heterogeneous database environments
  • Strategies for database maintenance and advanced admin tasks

In the database administration field, there are two main roles: administrative DBAs, who ensure the database’s smooth and secure operation, and development DBAs, who design the database structure and optimize application performance. The overlap between these roles varies, with some DBAs specializing in one area and others integrating skills from both. AI tools have made it easier to bridge the gap between these tasks, assisting in generating SQL syntax and guiding administrative tasks no matter the DBA’s primary focus.

Whether you are new to DBA work or a skilled pro, we’ll show you how AI can provide multiple benefits in your daily work. We’ll start with the basics of query and object creation and then move on to query optimization, managing heterogeneous database environments, and advanced administration tasks. We’ll also cover how AI can assist in ensuring the recoverability and performance of your database environment, with a special focus on using PowerShell for automation and data collection.

10.1 Query and object creation basics

10.2 Query optimization

10.3 Code documentation

10.4 Heterogeneous database environments

10.4.1 Staying up to date

10.4.2 Teaching an old DBA new tricks

10.5 Maintenance jobs

10.6 Advanced administration

10.6.1 AI + dbatools = <3

10.6.2 Analyzing memory configurations

10.6.3 Additional advanced administration prompts

10.6.4 The role of the DBA in the AI era

10.7 Prompts used in this chapter

Summary