You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
❯ docker exec -it sql1 /opt/mssql-tools/bin/sqlcmd -S localhost -U SA -P '<Passw0rd!>'
1> SELECT Name from sys.Databases
2> GO
Name
--------------------------------------------------------------------------------------------------------------------------------
master
tempdb
model
msdb
Create some stuff
(4 rows affected)
1> CREATE DATABASE TestDB
2> USE TestDB
3> CREATE TABLE Inventory (id INT, name NVARCHAR(50), quantity INT)
4> INSERT INTO Inventory VALUES (1, 'banana', 150); INSERT INTO Inventory VALUES (2, 'orange', 154);
5> GO
Changed database context to 'TestDB'.
(1 rows affected)
(1 rows affected)
1> SELECT * FROM Inventory WHERE quantity > 152;
2> GO
id name quantity
----------- -------------------------------------------------- -----------
2 orange 154
(1 rows affected)
1> SELECT * FROM Inventory where quantity > 152;
2> GO
id name quantity
----------- -------------------------------------------------- -----------
2 orange 154
(1 rows affected)
1> QUIT
root@dd9e02b0eca5:/# exit