Short answer
DBA work usually needs SQL, and many DBAs also write scripts to automate routine tasks. Full software development is not always required, though. How much coding you do depends on the employer and on the kind of DBA role. The U.S. Bureau of Labor Statistics (BLS) says database administrators and architects need an understanding of database languages, such as SQL.
SQL is the core skill
SQL (Structured Query Language) is how most relational databases are queried and changed. A DBA uses it to:
- check table and index definitions and find what has changed,
- run queries that find slow or blocked work,
- grant and revoke permissions,
- confirm that restored data matches what was backed up.
Learners who are unsure whether to start can read “Is SQL hard to learn?” first.
Scripting and automation
Many DBAs write scripts for repetitive work, such as checking that nightly backups finished, watching disk space or rebuilding indexes. Scripting tools in common use include PowerShell, often used with Microsoft SQL Server, Bash on Linux and Python. The best choice is the one your employer uses. BLS notes that DBAs need to become familiar with whichever programming language their firm uses.
When the work involves programming
BLS describes application DBAs as people who may write or debug programs that use the database. It describes database architects as people who code new data structures and connect them to existing databases or infrastructure. The closer a role is to application code or to new data design, the more programming it tends to involve.
How much coding each role needs
- Systems DBA. Keeps servers running. Needs SQL for administration and checks, plus scripts for backups and monitoring.
- Application DBA. Supports one product’s database. Needs SQL and enough programming to read and fix the database code the application uses.
- Database architect. Designs data structures. Needs SQL, data modeling and code for new structures.
How to build the skills
- Learn SELECT with WHERE, GROUP BY and joins.
- Learn table definitions with CREATE TABLE, ALTER TABLE and constraints.
- Practice administration on a local server: create a user, grant it a limited set of rights, take a backup and restore it to a new database.
- Automate one task with a short script, such as a backup check.
- Learn the language and tools that your target employer uses.
Certifications can help too. BLS notes that they come from software vendors and vendor-neutral providers, and that some employers require certification in the products they use.
For the wider question of whether the job suits you, see “Is DBA a good career?”