Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

Commit de4f2b5

Browse files
committed
More formatting changes
1 parent e52cb95 commit de4f2b5

1 file changed

Lines changed: 12 additions & 4 deletions

File tree

docs/linux/tutorial-restore-backup-in-sql-server-container.md

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -203,11 +203,15 @@ The backup file is now located inside the container. Before restoring the backup
203203
Run the following query to display a list of database names in your container:
204204

205205
```bash
206-
sudo docker exec -it sql1 /opt/mssql-tools/bin/sqlcmd -S localhost -U SA -P '<YourNewStrong!Passw0rd>' -Q 'SELECT Name FROM sys.Databases'
206+
sudo docker exec -it sql1 /opt/mssql-tools/bin/sqlcmd \
207+
-S localhost -U SA -P '<YourNewStrong!Passw0rd>' \
208+
-Q 'SELECT Name FROM sys.Databases'
207209
```
208210

209211
```PowerShell
210-
docker exec -it sql1 /opt/mssql-tools/bin/sqlcmd -S localhost -U SA -P "<YourNewStrong!Passw0rd>" -Q "SELECT Name FROM sys.Databases"
212+
docker exec -it sql1 /opt/mssql-tools/bin/sqlcmd `
213+
-S localhost -U SA -P "<YourNewStrong!Passw0rd>" `
214+
-Q "SELECT Name FROM sys.Databases"
211215
```
212216

213217
You should see **WideWorldImporters** in the list of databases.
@@ -219,11 +223,15 @@ The following steps make a change in the database.
219223
1. Run a query to view the top 10 items in the **Warehouse.StockItems** table.
220224

221225
```bash
222-
sudo docker exec -it sql1 /opt/mssql-tools/bin/sqlcmd -S localhost -U SA -P '<YourNewStrong!Passw0rd>' -Q 'SELECT TOP 10 StockItemID, StockItemName FROM WideWorldImporters.Warehouse.StockItems ORDER BY StockItemID'
226+
sudo docker exec -it sql1 /opt/mssql-tools/bin/sqlcmd \
227+
-S localhost -U SA -P '<YourNewStrong!Passw0rd>' \
228+
-Q 'SELECT TOP 10 StockItemID, StockItemName FROM WideWorldImporters.Warehouse.StockItems ORDER BY StockItemID'
223229
```
224230

225231
```PowerShell
226-
docker exec -it sql1 /opt/mssql-tools/bin/sqlcmd -S localhost -U SA -P "<YourNewStrong!Passw0rd>" -Q "SELECT TOP 10 StockItemID, StockItemName FROM WideWorldImporters.Warehouse.StockItems ORDER BY StockItemID"
232+
docker exec -it sql1 /opt/mssql-tools/bin/sqlcmd `
233+
-S localhost -U SA -P "<YourNewStrong!Passw0rd>" `
234+
-Q "SELECT TOP 10 StockItemID, StockItemName FROM WideWorldImporters.Warehouse.StockItems ORDER BY StockItemID"
227235
```
228236

229237
You should see a list of item identifiers and names:

0 commit comments

Comments
 (0)