Knowledge Base

Browse our knowledge base for free solutions to common problems

Login to Bitwarden MSSQL Server Via Container

Created On: 14 September 2022
Written by: Ben

Locate mssql container:

docker ps

Login to the container:

docker exec -it cc86c04b61bc "bash"

Login to MSSQL:

/opt/mssql-tools/bin/sqlcmd -S localhost -U SA

Show existing databases:

1> SELECT NAME FROM sys.sysdatabases
2> go

Select the database:

1> use vault
2> go
Changed database context to 'vault'.

Show the database tables:

1> SELECT * FROM information_schema.tables;
2> go

Describe the table layout:

1> exec sp_columns Folder
2> go

 

ICTU LTD is a company registered England and Wales (Company No. 09344913) 15 Queen Square, Leeds, West Yorkshire, England, LS2 8AJ
Copyright © 2024 ICTU LTD, All Rights Reserved.
exit