~/talk

My romantic relation with Powershell generally and DBATools especially

Talkat SQL Server Virtual Conference 2021 · on Friday, 2021-01-29· [devops-and-delivery]
slides:none on file

Live demo shows using the DBATools module and PowerShell to provision two Docker SQL Server 2019 instances (sql1, sql2), create a dba database, install Ola Hallengren and First Responder Kit, and automate backups to Azure Blob by creating SQL credentials with a SAS token and running backup to URL. Jobs run hourly fulls and log backups every minute. A home‑grown log‑shipping loop reads get‑dba‑db‑backup‑history, restores with NORECOVERY, tracks LSNs in a watermarks table, and uses copy‑dba‑login / copy‑dba‑agent‑job; all of this is demonstrated end‑to‑end in about 45 minutes.

AI-written summary · about

  1. 0:00Start
  2. 2:54create your own azure storage container
  3. 5:56get the development branch from the dba tools
  4. 10:56create a login
  5. 11:52put all the parameters to a command into a hash table
  6. 14:24store the backups in an azure storage container
  7. 14:45back up your databases to an azure storage container
  8. 16:14create the credential objects in a sql server
  9. 31:54copy the logins from one instance to another
  10. 32:36the copy dba login
  11. 37:35start the log shipping sequence
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.