-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsummit2020_demo_007.txt
24 lines (18 loc) · 1.2 KB
/
summit2020_demo_007.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#######################################################################################
# PASS Virtual Summit 2020 - SQL Server on Linux from A to Z (Randolph West) #
# Pre-conference session (2020-11-10) #
#######################################################################################
# The scripts in this document are procured from several sources, including Microsoft #
# Docs, Wikipedia, genuinecoder.com, linuxhint.com, howtogeek.com, linux.org, #
# ss64.com, and tecmint.com. #
# No copyright is claimed or intended from these code samples #
#######################################################################################
#######################################################################################
### Installing and using dbatools on Linux
#######################################################################################
# Make sure PowerShell is installed.
pwsh # Opens PowerShell
Install-Module dbatools
$cred = Get-Credential sa
Get-DbaDatabase -SqlInstance localhost -SqlCredential $cred
Get-DbaDatabase -SqlInstance localhost